mariomulansky/PySpike

PySpike incompatible with Python 3.10

Closed this issue · 3 comments

gspr commented

Python 3.7 started issuing a warning that importing abstract base classes like Sequence from collections instead of collections.abc is deprecated. With Python 3.10, doing so is an error. That means that PySpike does not work with Python 3.10 or later. That should be fixed, and doing so should be easy.

More info e.g. here.

gspr commented

PR 53 fixes the issue, but may result in incompatibilities with some very old Python versions. If you wanna retain compatibility with those, the PR can be adapted to try both the old and the new import.

gspr commented

The merging of PR 53 fixes this.

Thanks for the PR @gspr - I decided to drop Python2 support and anything older than Python 3.7.