Installation issue, Could NOT find Protobuf
I try to install protozfits in the following way (i.e. the instructions provided, with a couple of apparently needed additions)
$ python3 -m venv venv
$ source venv/bin/activate
$ cd protozfits-python
$ git submodule update --init --recursive
$ pip install 'scikit-build-core[pyproject]' pybind11 'setuptools_scm[toml]'
$ pip install -e '.[all]' --no-build-isolation
And get the following error:
Using cached accessible_pygments-0.0.5-py3-none-any.whl (1.4 MB)
Using cached beautifulsoup4-4.13.4-py3-none-any.whl (187 kB)
Using cached typing_extensions-4.13.2-py3-none-any.whl (45 kB)
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Using cached soupsieve-2.7-py3-none-any.whl (36 kB)
Building wheels for collected packages: protozfits
Building editable for protozfits (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building editable for protozfits (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
WARNING: Use build.targets instead of cmake.targets for scikit-build-core >= 0.10
WARNING setuptools_scm.git git too old -> timestamp is '%cI'
*** scikit-build-core 0.11.3 using CMake 3.17.3 (editable)
*** Configuring CMake...
loading initial cache file build/CMakeInit.txt
-- Found pybind11: /fefs/aswg/workspace/abelardo.moralejo/software/venv/lib/python3.13/site-packages/pybind11/include (found version "2.13.6")
-- ADH-APIS GIT hash: 7199354
-- Could NOT find Protobuf (missing: Protobuf_DIR)
CMake Warning at adh-apis/cmake/Protobuf.cmake:9 (message):
Falling back to cmake FindProtobuf as Protobuf was not found via CONFIG
Call Stack (most recent call first):
adh-apis/CMakeLists.txt:31 (include)
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake3/Modules/FindProtobuf.cmake:626 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
adh-apis/cmake/Protobuf.cmake:10 (find_package)
adh-apis/CMakeLists.txt:31 (include)
-- Configuring incomplete, errors occurred!
See also "/fefs/aswg/workspace/abelardo.moralejo/software/protozfits-python/build/CMakeFiles/CMakeOutput.log".
*** CMake configuration failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for protozfits
Failed to build protozfits
[notice] A new release of pip is available: 24.3.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (protozfits)
I have python 3.13.2 and gcc 4.8.5
I need to install protozfits as developer to be able to use a branch of adh-apis