Made-With-ML
Made-With-ML copied to clipboard
ray.init() fails to start the dashboard with new version of setuptools (70.0.0)
Error:
2024-05-25 13:42:16,677 ERROR services.py:1222 -- Failed to start the dashboard , return code 1
...
File "C:\madewithml\venv\lib\site-packages\ray\dashboard\modules\dashboard_sdk.py", line 10, in <module>
from pkg_resources import packaging
ImportError: cannot import name 'packaging' from 'pkg_resources' (C:\madewithml\venv\lib\site-packages\pkg_resources\__init__.py)
您的邮件我已收到,将尽快回复!!
I was able to fix it on my end by python3 -m pip install setuptools==69.5.1
Suggesting that we add note about this after python3 -m pip install --upgrade pip setuptools wheel in https://madewithml.com/courses/mlops/setup/
@jgtiu did you run this in the cli or add it to cluster_env.yaml? if you added it to cluster_env.yaml did you just run anyscale job submit deploy/jobs/workloads.yaml and it worked after?
@emadahmed97 Ran it in the CLI, and I've never used cluster_env.yaml, since I'm following the "Local" track in the course and not the Anyscale track.
thanks @jgtiu! also curious if you got to this part (https://madewithml.com/courses/mlops/jobs-and-services/#execution_1) and got it to work. I ran it but when i go to the service it just says "unhealthy" and i dont see any logs that shows where it fails. It may be a code error in one of the scripts but i cant see any logs. If you know where to find that would be helpful