Sandip Viradiya

07/07/2023, 12:51 AM
I'm setting up Prefect in ECS. Work queue shows healthy. I'm using Bitbucket as storage. I've added EXTRA_PIP_PACKAGES as
prefect-aws prefect-bitbucket
I am getting below error when I try to run any flow. Any ideas? Thanks in advance 🙂
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/", line 395, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "/usr/local/lib/python3.10/site-packages/prefect/client/", line 51, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/prefect/deployments/", line 193, in load_flow_from_flow_run
    storage_block = Block._from_block_document(storage_document)
  File "/usr/local/lib/python3.10/site-packages/prefect/blocks/", line 618, in _from_block_document
    else cls.get_block_class_from_schema(block_document.block_schema)
  File "/usr/local/lib/python3.10/site-packages/prefect/blocks/", line 672, in get_block_class_from_schema
    return cls.get_block_class_from_key(block_schema_to_key(schema))
  File "/usr/local/lib/python3.10/site-packages/prefect/blocks/", line 683, in get_block_class_from_key
    return lookup_type(cls, key)
  File "/usr/local/lib/python3.10/site-packages/prefect/utilities/", line 185, in lookup_type
    raise KeyError(
KeyError: "No class found for dispatch key 'bitbucket-repository' in registry for type 'Block'."