-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import JVisualizer #659
Comments
What python version is that? Could you please post the full terminal logs from installation to the import error? |
Python Version: Python 3.6.6 :: Anaconda custom (64-bit) Here are the logs from running "conda install -n conda_open3d -c open3d-admin open3d -v" after uninstall:
Here's what I get when I run the example usage code in Jupyter.
|
That's weird, i was able to get the jupyter working with py36, conda and Mac. Seems like you were able to import First, could you try if the following command work? python -c "from open3d.j_visualizer import JVisualizer" We can also locate the (open3d3-online) ➜ ~ python -c "import open3d as o3; print(o3)"
<module 'open3d.open3d' from '/Users/ylao/miniconda3/envs/open3d3-online/lib/python3.6/site-packages/open3d/open3d.cpython-36m-darwin.so'>
(open3d3-online) ➜ ~ cd /Users/ylao/miniconda3/envs/open3d3-online/lib/python3.6/site-packages/open3d/
(open3d3-online) ➜ ~/miniconda3/envs/open3d3-online/lib/python3.6/site-packages/open3d ls
__init__.py j_visualizer.py static
__pycache__ open3d.cpython-36m-darwin.so
(open3d3-online) ➜ ~/miniconda3/envs/open3d3-online/lib/python3.6/site-packages/open3d cat __init__.py The init file shall look like this: import importlib
globals().update(importlib.import_module('open3d.open3d').__dict__)
__version__ = '0.4.0.0'
if "ON" == "ON":
from open3d.j_visualizer import *
def _jupyter_nbextension_paths():
return [{
'section': 'notebook',
'src': 'static',
'dest': 'open3d',
'require': 'open3d/extension'
}] Is that what you're getting? |
I'm seeing some differences between your output and mine. When I run
Here's what I get when I locate
Looks like I have the shared library but not the package files for some reason. Any thoughts? |
Looks like you're getting an incomplete package. Besides, this path doesn't look like a Conda path:
While in your previous post the Conda path was in
I would suggest removing
|
Thanks @yxlao! Problem solved. Turns out I had an earlier release that was installed with pip. Python, regardless of the environment, was using the pip-installed version rather than the version more recently installed with conda. Removing the problematic library manually and reinstalling open3d solved the problem. |
The tutorial just looks wrong at http://www.open3d.org/docs/release/tutorial/Basic/jupyter.html Which states |
@yxlao can you confirm |
+1 I get a broken import as well (on HEAD). perhaps the tutorial is supposed to be updated to use https://github.com/intel-isl/Open3D/blob/664eff507e0f4d70f237d4a6531b1eff464948ad/examples/python/open3d_tutorial.py#L17 ? that said, the tutorial itself ( http://www.open3d.org/docs/release/tutorial/Basic/jupyter.html ) might be outdated because I can run at least one of the tutorials in jupyter with " |
For me this does not work. As reported in #5522 |
not solving the problem for me |
Describe the bug
When I run the example code usage in the Jupyter Visualization section of the Open3D Documentation, I get the following error:
ImportError: cannot import name 'JVisualizer'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Example usage produces expect result
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: