Open3D
Open3D copied to clipboard
visualization.webrtc_server.enable_webrtc(): "Cannot set WindowSystem. It is already set." in jupyter lab
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
mainbranch).
Describe the issue
I tried to run web visualizer according to https://www.open3d.org/html/tutorial/visualization/web_visualizer.html in a Jupyter lab cell. The same works on the CLI using open3d example visualization/draw_webrtc.
Steps to reproduce the bug
- create new python env
pip install -U -f https://www.open3d.org/docs/latest/getting_started.html open3dpip install jupyterlabjupyter lab- run following in the jupyter lab:
import open3d as o3d
o3d.visualization.webrtc_server.enable_webrtc()
Error message
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
Cell In[1], line 2
1 import open3d as o3d
----> 2 o3d.visualization.webrtc_server.enable_webrtc()
RuntimeError: [Open3D Error] (void open3d::visualization::gui::Application::SetWindowSystem(std::shared_ptr<open3d::visualization::gui::WindowSystem>)) /root/Open3D/cpp/open3d/visualization/gui/Application.cpp:346: Cannot set WindowSystem. It is already set.
Expected behavior
The same as on CLI.
Open3D, Python and System information
- Operating system: Fedora 39
- Python version: 3.9.13
- Open3D version: 0.18.0+0cf605f
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
- Compiler version (if built from source): -
Additional information
running on Wayland
Same