[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001428: python-pyknon: (autopkgtest) needs update for python3.10: module 'collections' has no attribute 'MutableSequence'



Source: python-pyknon
Version: 1.2-3
Severity: serious
X-Debbugs-CC: debian-ci@lists.debian.org
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
User: debian-python@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.10 to the supported Python versions [0]. With a recent upload of python3-defaults the autopkgtest of python-pyknon 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.9.8-1
python-pyknon          from testing    1.2-3
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/996584
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-pyknon/17420665/log.gz

+ cp -r test /tmp/autopkgtest-lxc.1rlw27co/downtmp/autopkgtest_tmp
+ cd /tmp/autopkgtest-lxc.1rlw27co/downtmp/autopkgtest_tmp/test/
+ export PYTHONWARNINGS=d
+ py3versions -i
+ python3.10 -m pytest -rsx -v
============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/autopkgtest-lxc.1rlw27co/downtmp/autopkgtest_tmp/test
collecting ... collected 53 items / 2 errors / 51 selected

==================================== ERRORS ==================================== _______________________ ERROR collecting test_genmidi.py _______________________
test_genmidi.py:4: in <module>
    from pyknon.genmidi import Midi, MidiError
/usr/lib/python3/dist-packages/pyknon/genmidi.py:2: in <module>
    from pyknon.music import Note, NoteSeq, Rest
/usr/lib/python3/dist-packages/pyknon/music.py:106: in <module>
    class NoteSeq(collections.MutableSequence):
E   AttributeError: module 'collections' has no attribute 'MutableSequence'
________________________ ERROR collecting test_music.py ________________________
test_music.py:2: in <module>
    from pyknon.music import MusiclibError, Note, NoteSeq, Rest
/usr/lib/python3/dist-packages/pyknon/music.py:106: in <module>
    class NoteSeq(collections.MutableSequence):
E   AttributeError: module 'collections' has no attribute 'MutableSequence'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!! ============================== 2 errors in 0.16s ===============================
autopkgtest [13:32:58]: test python3-pyknon

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: