Closed elehcim closed 9 months ago
Hello,
The gfal2.so
library is the one you are trying to build via the gfal2-python
project. After a successful build, it is usually installed in:
/usr/lib64/python3.6/site-packages/gfal2.so
From your CMake messages, I gather the following:
-- Could NOT find PythonCurrentInclude (missing: PYTHON_INCLUDE_PATH)
-- Could NOT find PythonCurrentLibs (missing: PYTHON_LIBRARIES)
-- Could NOT find PythonCurrentModsDir (missing: PYTHON_SITE_PACKAGES)
-- Boost Python3 library not found
Do you have python3.11-devel
installed?
Also, it looks like you're missing boost-python3
for Python3.11.
I suspect the underlying problem is running pip install gfal2-python
without having the proper dependencies in place.
I wrote a guide on what's needed to do a pip install
here [1]
I'm currently fighting to change the PyPi description to link to this guide. This will make things easier, or at least, less confusing.
I noticed you're building on Debian-based distribution. Unfortunately, we don't offer much support for that as we provide for RHEL-based distributions. Any package dependency or building problems you might run into leave you in uncharted territory.
Hope this helps!
Cheers, Mihai
[1] https://dmc-docs.web.cern.ch/dmc-docs/gfal2-python/pip-install.html
Hello,
Closing this issue. I believe running the pip-install guide would solve the problem.
Unfortunately, the build platform is Debian-based, which is not officially supported.
Cheers, Mihai
Thank you, after a while I managed to work again on this issue and at the end following your directions I fixed the issue with the following Dockerfile:
FROM almalinux:9
RUN dnf install -y git epel-release
RUN git clone --depth 1 --branch v1.12.2 https://github.com/cern-fts/gfal2-python.git
WORKDIR /gfal2-python/
RUN ./ci/fedora-packages.sh
WORKDIR /gfal2-python/packaging/
RUN RPMBUILD_SRC_EXTRA_FLAGS="--without docs --without python2" make srpm
RUN dnf builddep -y gfal2-python-1.12.2-1.el9.src.rpm
RUN pip install gfal2-python
WORKDIR /
Cheers and thank you, Michele
I'm trying to install gfal2-python in a docker image.
My Dockerfile is the following:
I get the following error:
Any idea why the gfal2.so library is not found? (I tried with python3.9 but I get the same error)