Hello everyone, I am unable to understand the issu...
# ask-community
t
Hello everyone, I am unable to understand the issue with prefect-dask library(v0.2.6) and prefect v2.20.7. I end up with this error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.10/site-packages/prefect_dask/__init__.py", line 2, in <module>
from .task_runners import DaskTaskRunner  # noqa
File "/usr/local/lib/python3.10/site-packages/prefect_dask/task_runners.py", line 89, in <module>
class DaskTaskRunner(BaseTaskRunner):
File "/usr/local/lib/python3.10/site-packages/prefect_dask/task_runners.py", line 256, in DaskTaskRunner
call: Callable[..., Awaitable[State[R]]],
TypeError: 'ModelMetaclass' object is not subscriptable
n
hi @Tahir - this is because
State
was not generic but was being treated like a generic (i.e. this is a bug we have fixed) can you upgrade
prefect-dask
like this?
pip install -U 'prefect[dask]<3'
🙌 1
t
prefect[dask,dbt,shell]==2.20.7
This solved it! Thanks