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

Can not execute setup.py since setuptools is not available in the build environment #10285

Closed
hcho3 opened this issue May 3, 2023 · 5 comments · Fixed by #10287
Closed

Can not execute setup.py since setuptools is not available in the build environment #10285

hcho3 opened this issue May 3, 2023 · 5 comments · Fixed by #10287

Comments

@hcho3
Copy link

hcho3 commented May 3, 2023

Details

One of the dependencies in my doc/requirements.txt is failing to install with error

Collecting pyspark (from -r doc/requirements.txt (line 13))
  Downloading pyspark-3.4.0.tar.gz (310.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.8/310.8 MB 174.2 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  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]

The same configuration used to work until yesterday. Can someone help? Any pointer will be appreciated.

The dependency (pyspark) uses setup.py, so setuptools is required.

Expected Result

The build should be able to install dependencies successfully.

Actual Result

One dependency, pyspark, fails to install due to setuptools not available.

@stsewd
Copy link
Member

stsewd commented May 3, 2023

Hi, I can see in your build that we are installing the latest version of setuptools and then installing an old version, #10287 should fix this.

stsewd added a commit that referenced this issue May 3, 2023
…10287)

The same version installed before needs to match here.

Fixes #10285
@hcho3
Copy link
Author

hcho3 commented May 3, 2023

@stsewd Thank you!

@jdkent
Copy link

jdkent commented May 3, 2023

Thanks for the fix @stsewd! What's the typical release cycle for bug fixes like this?

if it's the next day or so, I can hold off merging some pull requests that depend on documentation being built, if it's a week or so out, I'll work out a temporary solution to check if documentation builds successfully.

Thank you.

@stsewd
Copy link
Member

stsewd commented May 3, 2023

@jdkent we usually deploy on Tuesdays.

stsewd added a commit that referenced this issue May 9, 2023
…10287)

The same version installed before needs to match here.

Fixes #10285
stsewd added a commit that referenced this issue May 9, 2023
…10287)

The same version installed before needs to match here.

Fixes #10285
@stsewd
Copy link
Member

stsewd commented May 9, 2023

@jdkent @hcho3 this fix has been released.

Your build is passing now https://readthedocs.org/projects/xgboost/builds/20575157/

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

Successfully merging a pull request may close this issue.

3 participants