Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JLeere opened this issue Jul 10, 2024 · 5 comments

Comments

@JLeere
Copy link

JLeere commented Jul 10, 2024

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
Copy link
Author

JLeere commented Jul 10, 2024

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

@Rayn-Wu
Copy link

Rayn-Wu commented Aug 8, 2024

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

Metoo, any ideas now?

1 similar comment
@skylaughing
Copy link

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

Metoo, any ideas now?

@fengyi233
Copy link

Commenting out that line in the common.py can solve the problem. I've tried and it seems ok for me.
`def process_ui_events():
"""Process GUI events.

This function merely abstracts the function so nothing is done when
no UI is running.
"""
if pyface is not None:
    # pyface.GUI.process_events()
    pass

`
btw, version 4.8.1 is ok, but I haven't tried it.

@weixi234
Copy link

have the same question:
AttributeError("module 'mayavi' has no attribute 'figure'")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants