MACS icon indicating copy to clipboard operation
MACS copied to clipboard

Q: ERROR: Could not build wheels for cykhash, which is required to install pyproject.toml-based projects

Open Eunbi9561 opened this issue 9 months ago • 3 comments

Hello, I'm trying to install MACS on my Linux system using "pip3 install macs3" code , but I got the error.

Defaulting to user installation because normal site-packages is not writeable Collecting macs3 Using cached MACS3-3.0.0a7.tar.gz (608 kB) Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [94 lines of output] Collecting pip Using cached pip-24.0-py3-none-any.whl.metadata (3.6 kB) Collecting setuptools>=41.2 Using cached setuptools-68.0.0-py3-none-any.whl.metadata (6.4 kB) Collecting numpy>=1.17 Using cached numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (2.1 kB) Collecting cykhash>=1.0.2 Using cached cykhash-2.0.1.tar.gz (44 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting Cython>=0.29 Using cached Cython-3.0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB) Collecting wheel Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB) Using cached pip-24.0-py3-none-any.whl (2.1 MB) Using cached setuptools-68.0.0-py3-none-any.whl (804 kB) Using cached numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB) Using cached Cython-3.0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB) Using cached wheel-0.42.0-py3-none-any.whl (65 kB) Building wheels for collected packages: cykhash Building wheel for cykhash (pyproject.toml): started Building wheel for cykhash (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

× Building wheel for cykhash (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [57 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-37 creating build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/init.py -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/compat.py -> build/lib.linux-x86_64-cpython-37/cykhash running egg_info writing src/cykhash.egg-info/PKG-INFO writing dependency_links to src/cykhash.egg-info/dependency_links.txt writing top-level names to src/cykhash.egg-info/top_level.txt reading manifest file 'src/cykhash.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'src/cykhash.egg-info/SOURCES.txt' copying src/cykhash/common.pxi -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/floatdef.pxd -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/hash_functions.pxi -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/khash.pxi -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/khashmaps.pxd -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/khashmaps.pyx -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/khashsets.pxd -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/khashsets.pyx -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/memory.pxi -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/murmurhash.pxi -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/unique.pxd -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/unique.pyx -> build/lib.linux-x86_64-cpython-37/cykhash copying src/cykhash/utils.pyx -> build/lib.linux-x86_64-cpython-37/cykhash creating build/lib.linux-x86_64-cpython-37/cykhash/maps copying src/cykhash/maps/map_header.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/maps copying src/cykhash/maps/map_impl.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/maps copying src/cykhash/maps/map_init.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/maps creating build/lib.linux-x86_64-cpython-37/cykhash/sets copying src/cykhash/sets/set_header.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/sets copying src/cykhash/sets/set_impl.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/sets copying src/cykhash/sets/set_init.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/sets creating build/lib.linux-x86_64-cpython-37/cykhash/unique copying src/cykhash/unique/unique_impl.pxi.in -> build/lib.linux-x86_64-cpython-37/cykhash/unique copying src/cykhash/maps/map_header.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/maps copying src/cykhash/maps/map_impl.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/maps copying src/cykhash/maps/map_init.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/maps copying src/cykhash/sets/set_header.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/sets copying src/cykhash/sets/set_impl.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/sets copying src/cykhash/sets/set_init.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/sets copying src/cykhash/unique/unique_impl.pxi -> build/lib.linux-x86_64-cpython-37/cykhash/unique running build_ext building 'cykhash.khashsets' extension creating build/temp.linux-x86_64-cpython-37 creating build/temp.linux-x86_64-cpython-37/src creating build/temp.linux-x86_64-cpython-37/src/cykhash gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.7m -c src/cykhash/khashsets.c -o build/temp.linux-x86_64-cpython-37/src/cykhash/khashsets.o src/cykhash/khashsets.c:29:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command '/usr/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 cykhash
  Failed to build cykhash
  ERROR: Could not build wheels for cykhash, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Please could you check my error? Best regards, Eunbi

Eunbi9561 avatar Feb 03 '25 02:02 Eunbi9561