<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: lodha13</title>
    <description>The latest articles on Forem by lodha13 (@lodha13).</description>
    <link>https://forem.com/lodha13</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1230525%2Fe5afcd66-c9cd-4067-8758-47e8da4277dd.png</url>
      <title>Forem: lodha13</title>
      <link>https://forem.com/lodha13</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/lodha13"/>
    <language>en</language>
    <item>
      <title>get_cmake_version raise SKBuildError(msg) from err</title>
      <dc:creator>lodha13</dc:creator>
      <pubDate>Mon, 11 Dec 2023 04:48:50 +0000</pubDate>
      <link>https://forem.com/lodha13/getcmakeversion-raise-skbuilderrormsg-from-err-2i8j</link>
      <guid>https://forem.com/lodha13/getcmakeversion-raise-skbuilderrormsg-from-err-2i8j</guid>
      <description>&lt;p&gt;I am trying to install sewar (which internally uses cmake) getting below error.&lt;/p&gt;

&lt;p&gt;please help.&lt;/p&gt;

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

&lt;p&gt;× Building wheel for cmake (pyproject.toml) did not run successfully.&lt;br&gt;
  │ exit code: 1&lt;br&gt;
  ╰─&amp;gt; [41 lines of output]&lt;br&gt;
      /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&lt;br&gt;
        warnings.warn("git archive did not support describe output")&lt;br&gt;
      /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)&lt;br&gt;
        warnings.warn("unprocessed git archival found (no export subst applied)")&lt;br&gt;
      Traceback (most recent call last):&lt;br&gt;
        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&lt;br&gt;
          cmkr = cmaker.CMaker(cmake_executable)&lt;br&gt;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br&gt;
        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 &lt;em&gt;init&lt;/em&gt;&lt;br&gt;
          self.cmake_version = get_cmake_version(self.cmake_executable)&lt;br&gt;
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br&gt;
        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&lt;br&gt;
          raise SKBuildError(msg) from err&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      =============================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 &amp;lt; 2.12, you can set PIP_ONLY_BINARY=cmake in
         order to retrieve the last manylinux1 compatible wheel.
      4) If on Linux, with glibc &amp;lt; 2.12, you can cap "cmake&amp;lt;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]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

</description>
      <category>sewar</category>
      <category>cmake</category>
      <category>pip</category>
      <category>python</category>
    </item>
  </channel>
</rss>
