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

Cannot install periodictable 1.7.0 #80

Open
Andrew-S-Rosen opened this issue Apr 26, 2024 · 2 comments
Open

Cannot install periodictable 1.7.0 #80

Andrew-S-Rosen opened this issue Apr 26, 2024 · 2 comments

Comments

@Andrew-S-Rosen
Copy link

Andrew-S-Rosen commented Apr 26, 2024

I am trying to pip install periodictable==1.7.0 in a clean Python 3.11 Conda environment on a Linux HPC machine but am getting the following error. I do not get this error with 1.6.1

pip install periodictable
Collecting periodictable
  Using cached periodictable-1.7.0.tar.gz (1.0 MB)
  Preparing metadata (setup.py) ... 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]
  
  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.
@Andrew-S-Rosen
Copy link
Author

Andrew-S-Rosen commented Apr 26, 2024

Looks like this is somewhat of a "me" problem but also a periodictable issue that can be resolved. See pypa/packaging-problems#573. By default, the Python environment does not have setuptools yet this is imported in setup.py. If a pyproject.toml were used, this would not be a problem. I am surprised I have not run into this before, however.

@lucas-wilkins
Copy link

It's not a ""me" problem" - it doesn't work at all with python 3.12.

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