cositools / cosipy

The COSI high-level data analysis tools
Apache License 2.0
3 stars 16 forks source link

pip install cosipy issue with astromodels #165

Closed nmik closed 3 months ago

nmik commented 3 months ago

I was having an issue with installing cosipy with pip that was crushing when building the astromodels:

Screenshot 2024-03-18 at 2 33 59 AM

The prompt error also suggested the following:

Screenshot 2024-03-18 at 2 34 37 AM

Which worked:

pip install --use-pep517 -e .

I haven't tried if the non developer version of the pip installation also works:

pip install cosipy==0.0.2a --use-pep517

israelmcmc commented 3 months ago

@nmik can you try with Python 3.10, please?

I remember seeing this before, I think it's related to issue #127 (which is really an issue with one of our dependencies)

nmik commented 3 months ago

@israelmcmc I dis start from scratch from a new conda environment following the instructions here: https://cositools.github.io/cosipy/install.html

I created the conda environment with: conda create -n <cosipy_env_name> python=3.10 pip

Indeed the python version in the environment is Python 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:59) [Clang 16.0.6 ] on darwin Type "help", "copyright", "credits" or "license" for more information.

israelmcmc commented 3 months ago

Python 3.10 worked. Closing this issue.