Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1178901

Bug#1058790: mayavi2: autopkgtest failure in pysurfer since python-traitsui 8

From Étienne Mollier <emollier@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1058790: mayavi2: autopkgtest failure in pysurfer since python-traitsui 8
Date 2023-12-16 12:10 +0100
Message-ID <HLAIp-dXAS-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: mayavi2
Version: 4.8.1-1
Severity: serious
Justification: autopkgtest failure in reverse dependecy
Tags: patch upstream fixed-upstream
Affects: pysurfer
Forwarded: https://github.com/enthought/mayavi/pull/1255

Dear Maintainer,

Since introduction of python3-traitsui 8, pysurfer is failing
its autopkgtest suite with errors like[1]:

	==================================== ERRORS ====================================
	_____________________ ERROR collecting tests/test_utils.py _____________________
	ImportError while importing test module '/tmp/autopkgtest.pQ5bOG/autopkgtest_tmp/tests/test_utils.py'.
	Hint: make sure your test modules/packages have valid Python names.
	Traceback:
	/usr/lib/python3.11/importlib/__init__.py:126: in import_module
	    return _bootstrap._gcd_import(name[level:], package, level)
	tests/test_utils.py:9: in <module>
	    from surfer import utils
	/usr/lib/python3/dist-packages/surfer/__init__.py:1: in <module>
	    from .viz import Brain, TimeViewer  # noqa
	/usr/lib/python3/dist-packages/surfer/viz.py:17: in <module>
	    from mayavi.core.ui.api import SceneEditor
	/usr/lib/python3/dist-packages/mayavi/core/ui/api.py:4: in <module>
	    from tvtk.pyface.scene_editor import SceneEditor
	/usr/lib/python3/dist-packages/tvtk/pyface/scene_editor.py:12: in <module>
	    SceneEditor = toolkit_object('scene_editor:SceneEditor')
	/usr/lib/python3/dist-packages/pyface/base_toolkit.py:127: in __call__
	    module = import_module(mname, package)
	/usr/lib/python3.11/importlib/__init__.py:126: in import_module
	    return _bootstrap._gcd_import(name[level:], package, level)
	/usr/lib/python3/dist-packages/tvtk/pyface/ui/qt4/scene_editor.py:16: in <module>
	    from traitsui.qt4.editor import Editor
	E   ModuleNotFoundError: No module named 'traitsui.qt4.editor'

[1]: https://ci.debian.net/packages/p/pysurfer/unstable/amd64/39514398/

They look to stem from mayavi2 trying to make use of an old way
of loading the editor module, now called traitsui.qt.editor.
Upstream prepared the a patch[2] to upcoming versions of
mayavi2, but it is not there yet.

[2]: https://github.com/enthought/mayavi/pull/1255

I have verified the patch fixes the autopkgtest regression in
pysurfer, and did not raise any obvious issues in mayavi2.  I'm
considering providing a team upload to resolve this particular
issue.

Have a nice day,  :)
-- 
  .''`.  Étienne Mollier <emollier@debian.org>
 : :' :  gpg: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/7, please excuse my verbosity
   `-    on air: K2 - Storm at Sunset

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1058790: mayavi2: autopkgtest failure in pysurfer since python-traitsui 8 Étienne Mollier <emollier@debian.org> - 2023-12-16 12:10 +0100

csiph-web