Made-With-ML icon indicating copy to clipboard operation
Made-With-ML copied to clipboard

ray.init() fails to start the dashboard with new version of setuptools (70.0.0)

Open jgtiu opened this issue 1 year ago • 5 comments
trafficstars

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)  

jgtiu avatar May 25 '24 17:05 jgtiu

您的邮件我已收到,将尽快回复!!

yuboona avatar May 25 '24 17:05 yuboona

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 avatar May 25 '24 17:05 jgtiu

@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 avatar Jun 24 '24 00:06 emadahmed97

@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.

jgtiu avatar Jun 24 '24 01:06 jgtiu

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

emadahmed97 avatar Jul 03 '24 15:07 emadahmed97