Closed
Description
Running pip install pygit2
on my M1 Pro MacBook completes without any errors. But if I then try to import it, I get the following exception:
aaron@aaron-wyvern ~ % python
Python 3.10.0 (default, Nov 1 2021, 21:07:02) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygit2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aaron/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/pygit2/__init__.py", line 30, in <module>
from ._pygit2 import *
ImportError: dlopen(/Users/aaron/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/pygit2/_pygit2.cpython-310-darwin.so, 0x0002): tried: '/Users/aaron/.asdf/installs/python/3.10.0/lib/python3.10/site-packages/pygit2/_pygit2.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/_pygit2.cpython-310-darwin.so' (no such file), '/usr/lib/_pygit2.cpython-310-darwin.so' (no such file)
...with the most important bit seeming to be incompatible architecture (have 'x86_64', need 'arm64e')
.
If I instead use pip install pygit2 --no-binary pygit2
, the package works as expected, as long as I have libgit2
installed on my system.
Would it please be possible to include a pre-built macOS ARM binary in the PyPI package?
Metadata
Metadata
Assignees
Labels
No labels