enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 285 forks source link

When use mlab.figure, got error "AttributeError: type object 'Unimplemented' has no attribute 'process_events'" #1308

Open JLeere opened 1 month ago

JLeere commented 1 month ago

I am using the code of OccNerf, and got error as follows:

  figure = mlab.figure(size=(render_w, render_w/16*9), bgcolor=(1, 1, 1))
  File "/opt/conda/lib/python3.8/site-packages/mayavi/tools/figure.py", line 69, in figure
    engine.new_scene(name=name, size=size)
  File "/opt/conda/lib/python3.8/site-packages/apptools/scripting/recordable.py", line 48, in _wrapper
    result = func(*args, **kw)
  File "/opt/conda/lib/python3.8/site-packages/mayavi/core/engine.py", line 453, in new_scene
    process_ui_events()
  File "/opt/conda/lib/python3.8/site-packages/mayavi/core/common.py", line 81, in process_ui_events
    pyface.GUI.process_events()
AttributeError: type object 'Unimplemented' has no attribute 'process_events'
(base) root@hzhb1:~/OccNeRF# conda list mayavi
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
mayavi                    4.8.2                    pypi_0    pypi
JLeere commented 1 month ago

It means GUI has no attribute named "process_events", which version of mayavi should I install?

Rayn-Wu commented 3 weeks ago

It means GUI has no attribute named "process_events", which version of mayavi should I install?

Metoo, any ideas now?

skylaughing commented 2 weeks ago

It means GUI has no attribute named "process_events", which version of mayavi should I install?

Metoo, any ideas now?