hustvl / Symphonies

[CVPR 2024] Symphonies (Scene-from-Insts): Symphonize 3D Semantic Scene Completion with Contextual Instance Queries
https://arxiv.org/abs/2306.15670
MIT License
167 stars 6 forks source link

KeyError: 'traitsui.toolkits' #18

Closed Ha-coding-user closed 6 months ago

Ha-coding-user commented 7 months ago

When I visualize the result I meet this Error

Traceback (most recent call last): File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/importlib_metadata/init.py", line 292, in getitem return next(iter(self.select(name=name))) StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/hamyo/SSC/Symphonies/mmdetection/Symphonies/tools/visualize.py", line 9, in from mayavi import mlab File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/mayavi/mlab.py", line 16, in from mayavi.tools.camera import view, roll, yaw, pitch, move File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/mayavi/tools/camera.py", line 24, in from .engine_manager import get_engine File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/mayavi/tools/engine_manager.py", line 12, in from mayavi.preferences.api import preference_manager File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/mayavi/preferences/api.py", line 4, in from .preference_manager import preference_manager File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/mayavi/preferences/preference_manager.py", line 29, in from traitsui.api import View, Group, Item File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/api.py", line 256, in from .editors.api import ArrayEditor File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/editors/init.py", line 16, in from .api import ArrayEditor File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/editors/api.py", line 86, in from .code_editor import CodeEditor File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/editors/code_editor.py", line 21, in class CodeEditor(EditorFactory): File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/editors/code_editor.py", line 33, in CodeEditor mark_color = Color(0xECE9D8) File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traits/trait_factory.py", line 40, in call return self.maker_function(*args, *metadata) File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/toolkit_traits.py", line 43, in ColorTrait return toolkit().color_trait(args, **traits) File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/traitsui/toolkit.py", line 110, in toolkit _toolkit = find_toolkit("traitsui.toolkits") File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/pyface/base_toolkit.py", line 285, in find_toolkit plugin for plugin in importlib_metadata.entry_points()[entry_point] File "/home/hamyo/anaconda3/envs/Symphonies/lib/python3.7/site-packages/importlib_metadata/init.py", line 294, in getitem raise KeyError(name) KeyError: 'traitsui.toolkits'

I check many method for solve above error But I can't solve error

Please give me a solution

npurson commented 7 months ago

It appears to be an environmental issue with Mayavi. I also encountered some problems with Python 3.7, but I was able to resolve them by switching to Python 3.10.

Ha-coding-user commented 7 months ago

Thank you for your reply Okay Now, I meet this error

ImportError: Could not import backend for traitsui. Make sure you have a suitable UI toolkit like PyQt/PySide or wxPython installed.

But I have installed pyqt5 I dont know why it is happened

Ha-coding-user commented 7 months ago

I meet this Error... I dont know how to visualize results...

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

Check and Reply Please...

Ha-coding-user commented 7 months ago

@npurson Okay I did some method I think I need tell you about my config

I use Server(Ubuntu 18.04 LTS) and use Xming(for GUI) and PUTTY(for ssh protocol) Is it something wrong?

If it has something wrong thing, please tell me how to train your model, and your computing spec

npurson commented 7 months ago

Unfortunately, I'm not familiar with this issue.

Several related discussions [1, 2] might offer some potential solutions.

I think it may be more helpful to search the solution or raise this issue directly within the Mayavi, as it seems to pertain specifically to the environment setup within their application.

Ha-coding-user commented 6 months ago

Okay I solve this Error And close it

Li-ChangHao commented 6 months ago

Okay I solve this Error And close it

Hi, can you tell me how to solve it, I also encountered this error. Many thanks.