Public bug reported:

In python 3.10, "from collections import Mapping" doesn't work anymore
and should be imported from collections.abc

$ python3 debian/tests/import3
Traceback (most recent call last):
  File "/home/ubuntu/deb/python-fysom/python-fysom/debian/tests/import3",
line 4, in <module>
    fsm = Fysom({'initial': 'green',
  File "/usr/lib/python3/dist-packages/fysom/__init__.py", line 162,
in __init__
    if isinstance(e, collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'


Upstream fixed this in 2.1.6, and this is the patch:
https://github.com/mriehl/fysom/commit/1ed6950d2b683a9a2a2ab35dfd0ea79dc2963dc3

** Affects: python-fysom (Ubuntu)
     Importance: Undecided
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress

** Affects: python-fysom (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: update-excuse update-excuses

** Bug watch added: Debian Bug tracker #1004913
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004913

** Also affects: python-fysom (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004913
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1959907

Title:
  DEP8 failure due to py3.10 incompatible import

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-fysom/+bug/1959907/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to