Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jgtiu opened this issue May 25, 2024 · 5 comments

Comments

@jgtiu
Copy link

jgtiu commented 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)  
@yuboona
Copy link

yuboona commented May 25, 2024 via email

@jgtiu
Copy link
Author

jgtiu commented 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/

@emadahmed97
Copy link

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

@jgtiu
Copy link
Author

jgtiu commented 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.

@emadahmed97
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants