Skip to content

Unable to pip install 1.10.2.1 on Mac #81

Closed
@foundry-markf

Description

@foundry-markf

Hi,

I'm unable to pip install 1.10.2.1 onto my Mac (and several others).

The error I've seen is:

(env382) FWMBP064:src mark.final$ pip install ninja==1.10.2.1
Collecting ninja==1.10.2.1
  Using cached https://files.pythonhosted.org/packages/07/2b/84175ca3e5978f9e1be3672b7618c6be713b69e3a50c98617b7ba4422d58/ninja-1.10.2.1.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: ninja
  Building wheel for ninja (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/mark.final/dev/conan/env382/bin/python3 /Users/mark.final/dev/conan/env382/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/90/7pnh_dhd19n9lpynqd0ppwt80000gn/T/tmp4x8ea5_h
       cwd: /private/var/folders/90/7pnh_dhd19n9lpynqd0ppwt80000gn/T/pip-install-n2vn6py8/ninja
  Complete output (13 lines):
  Traceback (most recent call last):
    File "/Users/mark.final/dev/conan/env382/bin/cmake", line 6, in <module>
      from cmake import cmake
  ModuleNotFoundError: No module named 'cmake'
    File "/private/var/folders/90/7pnh_dhd19n9lpynqd0ppwt80000gn/T/pip-build-env-ljc4cp78/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 564, in setup
      cmkr = cmaker.CMaker(cmake_executable)
    File "/private/var/folders/90/7pnh_dhd19n9lpynqd0ppwt80000gn/T/pip-build-env-ljc4cp78/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 95, in __init__
      self.cmake_version = get_cmake_version(self.cmake_executable)
    File "/private/var/folders/90/7pnh_dhd19n9lpynqd0ppwt80000gn/T/pip-build-env-ljc4cp78/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 81, in get_cmake_version
      raise SKBuildError(
  Traceback (most recent call last):

  Problem with the CMake installation, aborting build. CMake executable is cmake
  ----------------------------------------
  ERROR: Failed building wheel for ninja
  Running setup.py clean for ninja
Failed to build ninja
ERROR: Could not build wheels for ninja which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I also have CMake in my virtual environment:

(env382) FWMBP064:src mark.final$ cmake --version
cmake version 3.21.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
(env382) FWMBP064:src mark.final$ which cmake
/Users/mark.final/dev/conan/env382/bin/cmake

and this is

(env382) FWMBP064:src mark.final$ python --version
Python 3.8.2

and my system info

(env382) FWMBP064:src mark.final$ uname -a
Darwin FWMBP064.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64 x86_64

I can pip install ninja==1.10.2 without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions