0

我曾经在我的 PC 上成功运行过 OpenPcdet 的 demo.py,但我在我的 PC 上做了一些更改,尽管安装了 mayavi 和 PyQt5,但这次我无法成功运行它。使用 python 3.8 运行 demo.py 显示以下内容

Traceback (most recent call last):
  File "demo.py", line 104, in <module>
    main()
  File "demo.py", line 93, in main
    V.draw_scenes(
  File "/home/youssef/OpenPCDet/tools/visual_utils/visualize_utils.py", line 154, in draw_scenes
    fig = visualize_pts(points)
  File "/home/youssef/OpenPCDet/tools/visual_utils/visualize_utils.py", line 77, in visualize_pts
    fig = mlab.figure(figure=None, bgcolor=bgcolor, fgcolor=fgcolor, engine=None, size=size)
  File "/home/youssef/.local/lib/python3.8/site-packages/mayavi/tools/figure.py", line 64, in figure
    engine = get_engine()
  File "/home/youssef/.local/lib/python3.8/site-packages/mayavi/tools/engine_manager.py", line 92, in get_engine
    return self.new_engine()
  File "/home/youssef/.local/lib/python3.8/site-packages/mayavi/tools/engine_manager.py", line 137, in new_engine
    check_backend()
  File "/home/youssef/.local/lib/python3.8/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.

4

0 回答 0