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: Could not build wheels for ilupp, which is required to install pyproject.toml-based projects #7

Open
JiaLonghao1997 opened this issue Apr 4, 2024 · 0 comments

Comments

@JiaLonghao1997
Copy link

When I want to install ilupp, I get the following error. We tried searching for a solution via Google, but to no avail. If you can provide some helpful suggestions, I would be very grateful.

(l2g2l) [jialh@amdnode2 ~]$ pip install ilupp
Collecting ilupp
  Using cached ilupp-1.0.2.tar.gz (155 kB)
  Preparing metadata (setup.py) ... done
Collecting numpy>=1.11 (from ilupp)
  Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting scipy (from ilupp)
  Using cached scipy-1.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.0 MB)
Using cached scipy-1.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.2 MB)
Building wheels for collected packages: ilupp
  Building wheel for ilupp (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/lib/python3.12/site-packages/setuptools/__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-312
      creating build/lib.linux-x86_64-cpython-312/ilupp
      copying ilupp/__init__.py -> build/lib.linux-x86_64-cpython-312/ilupp
      running build_ext
      creating tmp
      gcc -pthread -B /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/compiler_compat -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include -fPIC -O2 -isystem /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include -fPIC -I/home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include/python3.12 -c /tmp/tmp5fvhfh07.cpp -o tmp/tmp5fvhfh07.o -std=c++17
      gcc -pthread -B /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/compiler_compat -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include -fPIC -O2 -isystem /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include -fPIC -I/home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include/python3.12 -c /tmp/tmp_hc410im.cpp -o tmp/tmp_hc410im.o -fvisibility=hidden
      building 'ilupp._ilupp' extension
      creating build/temp.linux-x86_64-cpython-312
      creating build/temp.linux-x86_64-cpython-312/src
      gcc -pthread -B /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/compiler_compat -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include -fPIC -O2 -isystem /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include -fPIC -I/tmp/pip-install-7crf4_ya/ilupp_e4ed8533b166465baedcb28d94298ad7/.eggs/pybind11-2.12.0-py3.12.egg/pybind11/include -I/tmp/pip-install-7crf4_ya/ilupp_e4ed8533b166465baedcb28d94298ad7/.eggs/pybind11-2.12.0-py3.12.egg/pybind11/include -I/home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l/include/python3.12 -c src/binding.cpp -o build/temp.linux-x86_64-cpython-312/src/binding.o -DVERSION_INFO=\"1.0.2\" -std=c++17 -fvisibility=hidden
      gcc: fatal error: Killed signal terminated program cc1plus
      compilation terminated.
      error: command '/home1/jialh/tools/anaconda3/envs/cxx-compiler/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ilupp
  Running setup.py clean for ilupp
Failed to build ilupp
ERROR: Could not build wheels for ilupp, which is required to install pyproject.toml-based projects

Here are my python and packages:

(l2g2l) [jialh@amdnode2 ~]$ conda list
# packages in environment at /home1/jialh/tools/anaconda3/envs/mamba/envs/l2g2l:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
bzip2                     1.0.8                hd590300_5    conda-forge
ca-certificates           2024.2.2             hbcca054_0    conda-forge
expat                     2.6.2                h59595ed_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    conda-forge
libgomp                   13.2.0               h807b86a_5    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsqlite                 3.45.2               h2797004_0    conda-forge
libuuid                   1.41.5               h5eee18b_0  
libxcrypt                 4.4.36               hd590300_1    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
ncurses                   6.4.20240210         h59595ed_0    conda-forge
openssl                   3.2.1                hd590300_1    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
python                    3.12.0               h996f2a0_0    anaconda
readline                  8.2                  h8228510_1    conda-forge
setuptools                69.2.0             pyhd8ed1ab_0    conda-forge
sqlite                    3.45.2               h2c6b66d_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
wheel                     0.43.0             pyhd8ed1ab_1    conda-forge
xz                        5.4.6                h5eee18b_0  
zlib                      1.2.13               hd590300_5    conda-forge

My gcc and g++ is:

(l2g2l) [jialh@amdnode2 ~]$ gcc --version
gcc (conda-forge gcc 12.3.0-3) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(l2g2l) [jialh@amdnode2 ~]$ g++ --version
g++ (conda-forge gcc 12.3.0-3) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
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

1 participant