Build fails on python 3.11
besendorf opened this issue · 1 comments
besendorf commented
I tried building today on python3.11 specifically in python:3.11-alpine docker container.
58.29 Building wheels for collected packages: pyrage, adb-shell, ssh-python, ssh2-python, zope.interface
58.30 Building wheel for pyrage (pyproject.toml): started
88.94 Building wheel for pyrage (pyproject.toml): finished with status 'done'
88.95 Created wheel for pyrage: filename=pyrage-1.2.3-cp39-abi3-linux_x86_64.whl size=944555 sha256=e27d9906cdad32f335cdef374d2855af585d510aa74b85099d3f3fc6c2976adf
88.95 Stored in directory: /root/.cache/pip/wheels/ce/1d/88/499463286a8acbee3536f5569b408ea6be97e908a59e9d0205
88.95 Building wheel for adb-shell (setup.py): started
89.28 Building wheel for adb-shell (setup.py): finished with status 'done'
89.28 Created wheel for adb-shell: filename=adb_shell-0.4.4-py3-none-any.whl size=54531 sha256=9211e43b7c093d8661946c9bb5e64b3f5dbd1eca68e1582477de637b37aa4e6e
89.28 Stored in directory: /root/.cache/pip/wheels/4b/08/ed/4acfa21ef8c49e23c43991352f6efa3aa31d8d0834501a7b8b
89.28 Building wheel for ssh-python (setup.py): started
89.69 Building wheel for ssh-python (setup.py): finished with status 'error'
89.69 error: subprocess-exited-with-error
89.69
89.69 × python setup.py bdist_wheel did not run successfully.
89.69 │ exit code: 1
89.69 ╰─> [27 lines of output]
89.69 SYSTEM_LIBSSH is unset, starting embedded libssh build
89.69 -- The C compiler identification is GNU 14.2.0
89.69 -- The CXX compiler identification is unknown
89.69 -- Detecting C compiler ABI info
89.69 -- Detecting C compiler ABI info - done
89.69 -- Check for working C compiler: /usr/bin/cc - skipped
89.69 -- Detecting C compile features
89.69 -- Detecting C compile features - done
89.69 CMake Error at CMakeLists.txt:12 (project):
89.69 No CMAKE_CXX_COMPILER could be found.
89.69
89.69 Tell CMake where to find the compiler by setting either the environment
89.69 variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
89.69 to the compiler, or to the compiler name if it is in the PATH.
89.69
89.69
89.69 -- Configuring incomplete, errors occurred!
89.69 Traceback (most recent call last):
89.69 File "<string>", line 2, in <module>
89.69 File "<pip-setuptools-caller>", line 34, in <module>
89.69 File "/tmp/pip-install-sq50wz9k/ssh-python_8276f9593d7b4712b0584dff21b26b11/setup.py", line 39, in <module>
89.69 build_ssh()
89.69 File "/tmp/pip-install-sq50wz9k/ssh-python_8276f9593d7b4712b0584dff21b26b11/_setup_libssh.py", line 45, in build_ssh
89.69 check_call("""cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../local \
89.69 File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
89.69 raise CalledProcessError(retcode, cmd)
89.69 subprocess.CalledProcessError: Command 'cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../local -DWITH_GSSAPI=ON -DWITH_EXAMPLES=OFF -DUNIT_TESTING=OFF ../libssh' returned non-zero exit status 1.
89.69 [end of output]
89.69
89.69 note: This error originates from a subprocess, and is likely not a problem with pip.
89.69 ERROR: Failed building wheel for ssh-python
enkore commented
You need to install the build-base package.