isl-org / isl-org/Open3D

Cannot pip install v0.18 on x86_64 arch with OSX 14 and Python 3.9

Open
#6,686 12 comments 0 reactions 0 assignees View on GitHub
build/install
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### Steps to reproduce the issue

#### I pip installed v0.18 Open3D:
```
python3.9 -m pip install open3d==0.18.0
```

#### Then, I tried to print out open3d version
```
open3d --version
```

#### Then, I inspected pybind.cpython-39-darwin.so
```
> file ${WORKSPACE}/env/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so

${WORKSPACE}/env/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so: Mach-O 64-bit bundle arm64
```

### Error message

```shell
$ open3d --version
Traceback (most recent call last):
File "${WORKSPACE}/env/bin/open3d", line 5, in
from open3d.tools.cli import main
File "${WORKSPACE}/env/lib/python3.9/site-packages/open3d/__init__.py", line 93, in
from open3d.cpu.pybind import (core, camera, data, geometry, io, pipelines,
ImportError: dlopen(${WORKSPACE}/env/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so, 0x0002): tried: '${WORKSPACE}/env/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS${WORKSPACE}/env/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so' (no such file), '${WORKSPACE}/env/lib/python3.9/site-packages/open3d/cpu/pybind.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
```
```

### Open3D, Python and System information

```markdown
- Operating system: macOS 14.2.1
- Python version: Python 3.9
- Open3D version: 0.18
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
- Compiler version (if built from source): n/a
```

### Additional information

Pip logs showed that it downloaded `open3d-0.18.0-cp39-cp39-macosx_13_0_universal2.whl` from pypi. Based on my inspection of `pybind.cpython-39-darwin.so` it seems like the wheel incorrectly installed the arm64 version or it does not contain the x86_64 version of open3d?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.