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

Bug#1001395: marked as done (python-boto: (autopkgtest) needs update for python3.10: 'Mapping' from 'collections' removed)



Your message dated Sun, 19 Dec 2021 16:18:54 +0000
with message-id <E1myyti-0008D7-WE@fasolo.debian.org>
and subject line Bug#1001395: fixed in python-boto 2.49.0-4
has caused the Debian Bug report #1001395,
regarding python-boto: (autopkgtest) needs update for python3.10: 'Mapping' from 'collections' removed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1001395: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001395
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: python-boto
Version: 2.49.0-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 python2.10 to the supported Python versions [0]. With a recent upload of python3-defaults the autopkgtest of python-boto 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-boto            from testing    2.49.0-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 Python2.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

[1] https://qa.debian.org/excuses.php?package=python3-defaults

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

................................................................................................................................................................................................................EEE..E................................................................................................................................................................................................................................................S............................................................................S..........E...............................................................................................................................................................................................................................................................................SS...........................................................................................E...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: Failure: ImportError (cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
    module = self.importer.importFromPath(
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.10/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.10/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/autopkgtest-lxc.u0m93kt_/downtmp/autopkgtest_tmp/tests/unit/dynamodb/test_batch.py", line 27, in <module>
    from boto.dynamodb.layer2 import Layer2
File "/usr/lib/python3/dist-packages/boto/dynamodb/layer2.py", line 28, in <module>
    from boto.dynamodb.types import get_dynamodb_type, Dynamizer, \
File "/usr/lib/python3/dist-packages/boto/dynamodb/types.py", line 30, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

======================================================================
ERROR: Failure: ImportError (cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
    module = self.importer.importFromPath(
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.10/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.10/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/autopkgtest-lxc.u0m93kt_/downtmp/autopkgtest_tmp/tests/unit/dynamodb/test_layer2.py", line 27, in <module>
    from boto.dynamodb.layer2 import Layer2
File "/usr/lib/python3/dist-packages/boto/dynamodb/layer2.py", line 28, in <module>
    from boto.dynamodb.types import get_dynamodb_type, Dynamizer, \
File "/usr/lib/python3/dist-packages/boto/dynamodb/types.py", line 30, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

======================================================================
ERROR: Failure: ImportError (cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
    module = self.importer.importFromPath(
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.10/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.10/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/autopkgtest-lxc.u0m93kt_/downtmp/autopkgtest_tmp/tests/unit/dynamodb/test_types.py", line 27, in <module>
    from boto.dynamodb import types
File "/usr/lib/python3/dist-packages/boto/dynamodb/types.py", line 30, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

======================================================================
ERROR: Failure: ImportError (cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
    module = self.importer.importFromPath(
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.10/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.10/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/autopkgtest-lxc.u0m93kt_/downtmp/autopkgtest_tmp/tests/unit/dynamodb2/test_table.py", line 3, in <module>
    from boto.dynamodb2.fields import (HashKey, RangeKey,
File "/usr/lib/python3/dist-packages/boto/dynamodb2/fields.py", line 1, in <module>
    from boto.dynamodb2.types import STRING
File "/usr/lib/python3/dist-packages/boto/dynamodb2/types.py", line 4, in <module>
    from boto.dynamodb.types import NonBooleanDynamizer, Dynamizer
File "/usr/lib/python3/dist-packages/boto/dynamodb/types.py", line 30, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

======================================================================
ERROR: test_destructure_object (tests.unit.mws.test_connection.TestMWSConnection)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.u0m93kt_/downtmp/autopkgtest_tmp/tests/unit/mws/test_connection.py", line 103, in test_destructure_object
    destructure_object(user, result, prefix='Prefix', members=members)
File "/usr/lib/python3/dist-packages/boto/mws/connection.py", line 112, in destructure_object
    elif isinstance(value, collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'
-------------------- >> begin captured logging << --------------------
boto: DEBUG: Using access key provided by client.
boto: DEBUG: Using secret key provided by client.
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_connect_to_region (tests.unit.test_connect_to_region.TestDynamodbConnection)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.u0m93kt_/downtmp/autopkgtest_tmp/tests/unit/test_connect_to_region.py", line 179, in test_connect_to_region
    from boto.dynamodb.layer2 import Layer2
File "/usr/lib/python3/dist-packages/boto/dynamodb/layer2.py", line 28, in <module>
    from boto.dynamodb.types import get_dynamodb_type, Dynamizer, \
File "/usr/lib/python3/dist-packages/boto/dynamodb/types.py", line 30, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

----------------------------------------------------------------------
Ran 1595 tests in 5.265s

FAILED (SKIP=4, errors=6)
autopkgtest [13:25:05]: test unit

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: python-boto
Source-Version: 2.49.0-4
Done: Thomas Goirand <zigo@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-boto, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1001395@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated python-boto package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 19 Dec 2021 16:45:16 +0100
Source: python-boto
Architecture: source
Version: 2.49.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1001395
Changes:
 python-boto (2.49.0-4) unstable; urgency=medium
 .
   * Add patch to fix importing from collections (Closes: #1001395).
Checksums-Sha1:
 eb5f3581b740130f8fc931615832dd28cc320a3e 2133 python-boto_2.49.0-4.dsc
 c4ee58ca6ee9b4552975800cb0abaacec6ba0563 7456 python-boto_2.49.0-4.debian.tar.xz
 4e883da1e477be04f27e6bde4e5a192ace31c4ef 6677 python-boto_2.49.0-4_amd64.buildinfo
Checksums-Sha256:
 67d6bab0d0c491d2c49fcbf78e5f131a11dcbe9764f602b4c1c43ffa95186025 2133 python-boto_2.49.0-4.dsc
 e69df675328405c1284b741daa63207705848a0771260dba30a1350d98b5280b 7456 python-boto_2.49.0-4.debian.tar.xz
 55add988d073cf82567069a97c8f0ff0793768c57f5f6b0693814553c4628132 6677 python-boto_2.49.0-4_amd64.buildinfo
Files:
 be16e73ec14e46c4f71dba10e51b8953 2133 python optional python-boto_2.49.0-4.dsc
 c083df8e034323fae2a565adfc117fca 7456 python optional python-boto_2.49.0-4.debian.tar.xz
 5627dd4536bca0bbb30a1d7847bdba69 6677 python optional python-boto_2.49.0-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmG/VnQACgkQ1BatFaxr
Q/7dyw/5AagmOJbjIKuzqTGjQ25Y9/ebszzDISEoV07x6N/KY5gxGhW5MqxjNgZG
vpzw0qP9mD1RBW7h7oglYxVrgDtozhFJI5zdVc4EEyr/er2bG5Bq6Q07Bqf22ab3
rnpqCEt3w7uKeV4XkqIZPmH7JUDF8r4567T3hXuXncMjD9A97Ey7RCiGSEtTkBkn
2BCeM4KbQ7C1t8PyL0KZjwhTwS16hTleYaIQ+MTjNYNbFNZkcq1ZDnAlplo/PvfU
CUyHx1IiQ+PnVIvhEtMNwkvE2xUmtkqjqN5e3MLMJa6GUOK0S735pwPhBSrhCMgs
/864nFpOmO2tP5WFHNM0jSaLfdncykdwt3AlgJkT25TCsK0RZZVpgP/Rt76HyDDS
3BP/yWMQxaJCqvuqbVuAzdRcndq6XGhu6YC146Glyzz1nB+FyjeE9PDjBLr9hSV+
qD+qQ0GmIn3LDcAi0RuAxyfNgJqUpz9IhjtE6WT9S7z8pWBg3Xk31GVPBgHRQxiX
UUbnzkf4i+q/mR7FtRV0E4J1B0WaH1AUuzcdjEKJpRbYp+CE7r4aO+9H+QKiD/K4
o0q6bzvSyME2eoSJqbmmJnsfT0z4S78i+FM4BLWvLHqcgRJyOy5dH1vM8oFwAaQy
oUySFp8nmsLWqK9RCspgQVfaMnutMx+BfR2CpFHBNG1Mev2f6Iw=
=DBGV
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: