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

Mayavi test failure #2044

Open
rahulporuri opened this issue Apr 9, 2024 · 0 comments
Open

Mayavi test failure #2044

rahulporuri opened this issue Apr 9, 2024 · 0 comments

Comments

@rahulporuri
Copy link
Contributor

rahulporuri commented Apr 9, 2024

On Python 3.12, after installing mayavi using python -m pip install -e .[app] and python -m pip install pyside6, we see the following test failure

======================================================================
ERROR: test_mlab_scene_model_with_gui (mayavi.tests.test_garbage_collection.TestMayaviGarbageCollection.test_mlab_scene_model_with_gui)
Tests if MlabSceneModel with GUI can be garbage collected.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\rahul\github\mayavi\mayavi\tests\test_garbage_collection.py", line 62, in test_mlab_scene_model_with_gui
    self.check_object_garbage_collected(create_fn, close_fn)
  File "C:\Users\rahul\github\mayavi\tvtk\tests\common.py", line 58, in check_object_garbage_collected
    object_weakref = do()
                     ^^^^
  File "C:\Users\rahul\github\mayavi\tvtk\tests\common.py", line 49, in do
    obj = obj_create_fn()
          ^^^^^^^^^^^^^^^
  File "C:\Users\rahul\github\mayavi\mayavi\tests\test_garbage_collection.py", line 60, in create_fn
    return app.edit_traits()
           ^^^^^^^^^^^^^^^^^
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traits\has_traits.py", line 1811, in edit_traits
    return view.ui(
           ^^^^^^^^
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\view.py", line 457, in ui
    ui.ui(parent, kind)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\ui.py", line 234, in ui
    self.rebuild(self, parent)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\toolkit.py", line 168, in ui_live
    ui_live.ui_live(ui, parent)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\ui_live.py", line 52, in ui_live
    _ui_dialog(ui, parent, BaseDialog.NONMODAL)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\ui_live.py", line 72, in _ui_dialog
    BaseDialog.display_ui(ui, parent, style)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\ui_base.py", line 294, in display_ui
    ui.owner.init(ui, parent, style)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\ui_live.py", line 103, in init
    self.create_dialog(parent, style)
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\ui_base.py", line 252, in create_dialog
    self.control = control = _StickyDialog(self.ui, parent)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\rahul\venvs\mayavi-venv\Lib\site-packages\traitsui\qt\ui_base.py", line 135, in __init__
    self.setLayout(layout)
TypeError: 'PySide6.QtWidgets.QWidget.setLayout' called with wrong argument types:
  PySide6.QtWidgets.QWidget.setLayout(QVBoxLayout)
Supported signatures:
  PySide6.QtWidgets.QWidget.setLayout(PySide6.QtWidgets.QLayout)

----------------------------------------------------------------------

layout = QtGui.QVBoxLayout()
layout.setContentsMargins(0, 0, 0, 0)
layout.addWidget(self._mw)
self.setLayout(layout)

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

1 participant