Closed joseph-sch closed 2 years ago
@jolastar thanks for the detailed stack trace. Very informative. This issue may affect both Windows and macOS as the ML ops are not supported.
I would refer this to @ssheorey . Shall we make sure that the TensorBoard imports if ML ops are not bundled, or could we make sure they can coexist?
Before this is fixed properly, you can find your Open3D installation directory (e.g. by python -c "import open3d; print(open3d)"
) and simply comment out all TensorBoard-related code.
@jolastar thanks for reporting this and the detailed debugging. For now, please remove
This is unused and will let you use the web visualizer without tensorboard. You can either remove this from the source code and rebuild the Python wheel, or directly edit the installed wheel from the location pip show open3d
.
I'll create a fix PR after some more testing on Windows.
@ssheorey
The line deleting
from open3d.visualization.tensorboard_plugin.util import _log
don't solve the whole problem.
There is still the error: ImportError: cannot import name 'Colormap' from 'open3d.ml.vis'
Hi @MOstanin, the PR fixes this completely. Please try with the latest development Python wheel from here: http://www.open3d.org/docs/latest/getting_started.html#development-version-pip and let us know if you still have this issue.
Hi @ssheorey, had the same problem. Good news: latest dev build (c91e0a7) does not reproduce the import error anymore (cannot import name 'Colormap' from 'open3d.ml.vis').
was wondering though why the build does not support tensorflow and pytorch; is that expected? python -c "import open3d.ml.torch as ml3d" and python -c "import open3d.ml.tf as ml3d" both return the "not buildt with.." exception.
@pgutjahr Open3D wheel on Windows does not yet support TensorFlow and PyTorch. We have open issues for that. Contributions welcome!
Description
The
draw
function fromopen3d.web_visualizer
fails in version 0.14.1 - first on aModuleNotFoundError
whentensorboard
is not installed, then anImportError
fromopen3d.ml.vis
iftensorboard
is installed.How to reproduce
ModuleNotFoundError: No module named 'tensorboard'
tensorboard
with pipImportError: cannot import name 'Colormap' from 'open3d.ml.vis'
Expected behavior
The same code worked in version 0.13.0.
Environment:
Additional context
From what I understand, the following happens:
web_analyzer.py
:https://github.com/isl-org/Open3D/blob/4dea5bebba34abea39dae6e11bb54e6ff320d6cf/python/open3d/web_visualizer.py#L34
visualization/async_event_loop.py
:https://github.com/isl-org/Open3D/blob/4dea5bebba34abea39dae6e11bb54e6ff320d6cf/python/open3d/visualization/async_event_loop.py#L74
visualization/tensorboard_plugin/util.py
:https://github.com/isl-org/Open3D/blob/4dea5bebba34abea39dae6e11bb54e6ff320d6cf/python/open3d/visualization/tensorboard_plugin/util.py#L34-L42
ml/vis.py
:https://github.com/isl-org/Open3D/blob/4dea5bebba34abea39dae6e11bb54e6ff320d6cf/python/open3d/ml/vis.py#L30-L34
open3d.ml.vis
does not define anything because_build_config['BUNDLE_OPEN3D_ML']
isFalse
Here are all the contents of
o3d._build_config
: