Hi everyone, we use bitbucket as our remote storag...
# ask-community
a
Hi everyone, we use bitbucket as our remote storage for our prefect deployments. Recently I redeployed out deployments and we are not getting an error when our flows run: "KeyError: "No class found for dispatch key 'bitbucket-repository' in registry for type 'Block'."" I have included the python code that builds our deployments using the python SDK below :
Copy code
for flow_name, params in flows.items():
    base_name       = flow_name.split('_flow')[0]
    file_name       = f"{base_name}.py"
    deployment_name = f"{base_name}_deployment"
    print(f"Updating {deployment_name} ...")
    deployment = Deployment.build_from_flow(
        flow           = params.get("flow"),
        name           = deployment_name,
        schedule       = params.get("schedule"),
        work_pool_name = DEFAULT_AGENT_POOL,
        storage        = BitBucketRepository.load("<repo-name>"),
        path           = REMOTE_STORAGE_PATH,
        entrypoint     = f"{FLOWS_PATH}{file_name}:{flow_name}",
        tags=DEFAULT_TAGS
    )
    deployment.apply()
any idea what is causing this error?