zopefoundation / BTrees

Other
80 stars 28 forks source link

btrees not installing on m1 computer #183

Closed jimmycarney1 closed 1 year ago

jimmycarney1 commented 2 years ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

What I did:

I have an M1 chip, I have tried install with pyenv, poetry env, and conda

pip install btrees

What I expect to happen:

btrees installed

What actually happened:

    File "/private/var/folders/4n/lgrh08857cnd7rcfkkxgzwcr0000gq/T/pip-build-env-rwiakpn9/overlay/lib/python3.10/site-packages/pkg_resources/__init__.py", line 358, in get_provider
      __import__(moduleOrReq)
    File "/private/var/folders/4n/lgrh08857cnd7rcfkkxgzwcr0000gq/T/pip-build-env-rwiakpn9/overlay/lib/python3.10/site-packages/persistent/__init__.py", line 36, in <module>
      from persistent import picklecache as _picklecache
    File "/private/var/folders/4n/lgrh08857cnd7rcfkkxgzwcr0000gq/T/pip-build-env-rwiakpn9/overlay/lib/python3.10/site-packages/persistent/picklecache.py", line 30, in <module>
      from persistent.ring import Ring
    File "/private/var/folders/4n/lgrh08857cnd7rcfkkxgzwcr0000gq/T/pip-build-env-rwiakpn9/overlay/lib/python3.10/site-packages/persistent/ring.py", line 22, in <module>
      from persistent import _ring
  ImportError: dlopen(/private/var/folders/4n/lgrh08857cnd7rcfkkxgzwcr0000gq/T/pip-build-env-rwiakpn9/overlay/lib/python3.10/site-packages/persistent/_ring.abi3.so, 0x0002): tried: '/opt/homebrew/opt/geos/lib//_ring.abi3.so' (no such file), '/private/var/folders/4n/lgrh08857cnd7rcfkkxgzwcr0000gq/T/pip-build-env-rwiakpn9/overlay/lib/python3.10/site-packages/persistent/_ring.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

What version of Python and Zope/Addons I am using:

3.10.4

icemac commented 2 years ago

I have no M1 so I can just guess: There are no specific wheels for M1 processors of BTrees released,` yet. There is not even a universal wheel. So it has to be compiled from the sources.

icemac commented 1 year ago

This should be solved now as there are M1 wheels.