Skip to content

Failed building wheel for pymgclient because of bdist_wheel on Mac M4 #10

@BinglanLi

Description

@BinglanLi

Environment: Apple MacBook Pro M4 Max, Sequoia 15.3.2

Issue

I ran into the following error when pip install escargot.

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      running bdist_wheel
      running build
      running build_ext
      Using static OpenSSL: True
      Checking if cmake3 can be used
      cmake3 is not accesible
      Checking if cmake can be used
      cmake is not accesible
      error: Cannot found suitable cmake
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pymgclient
  Running setup.py clean for pymgclient
  Building wheel for pypika (pyproject.toml) ... done
Successfully built pypika
Failed to build pymgclient
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pymgclient)

Solution

The issue is resolved by installing the following package before escargot.

pip install Cmake

Google suggested another solution, sudo apt-get install build-essential. Though, I did not try it out.

Suggestion

Should Cmake be included in the toml?

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