Source: pysurfer Version: 0.11.0-2 Severity: serious Tags: sid bookworm User: debian...@lists.debian.org Usertags: needs-update User: debian-pyt...@lists.debian.org Usertags: python3.10 Control: affects -1 src:python3-defaults
Dear maintainer(s),We are in the transition of making python3.10 the default Python versions [0]. With a recent upload of python3-defaults the autopkgtest of pysurfer fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:
pass fail python3-defaults from testing 3.10.4-1 pysurfer from testing 0.11.0-2 all others from testing from testing I copied some of the output at the bottom of this report.Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists what's new in Python3.10, it may help to identify what needs to be updated. https://docs.python.org/3.9/library/collections.html says:
"""Deprecated since version 3.3, will be removed in version 3.10: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.9.
""" Time to move on. More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [0] https://bugs.debian.org/1006836 [1] https://qa.debian.org/excuses.php?package=python3-defaults https://ci.debian.net/data/autopkgtest/testing/amd64/p/pysurfer/20663038/log.gz============================= test session starts ============================== platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache rootdir: /tmp/autopkgtest-lxc.v2wopsdx/downtmp/autopkgtest_tmp collecting ... collected 0 items / 2 errors==================================== ERRORS ==================================== _____________________ ERROR collecting tests/test_utils.py _____________________ ImportError while importing test module '/tmp/autopkgtest-lxc.v2wopsdx/downtmp/autopkgtest_tmp/tests/test_utils.py'.
Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/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:25: in <module> from . import utils, io /usr/lib/python3/dist-packages/surfer/utils.py:1: in <module> from collections import SequenceE ImportError: cannot import name 'Sequence' from 'collections' (/usr/lib/python3.10/collections/__init__.py) ______________________ ERROR collecting tests/test_viz.py ______________________ ImportError while importing test module '/tmp/autopkgtest-lxc.v2wopsdx/downtmp/autopkgtest_tmp/tests/test_viz.py'.
Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_viz.py:15: in <module> from surfer import Brain, io, 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:25: in <module> from . import utils, io /usr/lib/python3/dist-packages/surfer/utils.py:1: in <module> from collections import SequenceE ImportError: cannot import name 'Sequence' from 'collections' (/usr/lib/python3.10/collections/__init__.py) =============================== warnings summary ===============================
tests/test_utils.py:1/tmp/autopkgtest-lxc.v2wopsdx/downtmp/autopkgtest_tmp/tests/test_utils.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import LooseVersion ../../../../usr/lib/python3/dist-packages/traitsui/table_column.py:461/usr/lib/python3/dist-packages/traitsui/table_column.py:461: DeprecationWarning: In the future, a default value of type 'dict' in an Any trait will be shared between all instances. To keep the current semantics, replace `Any({})` with `Any(factory=dict)` or `Any({1: 2})` (for example) with `Any(factory=dict, args=({1: 2},))`.
globals = Any({}) ../../../../usr/lib/python3/dist-packages/traitsui/tabular_adapter.py:220/usr/lib/python3/dist-packages/traitsui/tabular_adapter.py:220: DeprecationWarning: In the future, a default value of type 'dict' in an Any trait will be shared between all instances. To keep the current semantics, replace `Any({})` with `Any(factory=dict)` or `Any({1: 2})` (for example) with `Any(factory=dict, args=({1: 2},))`.
cache = Any({}) -- Docs: https://docs.pytest.org/en/stable/warnings.html=========================== short test summary info ============================
ERROR tests/test_utils.py ERROR tests/test_viz.py!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!! ======================== 3 warnings, 2 errors in 4.03s =========================
autopkgtest [17:27:39]: test command1
OpenPGP_signature
Description: OpenPGP digital signature