Hey Team, I've been using Prefect for almost more ...
# ask-community
s
Hey Team, I've been using Prefect for almost more than a year. Everything was working fine and out of nowhere from yesterday night, I am getting this error from prefect_bitbucket. Is anyone facing the same issue?
1
Just FYI, I've already set up
Copy code
{
  "EXTRA_PIP_PACKAGES": "prefect-aws prefect-bitbucket prefect-dbt prefect-fivetran prefect-databricks"
}
so I don't think it should be package installation issue. Somehow it's not loading a package, because from the log I see that as the run starts, it's installing that package first.
If the SS is blurry, here is the error as text
Copy code
ERROR   | Flow run 'stalwart-guppy' - Flow could not be retrieved from deployment.
KeyError: "No class found for dispatch key 'bitbucket-repository' in registry for type 'Block'."
Warning!  Failed to load collection 'prefect_bitbucket': NameError: name 'Cloud' is not defined
Warning!  Failed to load collection 'prefect_bitbucket': ConfigError: duplicate validator function "prefect_bitbucket.credentials.BitBucketCredentials._validate_username"; if this is intended, set `allow_reuse=True`'
Ok found the issue. Atlasian released new update yesterday and Cloud is being imported from atlasian. I restricted the version to 3.41.4 and it's working fine. In case anyone face the same issue
🙏 2
t
Thanks for the response. It appears to be working. I installed this version atlassian-python-api==3.41.4 along with the correct sqlalchemy version and it worked. Thanks so much!!!
s
No worries! Took me like 5 hours to backtrack it as it was not expected from atlasian!