-
Notifications
You must be signed in to change notification settings - Fork 68
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
pip install pyccl
is broken
#1194
Comments
Since the error seems to come during the swig compilation, maybe it's an issue with the swig version? Long-term we should just get rid of the C stuff or at least use something modern like pybind11. |
I will check that and report here! On the MacOS, I have updated both swig and Cmake and still got it breaking |
Maybe try downgrading swig and cmake. I know that at least for cmake some new versions are not fully backwards compatible. |
Try removing the |
I also had pip issues installing CCL. Mine complained that CMake is not installed despite CMake having been installed via brew (I also tried the pip one) and the "cmake" command being there in the command line. I think I managed to get it installed using GitHub and installing manually with setup.py |
Can you elaborate on how you installed it manually with setup.py? I am facing the same issue. |
In SOLikeT we have started having problems building pyccl too. This appears only on Python 3.8 AND linux (not on other python version or on python 3.8 in macos). From looking at where the error first appears:
and the policy mentioned in the warning:
It seems as though updating this file might help? I have never used cmake though so it may have nothing to do with it! |
Okay! I was able to fix this by making sure I'm not sure I understand why your
in the pyproject.toml wasn't already enforcing this though? |
Sorry, to be more specific, I was able to get it installed in an env which looks like this:
On an arm64 macbook. Note the up to date versions of cmake and swig. I had the installation failing before on the |
Hi CCL Devs!
Unsure this is a known issue but the
python -m pip install pyccl
seems to be broken.I understand that
conda install pyccl
is a working alternative but this forces other packages dependent on ccl to also drop PyPI support.On MacOS we still have the issue reported here: #404 where CMake cannot be found when using pip.
On linux machines, the error is longer but still fails:
This is in a fresh new test environment.
The text was updated successfully, but these errors were encountered: