Open bytesnake opened 1 year ago
The solution is simple, import collections.abc.Sequence
instead. It was introduced in Python 3.5.
The solution is simple, import
collections.abc.Sequence
instead. It was introduced in Python 3.5.
Hello! Got the same problem here! Wrote ‘from collections.abc import Sequence’ but problem persists. Did I miss something?
The solution is simple, import
collections.abc.Sequence
instead. It was introduced in Python 3.5.Hello! Got the same problem here! Wrote ‘from collections.abc import Sequence’ but problem persists. Did I miss something?
Yes, you would need to update it for every file hat uses the Collections library to import sequence and any other component that got moved to Collections.abc, such as Sequence, Iterable, and Iterator. There should be a total of about 7 different files in the AudioLazy project that have the same issue. Also note, not everything that is getting imported from Collections is from Collections.abc, so you'll have to have to separate those imports. I attached an image showing you what I mean. All of the tabs at the top are all of the files that you're going to need to change.
If you change them one at a time, you can keep running the program finding the next import that you need to change from the error line.
Hope this helps!
Bumping the python version from 3.6 fails because of a missing import from the
collections
library: