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

Open
opened 2025-11-02 00:02:59 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @jgtiu on GitHub (May 25, 2024).

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)  
Originally created by @jgtiu on GitHub (May 25, 2024). 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) ```
Author
Owner

@yuboona commented on GitHub (May 25, 2024):

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

@yuboona commented on GitHub (May 25, 2024): 您的邮件我已收到,将尽快回复!!
Author
Owner

@jgtiu commented on GitHub (May 25, 2024):

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 commented on GitHub (May 25, 2024): 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/
Author
Owner

@emadahmed97 commented on GitHub (Jun 24, 2024):

@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 commented on GitHub (Jun 24, 2024): @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?
Author
Owner

@jgtiu commented on GitHub (Jun 24, 2024):

@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 commented on GitHub (Jun 24, 2024): @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.
Author
Owner

@emadahmed97 commented on GitHub (Jul 3, 2024):

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 commented on GitHub (Jul 3, 2024): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/Made-With-ML#67