dronecan / pydronecan

python DroneCAN code generation, interface and utilities
MIT License
33 stars 37 forks source link

AttributeError: module 'collections' has no attribute 'MutableSequence' with Python 3.10 (ships with Ubuntu 22.04 by default) #20

Closed marcojob closed 2 years ago

marcojob commented 2 years ago

This happens because MutableSequence is now part of collections.abc; a possible fix is to change the import in transport.py to

try:
    from collections import MutableSequence
except ImportError:
    from collections.abc import MutableSequence

which might not be the most elegant solution, but keeps support for all versions.

marcojob commented 2 years ago

Nvm this is solved on master