enthought / mayavi

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

[Bug] Mayavi 4.7.1-2+b2 do not start in GNU/Debian 11 with apt installation #1108

Open tomassenabre opened 2 years ago

tomassenabre commented 2 years ago

Hello, I have a stable GNU / Debian 11 installation (Bullseye), and I have installed Mayavi 4.7.1-2+b2 from the repositories but the software do not work from the GUI. I get errors in the console like this:

~$ mayavi2 
08:07:07: Debug: Adding duplicate image handler for 'Windows bitmap file'
08:07:07: Debug: Adding duplicate image handler for 'Windows bitmap file'
/usr/lib/python3/dist-packages/pyface/ui/wx/clipboard.py:25: wxPyDeprecationWarning: Call to deprecated item. Use wx.DataFormat instead.
  PythonObjectFormat = wx.CustomDataFormat('PythonObject')
/usr/lib/python3/dist-packages/pyface/wx/drag_and_drop.py:99: wxPyDeprecationWarning: Call to deprecated item. Use wx.DataFormat instead.
  PythonObject = wx.CustomDataFormat('PythonObject')
Exception occurred in traits notification handler.
Please check the log file for details.
Exception occurred in traits notification handler for object: <mayavi.plugins.mayavi_ui_plugin.MayaviUIPlugin object at 0x7f8e73e976d0>, trait: application, old value: None, new value: <mayavi.plugins.mayavi_workbench_application.MayaviWorkbenchApplication object at 0x7f8e7306d810>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/traits/trait_notifiers.py", line 654, in _dispatch_change_event
    self.dispatch(handler, *args)
  File "/usr/lib/python3/dist-packages/traits/trait_notifiers.py", line 553, in dispatch
    handler(*args)
  File "/usr/lib/python3/dist-packages/traits/traits_listener.py", line 498, in handle_simple
    self.next.register(new)
  File "/usr/lib/python3/dist-packages/traits/traits_listener.py", line 464, in register
    value = getattr(self, type)(new, name, False)
  File "/usr/lib/python3/dist-packages/traits/traits_listener.py", line 738, in _register_simple
    return next.register(getattr(object, name))
  File "/usr/lib/python3/dist-packages/envisage/ui/workbench/workbench_application.py", line 140, in _gui_default
    return GUI(splash_screen=self.splash_screen)
  File "/usr/lib/python3/dist-packages/pyface/ui/wx/gui.py", line 60, in __init__
    self._splash_screen.open()
  File "/usr/lib/python3/dist-packages/pyface/i_splash_screen.py", line 79, in open
    super(MSplashScreen, self).open()
  File "/usr/lib/python3/dist-packages/pyface/i_window.py", line 202, in open
    self._create()
  File "/usr/lib/python3/dist-packages/pyface/i_widget.py", line 112, in _create
    self.control = self._create_control(self.parent)
  File "/usr/lib/python3/dist-packages/pyface/ui/wx/splash_screen.py", line 69, in _create_control
    splash_screen = wx.SplashScreen(
AttributeError: module 'wx' has no attribute 'SplashScreen'
Exception occurred in traits notification handler for object: <__main__.MayaviApp object at 0x7f8e73098860>, trait: application, old value: None, new value: <mayavi.plugins.mayavi_workbench_application.MayaviWorkbenchApplication object at 0x7f8e7306d810>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/traits/trait_notifiers.py", line 654, in _dispatch_change_event
    self.dispatch(handler, *args)
  File "/usr/lib/python3/dist-packages/traits/trait_notifiers.py", line 553, in dispatch
    handler(*args)
  File "/usr/lib/python3/dist-packages/traits/traits_listener.py", line 498, in handle_simple
    self.next.register(new)
  File "/usr/lib/python3/dist-packages/traits/traits_listener.py", line 464, in register
    value = getattr(self, type)(new, name, False)
  File "/usr/lib/python3/dist-packages/traits/traits_listener.py", line 738, in _register_simple
    return next.register(getattr(object, name))
  File "/usr/lib/python3/dist-packages/envisage/ui/workbench/workbench_application.py", line 140, in _gui_default
    return GUI(splash_screen=self.splash_screen)
  File "/usr/lib/python3/dist-packages/pyface/ui/wx/gui.py", line 60, in __init__
    self._splash_screen.open()
  File "/usr/lib/python3/dist-packages/pyface/i_splash_screen.py", line 79, in open
    super(MSplashScreen, self).open()
  File "/usr/lib/python3/dist-packages/pyface/i_window.py", line 202, in open
    self._create()
  File "/usr/lib/python3/dist-packages/pyface/i_widget.py", line 112, in _create
    self.control = self._create_control(self.parent)
  File "/usr/lib/python3/dist-packages/pyface/ui/wx/splash_screen.py", line 69, in _create_control
    splash_screen = wx.SplashScreen(
AttributeError: module 'wx' has no attribute 'SplashScreen'
Traceback (most recent call last):
  File "/usr/bin/mayavi2", line 613, in <module>
    main()
  File "/usr/bin/mayavi2", line 602, in main
    mayavi.main(sys.argv[1:])
  File "/usr/lib/python3/dist-packages/mayavi/plugins/app.py", line 195, in main
    app.run()
  File "/usr/lib/python3/dist-packages/mayavi/plugins/mayavi_workbench_application.py", line 73, in run
    gui = self.gui
  File "/usr/lib/python3/dist-packages/envisage/ui/workbench/workbench_application.py", line 140, in _gui_default
    return GUI(splash_screen=self.splash_screen)
  File "/usr/lib/python3/dist-packages/pyface/ui/wx/gui.py", line 60, in __init__
    self._splash_screen.open()
  File "/usr/lib/python3/dist-packages/pyface/i_splash_screen.py", line 79, in open
    super(MSplashScreen, self).open()
  File "/usr/lib/python3/dist-packages/pyface/i_window.py", line 202, in open
    self._create()
  File "/usr/lib/python3/dist-packages/pyface/i_widget.py", line 112, in _create
    self.control = self._create_control(self.parent)
  File "/usr/lib/python3/dist-packages/pyface/ui/wx/splash_screen.py", line 69, in _create_control
    splash_screen = wx.SplashScreen(
AttributeError: module 'wx' has no attribute 'SplashScreen'

System description: I have tried on three different computers with the same operating system, and the error is reproduced on all of them.

Details about further software components

The python and wx version is :

~$ python3 -c "import sys, wx; print(sys.version); print(wx.version())"
3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110]
4.0.7 gtk3 (phoenix) wxWidgets 3.0.5