Open3D
Open3D copied to clipboard
Invalid wheel selected for MacOS running in Rosetta
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
main
branch).
Steps to reproduce the issue
Hi!
So firstly, I'd like to provide some context. I'm running an M1 Pro MBP 16" and I'm using the 3D Slicer application, which runs on mac only in Rosetta. Up until Open3D version 0.17.0, the installation process was great since it recognized that the python interpreter is running under Rosetta.
However, with version 0.18.0, when trying to install the Open3D library, I have noticed that the universal
wheel is being pulled by the pip install open3d
command. In previous versions, the x86_64
wheel was being installed.
Eversince the universal
wheel, the installation goes on fine, but when importing the module, it results in the error described below. When installed directly using
pip install https://github.com/isl-org/Open3D/releases/download/v0.18.0/open3d-0.18.0-cp39-cp39-macosx_11_0_x86_64.whl
it works as intended.
Error message
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/open3d/__init__.py", line 93, in <module>
from open3d.cpu.pybind import (core, camera, data, geometry, io, pipelines,
ImportError: dlopen(/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so, 0x0002): tried: '/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so' (no such file), '/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Open3D, Python and System information
- Operating system: macOS
- Python version: Python 3.9 (cp39)
- Open3D version: 0.18.0
- System architecture: x86 (under Rosetta)
- Is this a remote workstation?: no
- How did you install Open3D?: pip
Additional information
Output of pip install open3d
:
Collecting open3d
Using cached open3d-0.18.0-cp39-cp39-macosx_13_0_universal2.whl.metadata (4.1 kB)