OS: Windows 10 ( I'm using it, unsure about other OSes)
Issue: When I'm trying to use the acitoolkit package v0.4 with Python 3.10, I'm getting the following error: "ImportError: cannot import name 'Sequence' from 'collections'"
Reason: The Sequence module has been moved under (_collections_abc module, finally referred from collections.abc module)
Solution:
Use Python version <=3.9
Change the import in acitoolkit.py file as below
was:
from collections import Sequence
to-be:
try:
from collections import Sequence
except ImportError:
from collections.abc import Sequence
OS: Windows 10 ( I'm using it, unsure about other OSes)
Issue: When I'm trying to use the
acitoolkit
package v0.4 with Python 3.10, I'm getting the following error: "ImportError: cannot import name 'Sequence' from 'collections'"Reason: The Sequence module has been moved under (
_collections_abc
module, finally referred fromcollections.abc
module)Solution:
from collections import Sequence
to-be:Feel free to suggest on alternative approaches.
Regards, Pratyush