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

Installation broken with python Python 3.10.14 #181

Open
Yong2Sheng opened this issue May 28, 2024 · 7 comments
Open

Installation broken with python Python 3.10.14 #181

Yong2Sheng opened this issue May 28, 2024 · 7 comments
Assignees
Labels
dependencies Installation problems related to external packages
Milestone

Comments

@Yong2Sheng
Copy link
Contributor

I had this astromodels related issue when installing cosipy developer version:

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed cleaning build dir for astromodels
  Building wheel for antlr4-python3-runtime (setup.py) ... done
  Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144554 sha256=f9a70664abb88ba94b4f44da4230cbba90366a1b9ed64d2474032d0b8d007d5c
  Stored in directory: /Users/shengyong/Library/Caches/pip/wheels/23/cf/80/f3efa822e6ab23277902ee9165fe772eeb1dfb8014f359020a
Successfully built antlr4-python3-runtime
Failed to build astromodels
ERROR: Could not build wheels for astromodels, which is required to install pyproject.toml-based projects

It's may be the same issue #127 or related to issue #127, but I tried both python 3.10 and 3.9, and still got this error. Installation on the Ubuntu desktop is OK, so it might be a macOS specific issue.

I have a Intel Mac:
image

@israelmcmc israelmcmc added the dependencies Installation problems related to external packages label May 28, 2024
@israelmcmc
Copy link
Collaborator

Thanks, @Yong2Sheng . I think the solution is to specify a previous stable version of astromodels (or at least skip this one).

@israelmcmc
Copy link
Collaborator

@Yong2Sheng Can you try running just pip install astromodels? Just to make sure the issue is not with cosipy itself.

@Yong2Sheng
Copy link
Contributor Author

Hi @israelmcmc,

What's worked

Install astromodels via conda and then run pip install -e ., it worked!

Failed tries

I tried :

  1. pip install astromodels after unsetting HEADAS (this will cause another error about XSPEC), and I still got the error.
  2. sudo -H pip install astromodels since it seems related to the permission, but it didn't work.
  3. pip3 install astromodels, same problem.
      OSError: [Errno 66] Directory not empty: '/private/tmp/pip-install-1r16d2mn/astromodels_9fe4ea04a7d549a0af2c47c1421bf42d/.eggs/numpy-1.26.4-py3.9-macosx-10.9-x86_64.egg/numpy-1.26.4.dist-info' -> '/private/tmp/pip-install-1r16d2mn/astromodels_9fe4ea04a7d549a0af2c47c1421bf42d/.eggs/numpy-1.26.4-py3.9-macosx-10.9-x86_64.egg/EGG-INFO'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed cleaning build dir for astromodels
  Building wheel for antlr4-python3-runtime (setup.py) ... done
  Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144554 sha256=8aa3422b2a08e98455e7a242964352b200e2df9f290c1aee6698e1d2cd78be3a
  Stored in directory: /private/var/root/Library/Caches/pip/wheels/23/cf/80/f3efa822e6ab23277902ee9165fe772eeb1dfb8014f359020a
Successfully built antlr4-python3-runtime
Failed to build astromodels
ERROR: Could not build wheels for astromodels, which is required to install pyproject.toml-based projects

@israelmcmc
Copy link
Collaborator

@Yong2Sheng Is the conda's astromodel's version the same as the one pip tried to install?

@Yong2Sheng
Copy link
Contributor Author

Hi @israelmcmc, the astromodels version installed by anaconda is 2.4.2.

@israelmcmc
Copy link
Collaborator

I tracked down the issue and explained it here: threeML/astromodels#209

While this is addressed on either astromodels or setuptools, we'll have to use pip install --use-pep517 with newer versions of setuptools. I'll update the installation instructions.

@israelmcmc
Copy link
Collaborator

Related: #187 . I added --use-pep517 to the documentation there.

@israelmcmc israelmcmc moved this to Under review in cosipy Jul 15, 2024
@israelmcmc israelmcmc added this to the DC3 milestone Jul 15, 2024
@israelmcmc israelmcmc self-assigned this Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Installation problems related to external packages
Projects
Status: Under review
Development

No branches or pull requests

2 participants