Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

ImportError: cannot import name 'JVisualizer' from 'open3d' since update to Version 0.10.0.0

Open RobinBaumann opened this issue 5 years ago • 8 comments

IMPORTANT: Please use the following template to report the bug.


Describe the bug I recently updated my Open3D installation to version 0.10.0.0 and since can't use JVisualizer. Today, I recognized that the same error also appears in the example provided in the Docs at http://www.open3d.org/docs/release/tutorial/Basic/jupyter.html . When I downgrade to Open3D==0.9.0.0, everything works as expected.

To Reproduce Ensure, that you use Open3D==0.10.0.0. Try to import JVisualizer using from open3d import JVisualizer. See the error message printed to the output.

Expected behavior open3d is able to import JVisualizer.

Screenshots See the Docs page of Open3D at http://www.open3d.org/docs/release/tutorial/Basic/jupyter.html

Environment (please complete the following information):

  • Operating system: OSX 10.15.4
  • Python version: Python 3.7.4
  • Open3D version: 0.10.0.0
  • Is this remote workstation?: no
  • How did you install Open3D?: pip
  • Compiler version (if built from source): -

RobinBaumann avatar Jun 08 '20 07:06 RobinBaumann

Same result here, I installed open3d from conda, using the open3d-admin channel.

davidcaron avatar Jul 08 '20 19:07 davidcaron

So... here is an ugly workaround.

  • I hard-coded if "ON" == "ON": in open3d/__init__.py
  • I copied these files in share/jupyter/nbextensions/open3d: static.tar.gz

It seems to me there is a problem in the build where @ENABLE_JUPYTER@ isn't set to "ON", and the webpack outputs are absent.

davidcaron avatar Jul 08 '20 20:07 davidcaron

I have a branch mneilly/fix-jupyterlab-extension where I have open3d in jupyterlab working. Or, at least pasting the code from http://www.open3d.org/docs/release/tutorial/Basic/jupyter.html is working. The changes are based on looking at cookiecutter and various tutorials along with some guessing.

mneilly avatar Sep 12 '20 18:09 mneilly

Tracing @davidcaron's workaround to sourcetree on 0.10.0: https://github.com/intel-isl/Open3D/blob/a124f85e02d9e6d0c89d71ce57cb473dc4b9da62/src/Python/open3d/init.py#L73-L82 https://github.com/intel-isl/Open3D/blob/a124f85e02d9e6d0c89d71ce57cb473dc4b9da62/src/Python/CMakeLists.txt#L10-L18

Doc permalink: http://www.open3d.org/docs/0.10.0/tutorial/Basic/jupyter.html

Screencap of said error:

image

EricCousineau-TRI avatar Feb 04 '21 00:02 EricCousineau-TRI

Wondering if it's something to due with the PyPI authoring. FWIW, with newer jupyterlab>=3.0, they have instructions on how to author prebuilt extensions so that consumers do not need things like npm to install/enable an extension: https://blog.jupyter.org/jupyterlab-3-0-is-out-4f58385e25bb#270f

@mneilly Would any of this make your update simpler? (I guess maybe it's a bit orthogonal?)

I will also briefly check if the latest release still has the same issue on a local install.

From a doc "permalink", seems like Python paths have been fixed, but whatever is used to render the docs doesn't have the right setup? (e.g. PyPI package is still a tad broken?) http://www.open3d.org/docs/release/tutorial/geometry/jupyter.html

image

EricCousineau-TRI avatar Feb 04 '21 00:02 EricCousineau-TRI

Still seeing this issue. Anyone have updates on a fix?

tjdahlke avatar Aug 24 '22 21:08 tjdahlke

https://github.com/isl-org/Open3D/blob/master/docs/jupyter/visualization/jupyter_visualization.ipynb

LifeBeyondExpectations avatar Sep 22 '22 22:09 LifeBeyondExpectations