When I choose a example to run, error message comes as :
WARNING: Skipping pyside6 as it is not installed.
(py1121) hitbuyi@hitbuyi-Dell-G15-5511:~/PycharmProjects/pytorch_project/3D_vis$ python kitti_object.py --show_lidar_with_depth --img_fov --const_box --vis
data/object training
Traceback (most recent call last):
File "/home/hitbuyi/PycharmProjects/pytorch_project/3D_vis/kitti_object.py", line 982, in <module>
dataset_viz(args.dir, args)
File "/home/hitbuyi/PycharmProjects/pytorch_project/3D_vis/kitti_object.py", line 744, in dataset_viz
fig = mlab.figure(
File "/home/hitbuyi/.conda/envs/py1121/lib/python3.9/site-packages/mayavi/tools/figure.py", line 64, in figure
engine = get_engine()
File "/home/hitbuyi/.conda/envs/py1121/lib/python3.9/site-packages/mayavi/tools/engine_manager.py", line 92, in get_engine
return self.new_engine()
File "/home/hitbuyi/.conda/envs/py1121/lib/python3.9/site-packages/mayavi/tools/engine_manager.py", line 137, in new_engine
check_backend()
File "/home/hitbuyi/.conda/envs/py1121/lib/python3.9/site-packages/mayavi/tools/engine_manager.py", line 40, in check_backend
raise ImportError(msg)
ImportError: Could not import backend for traitsui. Make sure you
have a suitable UI toolkit like PyQt/PySide or wxPython
installed.
I have found that this was caused by mayavi finding the wrong UI toolkit, because I set some QT PATH variables in ~/.bahsrc, if I comment out this macros, it is solved.
Environments: OS: ubuntu20.04 conda: 4.13.0 mayavi: 4.7.4 vtk: 9.1.0 python:3.9.6
My virtual env's intalled packages are
Error reproducing
When I choose a example to run, error message comes as :
What're the problems of mayavi?