Traceback (most recent call last):
File "...", line 9, in <module>
from prefect_dask.task_runners import DaskTaskRunner
File ".../lib/python3.10/site-packages/prefect_dask/__init__.py", line 2, in <module>
from .task_runners import DaskTaskRunner # noqa
File ".../lib/python3.10/site-packages/prefect_dask/task_runners.py", line 90, in <module>
class DaskTaskRunner(BaseTaskRunner):
File ".../lib/python3.10/site-packages/prefect_dask/task_runners.py", line 257, in DaskTaskRunner
call: Callable[..., Awaitable[State[R]]],
TypeError: 'ModelMetaclass' object is not subscriptable
prefect version: 2.18.1
prefect-dask version: 0.2.7
pydantic version: 1.10.13
Anyone hitting the same problem?
Sarhan
04/26/2024, 5:34 AM
Googling
ModelMetaclass
seems to indicate a pydantic class so provided pydantic version as well^ though that wasn’t one of the packages I was trying to update
Sarhan
04/26/2024, 10:47 AM
Downgrading to prefect version: 2.17.1 and prefect-dask version: 0.2.6 fixed this btw
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.