Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

error importing py3d

Open takanokage opened this issue 8 years ago • 7 comments

$ cd ~/Open3D/build/lib/Tutorial/Basic $ python rgbd_redwood.py Traceback (most recent call last): File "rgbd_redwood.py", line 9, in from py3d import * ImportError: No module named py3d

takanokage avatar Mar 23 '18 22:03 takanokage

Q: is there a special step required after building Open3D?

takanokage avatar Mar 23 '18 22:03 takanokage

From open3d doc getting started:

If there is an issue, check whether the Python version detected by cmake (see log from cmake) and the Python version for command line environment (type python -V). They should match. If it is not, please follow Python binding in docs. In addition, Pybind issue board on Github repository has helpful notes from Open3D users.

syncle avatar Mar 23 '18 22:03 syncle

Thanks, I already found that. I was hoping that someone here has had this specific issue already and could save me some time.

takanokage avatar Mar 23 '18 22:03 takanokage

Yes. It is a very annoying issue. If you search "No module named py3d" in issues, you can find #66

It is annoying. But it is not an issue of Open3D. It is even not an issue of pybind11. More likely to be a CMake issue.

qianyizh avatar Mar 23 '18 22:03 qianyizh

In my case I forgot to run the python dependencies script. After I did that I had to run the samples with python3.

takanokage avatar Mar 26 '18 16:03 takanokage

I see that this error message can have multiple causes. One of them can be addressed through scripts/install_deps_python.sh: install numpy, matplotlib & opencv-python for both python2 and python3.

Both on my local machine and inside a docker container cmake identifies python3 however the current scripts/install_deps_python.sh only installs the python2 dependencies.

takanokage avatar Mar 28 '18 21:03 takanokage

replace from py3d import * with from open3d import * , since open3d is like the parent package

zsfVishnu avatar Jun 19 '19 15:06 zsfVishnu