You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup a new virtual environment and loaded Dask/Dask-Yarn and cannot import due to a deprecated package.
I searched for Dask-Yarn and format_bytes and only found the deprecation warning in older versions.
I tried both python3.9 and python3.11, I'll include steps for the python3.9 test.
I'm not sure what to do about this. Should I pin Dask and Dask-Yarn to specific versions?
Producing the issue:
python -c "from dask_yarn import YarnCluster"
Traceback (most recent call last):
File "<string>", line 1, in<module>
File ".../venv_py39_dask_yarn/lib/python3.9/site-packages/dask_yarn/__init__.py", line 6, in<module>
from .core import YarnCluster
File ".../venv_py39_dask_yarn/lib/python3.9/site-packages/dask_yarn/core.py", line 16, in<module>
from distributed.utils import (
ImportError: cannot import name 'format_bytes' from 'distributed.utils' (.../venv_py39_dask_yarn/lib/python3.9/site-packages/distributed/utils.py)
Possible fix is to import from dask.utils in the dask_yarn/core.py source instead:
I setup a new virtual environment and loaded Dask/Dask-Yarn and cannot import due to a deprecated package.
I searched for Dask-Yarn and format_bytes and only found the deprecation warning in older versions.
I tried both python3.9 and python3.11, I'll include steps for the python3.9 test.
I'm not sure what to do about this. Should I pin Dask and Dask-Yarn to specific versions?
Producing the issue:
Possible fix is to import from
dask.utils
in thedask_yarn/core.py
source instead:Setup Steps:
pip freeze:
Python version verification
The text was updated successfully, but these errors were encountered: