At import: ModuleNotFoundError: No module named 'open3d.cpu.pybind'
- 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](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### Describe the issue
Hello! I'm using Ubuntu 20.04.4 and am having issues with importing Open3D in Python. I have installed the library with pip (version 22.0.4) and am using Python version 3.10.0. At the "import open3d" line in Python I get an immediate module error. I have also tried to build the library from source as per the doc instructions, but then also similarly get an error that seems to involve "pybind" at the step where the Open3D Python library is installed (executing "make python-package" from ./Open3D/build), although I'm not sure how to interpret the error message.
### Steps to reproduce the bug
```python
Steps to reproduce the bug:
In Ubuntu 20.04.4 install the Open3D Python library with "pip install open3d" (pip version 22.0.4). Then with the line "import open3d" in a Python compiler (Python version 3.10.0), execute the code.
```
### Error message
#### Importing in Python compiler: ####
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_913513/1479048614.py in
11 import laspy as lp
12 import os
---> 13 import open3d as o3d
~/.local/lib/python3.9/site-packages/open3d/__init__.py in
88
89 if __DEVICE_API__ == 'cpu':
---> 90 from open3d.cpu.pybind import (camera, data, geometry, io, pipelines,
91 utility, t)
92 from open3d.cpu import pybind
ModuleNotFoundError: No module named 'open3d.cpu.pybind'
#### Building from source: ####
make python-package
Error removing directory "/home/ubuntu/lidar/Open3D/build/bin/resources/html".
make[3]: *** [cpp/open3d/visualization/webrtc_server/CMakeFiles/copy_html_dir.dir/build.make:70: cpp/open3d/visualization/webrtc_server/CMakeFiles/copy_html_dir] Error 1
make[2]: *** [CMakeFiles/Makefile2:3173: cpp/open3d/visualization/webrtc_server/CMakeFiles/copy_html_dir.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:3678: cpp/pybind/CMakeFiles/python-package.dir/rule] Error 2
make: *** [Makefile:1112: python-package] Error 2
### Expected behavior
For "import open3d" to not cause a module error.
### Open3D, Python and System information
```markdown
- Operating system: Ubuntu 20.04.4
- Python version: Python 3.10.0
- Open3D version: cannot `print(open3d.__version__)`
- System architecture: x86_64
- Is this a remote workstation?: yes
- How did you install Open3D?: pip
- Compiler version (if built from source): gcc 9.4.0
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.