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

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



Source: python-pbr
Version: 5.6.0-2
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-pbr 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-pbr             from testing    5.6.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/996584
[1] https://qa.debian.org/excuses.php?package=python3-defaults

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

=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: pbr.tests.test_commands
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_commands.py", line 43, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_core
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_core.py", line 48, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_files
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_files.py", line 23, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_hooks
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_hooks.py", line 47, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_integration
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_integration.py", line 27, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_packaging
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_packaging.py", line 62, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_pbr_json
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_pbr_json.py", line 16, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_setup
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_setup.py", line 33, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_util
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_util.py", line 24, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_version
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_version.py", line 20, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

Failed to import test module: pbr.tests.test_wsgi
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/test_wsgi.py", line 26, in <module>
    from pbr.tests import base
File "/tmp/autopkgtest-lxc.8jbfzfdi/downtmp/build.1ju/src/pbr/tests/base.py", line 48, in <module>
    import testresources
File "/usr/lib/python3/dist-packages/testresources/__init__.py", line 195, in <module>
    class _OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'

================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.

----------------------------------------------------------------------
Ran 0 tests in 0.984s

OK
+ stestr slowest
autopkgtest [13:33:14]: test unit

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: