I updated `torch` (to 1.13.1) and `pyarrow` (to 14...
# ask-community
s
I updated
torch
(to 1.13.1) and
pyarrow
(to 14.0.1) but now I’m hitting an issue with
prefect-dask
Copy code
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?
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
Downgrading to prefect version: 2.17.1 and prefect-dask version: 0.2.6 fixed this btw
d
Looks like a new version push fixed this
pip install prefect_dask --upgrade
s
That’s awesome. Will give it a try. Thanks!