DEP8 failure due to py3.10 incompatible import
Bug #1959907 reported by
Andreas Hasenack
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-fysom (Debian) |
Fix Released
|
Unknown
|
|||
python-fysom (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
In python 3.10, "from collections import Mapping" doesn't work anymore
and should be imported from collections.abc
$ python3 debian/
Traceback (most recent call last):
File "/home/
line 4, in <module>
fsm = Fysom({'initial': 'green',
File "/usr/lib/
in __init__
if isinstance(e, collections.
AttributeError: module 'collections' has no attribute 'Mapping'
Upstream fixed this in 2.1.6, and this is the patch:
https:/
Related branches
~ahasenack/ubuntu/+source/python-fysom:jammy-fix-py310-collections-import
Merged
into
ubuntu/+source/python-fysom:ubuntu/devel
at
revision 805ceba9e9361d3fecaff62235deac7583a72178
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
-
Diff: 95 lines (+65/-1)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/import_abc_from_collections_abc.patch (+55/-0)
debian/patches/series (+1/-0)
Changed in python-fysom (Debian): | |
status: | Unknown → New |
Changed in python-fysom (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
This bug was fixed in the package python-fysom - 2.1.5-3ubuntu1
---------------
python-fysom (2.1.5-3ubuntu1) jammy; urgency=medium
* d/p/import_ abc_from_ collections_ abc.patch: Fix collections import
for Python 3.10+ (LP: #1959907)
-- Andreas Hasenack <email address hidden> Thu, 03 Feb 2022 14:34:40 -0300