I recently upgraded prefect from 2.3.1 to 2.10.18. I don’t have any custom blocks and was using the default Process block from the deployment. When I trigger a flow run for a deployment from the UI or run prefect deployment inspect flowxyz
its erroring out like this
Traceback (most recent call last):
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/cli/_utilities.py", line 41, in wrapper
return fn(*args, **kwargs)
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/utilities/asyncutils.py", line 255, in coroutine_wrapper
return call()
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/_internal/concurrency/calls.py", line 383, in __call__
return self.result()
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/_internal/concurrency/calls.py", line 283, in result
return self.future.result(timeout=timeout)
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/_internal/concurrency/calls.py", line 169, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/_internal/concurrency/calls.py", line 346, in _run_async
result = await coro
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/cli/deployment.py", line 283, in inspect
deployment_json["infrastructure"] = Block._from_block_document(
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/blocks/core.py", line 618, in _from_block_document
else cls.get_block_class_from_schema(block_document.block_schema)
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/blocks/core.py", line 672, in get_block_class_from_schema
return cls.get_block_class_from_key(block_schema_to_key(schema))
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/blocks/core.py", line 683, in get_block_class_from_key
return lookup_type(cls, key)
File "/root/.Envs/venv/lib/python3.8/site-packages/prefect/utilities/dispatch.py", line 185, in lookup_type
raise KeyError(
KeyError: "No class found for dispatch key 'process' in registry for type 'Block'."
An exception occurred.
The similar issue I found recommended installing any missing packages, but since Process is the default block, I didn’t find any extra packages that needed to be installed. Would be great if you can help figure this one out.