Skip to content

wheel build fails due to dependency issues #5153

New issue

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

By clicking “No 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? No Sign in to your account

Open
cg505 opened this issue Apr 8, 2025 · 6 comments · May be fixed by vast-ai/vast-sdk#6
Open

wheel build fails due to dependency issues #5153

cg505 opened this issue Apr 8, 2025 · 6 comments · May be fixed by vast-ai/vast-sdk#6
Assignees

Comments

@cg505
Copy link
Collaborator

cg505 commented Apr 8, 2025

On a new dev installation of .[all] in a uv venv:

$ sky launch
...
RuntimeError: Failed to build pip wheel for SkyPilot. Error message:   error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

What happened:

How to fix: not sure, we could pin wheel to v0.45.1. Ideally we can use a newer version of setuptools.

This was referenced Apr 8, 2025
@cg505
Copy link
Collaborator Author

cg505 commented Apr 8, 2025

Updated impact: affects any new installation of skypilot, including stable, unless a working version of wheel (<0.46.0) is installed, or a working version of setuptools (>=70.1) is installed and [vast] is not installed.

Verified that pinning wheel fixes the issue. Opened PRs for master (nightly) and 0.8.

@cg505
Copy link
Collaborator Author

cg505 commented Apr 8, 2025

Short term fix: pin wheel <0.46.0

Long term fix: pin setuptools >=70.1?

maresb added a commit to regro-cf-autotick-bot/skypilot-feedstock that referenced this issue Apr 9, 2025
Comes from dependencies, as per skypilot-org/skypilot#5153
@munterkalmsteiner
Copy link

Hm, this does not fix the problem, at least not for me.

sky -v
skypilot, version 0.8.1
wheel version
wheel  0.45.1
pip show setuptools
Name: setuptools
Version: 51.1.2
pip show vastai-sdk
Name: vastai-sdk
Version: 0.1.16

@cg505
Copy link
Collaborator Author

cg505 commented Apr 9, 2025

@munterkalmsteiner What error are you seeing?
As long as you have wheel v0.45.1, skypilot should work.

@munterkalmsteiner
Copy link

Exactly the same error as reported in the initial bug report by you.

@munterkalmsteiner
Copy link

munterkalmsteiner commented Apr 9, 2025

Huh, I've purged the installation and installed everything new. The first time, no change (same error as reported initially). Then uninstalled again all packages (pip freeze | xargs pip uninstall -y), install skypilot[lambda] and then I could deploy a job on lambda. Installed now again skypilot[vast] and that works now too, i.e. no error. Sorry for the noise, I guess.

@cg505 cg505 linked a pull request Apr 21, 2025 that will close this issue
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants