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

Issue pip installing classy #553

Closed
snesseris opened this issue Oct 5, 2023 · 2 comments
Closed

Issue pip installing classy #553

snesseris opened this issue Oct 5, 2023 · 2 comments

Comments

@snesseris
Copy link

Hi all,

I'm having an issue pip installing classy, especially at the colab. After running
!pip install classy

I get the error:

Collecting classy
  Downloading classy-3.2.0.1.tar.gz (9.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.9/9.9 MB 5.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: classy
  error: subprocess-exited-with-error
  
  × Building wheel for classy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for classy (pyproject.toml) ... error
  ERROR: Failed building wheel for classy
Failed to build classy
ERROR: Could not build wheels for classy, which is required to install pyproject.toml-based projects

The same error happens with previous version of classy as well, eg when installing with !pip install classy==2.9.4. Information on the python setup of the colab can be seen here: https://colab.research.google.com/notebooks/relnotes.ipynb

This stack-exchange post suggests this might be a python/pip issue, but I wanted to make sure it's not something related to classy (also to bring it to the attention of the devs).

Using classy with the Colab is particularly useful when teaching Cosmology (everyone has a google account!) and any help would be appreciated 😄

@brinckmann
Copy link

Hi Savvas,

I can't be sure since the error message is sparse on information, but I wonder if this might be a Cython issue. CLASS without changes isn't compatible with Cython v3. See issue #531 , with two options, you can try to either make the necessary changes in CLASS (see, e.g., NEDE-Cosmo/TriggerCLASS#1 ) or use Cython 0.29 like suggested by lgarrison.

Best,
Thejs

@snesseris
Copy link
Author

Perfect, thanks! 👍

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

2 participants