DEV Community

lodha13
lodha13

Posted on

get_cmake_version raise SKBuildError(msg) from err

I am trying to install sewar (which internally uses cmake) getting below error.

please help.

$ pip install cmake
Collecting cmake
Using cached cmake-3.27.9.tar.gz (42 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cmake
Building wheel for cmake (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for cmake (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-hncdaj_b/overlay/lib/python3.11/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output
warnings.warn("git archive did not support describe output")
/data/data/com.termux/files/usr/tmp/pip-build-env-hncdaj_b/overlay/lib/python3.11/site-packages/setuptools_scm/git.py:327: UserWarning: unprocessed git archival found (no export subst applied)
warnings.warn("unprocessed git archival found (no export subst applied)")
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/tmp/pip-build-env-hncdaj_b/overlay/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 645, in setup
cmkr = cmaker.CMaker(cmake_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-hncdaj_b/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 148, in init
self.cmake_version = get_cmake_version(self.cmake_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-hncdaj_b/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 105, in get_cmake_version
raise SKBuildError(msg) from err

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cmake:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) If running on Raspberry Pi OS, you can set PIP_ONLY_BINARY=cmake in
         order to retrieve the latest wheels built by piwheels.
         c.f. https://github.com/scikit-build/cmake-python-distributions/issues/392#issuecomment-1676284749
      3) If on Linux, with glibc < 2.12, you can set PIP_ONLY_BINARY=cmake in
         order to retrieve the last manylinux1 compatible wheel.
      4) If on Linux, with glibc < 2.12, you can cap "cmake<3.23" in your
         requirements in order to retrieve the last manylinux1 compatible wheel.
      5) Open an issue with the debug information that follows at
         https://github.com/scikit-build/cmake-python-distributions/issues

      Python: 3.11.6
      platform: Linux-4.14.190-perf+-aarch64-with-libc
      machine: aarch64
      bits: 64
      pip: n/a
      setuptools: 69.0.2
      scikit-build: 0.17.6
      PEP517_BUILD_BACKEND=setuptools.build_meta
      =============================DEBUG ASSISTANCE=============================

  Problem with the CMake installation, aborting build. CMake executable is cmake
  [end of output]
Enter fullscreen mode Exit fullscreen mode

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cmake
Failed to build cmake
ERROR: Could not build wheels for cmake, which is required to install pyproject.toml-based projects
$ pip install --upgrade pip
ERROR: Installing pip is forbidden, this will break the python-pip package (termux).

Top comments (0)