Hello,
It is no more possible to install TheengsGateway as a pip package (in venv or not doesn’t change anything)
I tried and I have reproduced the same behavior on a debian 11 and debian 12 vm, both fully upgraded
Actually, it is TheengsDecoder that is causing issue:
python3 -m pip install TheengsDecoder
=>
Collecting TheengsDecoder
Using cached theengsdecoder-1.8.5.tar.gz (304 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: TheengsDecoder
Building wheel for TheengsDecoder (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for TheengsDecoder (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [84 lines of output]
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/tmp/pip-build-env-_6g27v2d/normal/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'
--------------------------------------------------------------------------------
-- Trying 'Ninja' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
/tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc/_skbuild/linux-x86_64-3.9/cmake-build
Command:
/tmp/pip-build-env-_6g27v2d/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake /tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc/_skbuild/linux-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.2 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-_6g27v2d/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/jeedom/gw_venv/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPYTHON_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.9.so -DPython_EXECUTABLE:PATH=/home/jeedom/gw_venv/bin/python3 -DPython_ROOT_DIR:PATH=/home/jeedom/gw_venv -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPython3_EXECUTABLE:PATH=/home/jeedom/gw_venv/bin/python3 -DPython3_ROOT_DIR:PATH=/home/jeedom/gw_venv -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.9 -DCMAKE_MAKE_PROGRAM:FILEPATH=ninja -DCMAKE_BUILD_TYPE:STRING=Release
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Not searching for unused variables given on the command line.
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/tmp/pip-build-env-_6g27v2d/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 660, in setup
env = cmkr.configure(
File "/tmp/pip-build-env-_6g27v2d/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 354, in configure
raise SKBuildError(msg)
An error occurred while configuring with CMake.
Command:
/tmp/pip-build-env-_6g27v2d/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake /tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc/_skbuild/linux-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.2 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-_6g27v2d/overlay/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/jeedom/gw_venv/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPYTHON_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.9.so -DPython_EXECUTABLE:PATH=/home/jeedom/gw_venv/bin/python3 -DPython_ROOT_DIR:PATH=/home/jeedom/gw_venv -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.9 -DPython3_EXECUTABLE:PATH=/home/jeedom/gw_venv/bin/python3 -DPython3_ROOT_DIR:PATH=/home/jeedom/gw_venv -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.9 -DCMAKE_MAKE_PROGRAM:FILEPATH=ninja -DCMAKE_BUILD_TYPE:STRING=Release
Source directory:
/tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc
Working directory:
/tmp/pip-install-yxl8h5iv/theengsdecoder_1ba096835b2a492fac582573e0e6cddc/_skbuild/linux-x86_64-3.9/cmake-build
Please see CMake's output for more information.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for TheengsDecoder
Failed to build TheengsDecoder
ERROR: Failed to build installable wheels for some pyproject.toml based projects (TheengsDecoder)
my investigations so far make me think that the version of cmake defined (3.3) is the cause as compatibility with cmake<3.5 has been dropped but I don’t know exactly since which version)
I could reproduce the same error if I try to install from source so I tried to update CMakeLists.txt
files but I’m confused on which one should be use exactly between /CMakeLists.txt
(on the root) and /python/CMakeLists.txt
If I adapt MIN cmake version in the second, I don’t have the error above anymore but others pop regarding src files not found / invalid path; seems like target_include_directories()
is not taken into account.
I don’t know anything about cmake so I’m bit lost;
Is this an issue you spotted already? Any advice to move fwd?