Hello, I'm trying to understand how block python d...
# prefect-getting-started
m
Hello, I'm trying to understand how block python dependencies work with the different ways of deploying a flow to a worker pool. I may be mixing things up. I get errors like this when running on my docker worker
Copy code
KeyError: "No class found for dispatch key 'github-repository' in registry for type 'Block'."
The same happens if the worker is a process (I think the reason here is that the process is not running within my virtual env). But not when running the flow in a non-worker.
Copy code
from prefect import flow
from prefect_github.repository import GitHubRepository


flow.from_source(
    source=GitHubRepository.load("app-backend-data"),
    entrypoint="flows/provider/process_provider.py:process_provider",
).deploy(name="process-provider", work_pool_name="docker-worker")
My worker is started like this
Copy code
prefect worker start --pool "docker-worker" --type docker
So my source is code from GitHub The worker is docker But I haven't specified an image on the deployment (should I?)