DEP8 failure due to py3.10 incompatible import
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-orderedmultidict (Debian) |
Fix Released
|
Unknown
|
|||
python-orderedmultidict (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
In python 3.10, "from collections import <thing>" doesn't work anymore
and should be imported from collections.abc.
$ sh debian/
EE
=======
ERROR: test_itemlist (unittest.
-------
ImportError: Failed to import test module: test_itemlist
Traceback (most recent call last):
File "/usr/lib/
module = __import_
File "/home/
line 18, in <module>
from orderedmultidic
File "/home/
line 14, in <module>
from .orderedmultidict import * # noqa
File "/home/
line 15, in <module>
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections'
(/usr/lib/
=======
ERROR: test_orderedmul
-------
ImportError: Failed to import test module: test_orderedmul
Traceback (most recent call last):
File "/usr/lib/
module = __import_
File "/home/
line 20, in <module>
from orderedmultidic
File "/home/
line 14, in <module>
from .orderedmultidict import * # noqa
File "/home/
line 15, in <module>
from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections'
(/usr/lib/
-------
Ran 2 tests in 0.000s
Upstream fixed it in
https:/
which is part of the 1.0.1 release:
Related branches
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 86 lines (+56/-1)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/py310-fix-collections-import.patch (+46/-0)
debian/patches/series (+1/-0)
Changed in python-orderedmultidict (Debian): | |
status: | Unknown → New |
Changed in python-orderedmultidict (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package python- orderedmultidic t - 1.0-4ubuntu1
--------------- orderedmultidic t (1.0-4ubuntu1) jammy; urgency=medium
python-
* d/p/py310- fix-collections -import. patch: fix collections import
for python 3.10+ (LP: #1959929)
-- Andreas Hasenack <email address hidden> Thu, 03 Feb 2022 18:59:08 +0000