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

Error installing ccl library #1199

Open
abhavishwakarma123 opened this issue Sep 16, 2024 · 3 comments
Open

Error installing ccl library #1199

abhavishwakarma123 opened this issue Sep 16, 2024 · 3 comments

Comments

@abhavishwakarma123
Copy link

Hello everyone,

I have been trying to install the ccl library in linux but I keep getting an error that setuptools is not available.

Collecting pyccl
Using cached pyccl-3.0.2.tar.gz (16.8 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.

Even when I try installing it manually from the source, I get a long error regarding the cmake library, which is installed.

Processing /home/abha2208/CCL
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/abha2208/miniconda3/lib/python3.11/site-packages (from pyccl==3.2.dev1+ga14a7172) (1.26.4)
Building wheels for collected packages: pyccl
Building wheel for pyccl (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pyccl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [157 lines of output]
ModuleNotFoundError while trying to load entry-point upload_docs: No module named 'setuptools.command.upload_docs'
running bdist_wheel
running build
running build_py
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
.
.
.
.
.
.
.
File "/tmp/pip-build-env-m2hns2xu/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 950, in run_command
super().run_command(command)
File "/tmp/pip-build-env-m2hns2xu/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "", line 53, in run
File "", line 19, in _compile_ccl
Exception: Could not run CMake configuration. Make sure CMake is installed !
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyccl
Failed to build pyccl
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyccl)

It would be of great help if someone could help me out here.

@hsinfan1996
Copy link
Contributor

Can you try installing from the source again by first removing the build folder and installing with python -m pip install . --no-use-pep517?

@abhavishwakarma123
Copy link
Author

Can you try installing from the source again by first removing the build folder and installing with python -m pip install . --no-use-pep517?

I tried it but I am still getting the same error:

Processing /home/abha2208/CCL
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.

@hsinfan1996
Copy link
Contributor

The issue seems to be related to setuptools. Do you have setuptools installed in your environment? If so, what version?

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