embray / gappy

Python interface to GAP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not install gappy

mhelal opened this issue · comments

Hi

I am trying to install gappy, and it seems the shared library "/usr/bin/ld: cannot find -lgap" is not found. I already install gap-core "sudo apt install gap-core" and it is running very well. I searched for the library and it is not found on the system. This is ubuntu 5.14.0-1051-oem #58-Ubuntu SMP Fri Aug 26 05:50:00 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

All other build-essentials are installed

I appreciate your help to resolve,

Thanks,

Manal

'''
$ pip install gappy-system
Defaulting to user installation because normal site-packages is not writeable
Processing /home/manal/gappy
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting psutil
Using cached psutil-5.9.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (284 kB)
Requirement already satisfied: cysignals in /home/manal/.local/lib/python3.8/site-packages (from gappy-system==0.1.0a4.dev5+ga0642c4) (1.11.2)
Requirement already satisfied: Cython>=0.28 in /home/manal/.local/lib/python3.8/site-packages (from cysignals->gappy-system==0.1.0a4.dev5+ga0642c4) (0.29.32)
Building wheels for collected packages: gappy-system
Building wheel for gappy-system (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for gappy-system (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
running bdist_wheel
running build
running build_py
copying gappy/_version.py -> build/lib.linux-x86_64-cpython-38/gappy
running build_ext
Compiling gappy/core.pyx because it depends on /tmp/pip-build-env-_yugiuxq/overlay/lib/python3.8/site-packages/cysignals/signals.pxd.
Compiling gappy/gapobj.pyx because it depends on /tmp/pip-build-env-_yugiuxq/overlay/lib/python3.8/site-packages/cysignals/signals.pxd.
Compiling gappy/utils.pyx because it depends on /tmp/pip-build-env-_yugiuxq/overlay/lib/python3.8/site-packages/Cython/Includes/posix/dlfcn.pxd.
[1/3] Cythonizing gappy/core.pyx
[2/3] Cythonizing gappy/gapobj.pyx
[3/3] Cythonizing gappy/utils.pyx
building 'gappy.core' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-_yugiuxq/overlay/lib/python3.8/site-packages/cysignals-I/usr/include/python3.8 -c gappy/core.c -o build/temp.linux-x86_64-cpython-38/gappy/core.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-x86_64-cpython-38/gappy/core.o -L/usr/lib -lgap -lgmp -lm -o build/lib.linux-x86_64-cpython-38/gappy/core.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: cannot find -lgap
collect2: error: ld returned 1 exit status
/tmp/pip-build-env-_yugiuxq/overlay/lib/python3.8/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead
warnings.warn(
error: command '/usr/bin/x86_64-linux-gnu-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 gappy-system
Failed to build gappy-system
ERROR: Could not build wheels for gappy-system, which is required to install pyproject.toml-based projects

'''

Thank you for the detailed report.

I'm not very familiar with how GAP is packaged for Ubuntu, but it's possible the gap-core package doesn't include the libgap shared library.

Apparently there's a libgap7 package you could try installing, and/or the related libgap-dev package which might be necessary for some headers. I've never tried installing it like that before though.

Please let me know if that works, and if not I can take a deeper look.