ZimventuresLLC / stackzilla

An Application ORM for Python Developers
GNU Affero General Public License v3.0
1 stars 0 forks source link

[Bug]: Pip Install failure on Mac (Arm Chip) #66

Open shawnxu15 opened 1 year ago

shawnxu15 commented 1 year ago

Contact Details

xiangxu1105@gmail.com

What happened?

I got an install issue, it caused by one of the dependent package gevent

My Python Env:

$ python -m venv bug-01
$ source bug-01/bin/activate
(bug-01) $ pip install --upgrade pip 
(bug-01) $ python --version
Python 3.8.9
(bug-01) $ pip --version
pip 22.3.1 from /Users/xiangxu/workplace/stackzilla/bug-01/lib/python3.8/site-packages/pip (python 3.8)

Version

0.1.0 (Alpha)

What operating system are you seeing the problem on?

macOS

Distro/OS Version

Mac Mini (macOS Monterey, M1 Chip)

Relevant log output

Error trace when I do `pip install stackzilla`:

Building wheels for collected packages: gevent
  Building wheel for gevent (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for gevent (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [433 lines of output]

......
......
.....
.....

      build/temp.macosx-10.14.6-arm64-cpython-38/gevent.libuv._corecffi.c:50:14: fatal error: 'pyconfig.h' file not found
      #    include <pyconfig.h>
                   ^~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gevent
Failed to build gevent
ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
shawnxu15 commented 1 year ago

one way to work around this issue by now pip install --only-binary :all: stackzilla