letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
587 stars 67 forks source link

Is macOS universal2.whl pre-compiled for Apple Silicon? #170

Closed AlbertEmil closed 2 years ago

AlbertEmil commented 2 years ago

Providing a universal2.whl normally implies being pre-compiled for both Intel-based and Apple Silicon-based Macs. However, this does not seem to be the case as the following error message is raised after import:

ImportError: dlopen(/opt/homebrew/Caskroom/miniforge/base/envs/image-processing/lib/python3.10/site-packages/rawpy/_rawpy.cpython-310-darwin.so, 0x0002): tried: '/opt/homebrew/Caskroom/miniforge/base/envs/image-processing/lib/python3.10/site-packages/rawpy/_rawpy.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/_rawpy.cpython-310-darwin.so' (no such file), '/usr/lib/_rawpy.cpython-310-darwin.so' (no such file)

Could someone please elaborate on this? Is there a way to compile the required binaries myself?

letmaik commented 2 years ago

Duplicate of https://github.com/letmaik/rawpy/issues/167. The filename tagging is fixed and the next release will not have universal2. Currently, Apple arm64 is not supported.