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

Bug#1001421: python-launchpadlib: (autopkgtest) needs update for python3.10: module 'collections' has no attribute 'MutableSet'



Source: python-launchpadlib
Version: 1.10.15.1-1
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-launchpadlib 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-launchpadlib    from testing    1.10.15.1-1
all others             from testing    from testing

I copied some of the output at the bottom of this report. 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.

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.

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-launchpadlib/17420655/log.gz

=== python3.10 ===
============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
rootdir: /usr/lib/python3/dist-packages/launchpadlib
plugins: asyncio-0.16.0
collected 68 items / 1 error / 67 selected

==================================== ERRORS ==================================== _______________ ERROR collecting testing/tests/test_launchpad.py _______________ /usr/lib/python3/dist-packages/launchpadlib/testing/tests/test_launchpad.py:21: in <module>
    from testresources import ResourcedTestCase
/usr/lib/python3/dist-packages/testresources/__init__.py:195: in <module>
    class _OrderedSet(collections.MutableSet):
E   AttributeError: module 'collections' has no attribute 'MutableSet'
=============================== warnings summary ===============================
../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:428
/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:428: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/launchpadlib/.pytest_cache/v/cache/nodeids
    config.cache.set("cache/nodeids", sorted(self.cached_nodeids))

../../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:382
/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:382: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/launchpadlib/.pytest_cache/v/cache/lastfailed
    config.cache.set("cache/lastfailed", self.lastfailed)

../../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:49
/usr/lib/python3/dist-packages/_pytest/stepwise.py:49: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/launchpadlib/.pytest_cache/v/cache/stepwise
    session.config.cache.set(STEPWISE_CACHE_DIR, [])

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ ERROR ../../../../usr/lib/python3/dist-packages/launchpadlib/testing/tests/test_launchpad.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! ========================= 3 warnings, 1 error in 0.50s =========================
autopkgtest [13:29:09]: test unittests

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: