amahabal / PySeqsee

Python framework for writing programs to solve complex problems not amenable to brute force. The architecture is a descendant of Douglas Hofstadter and Melanie Mitchell's Copycat architecture.
http://amahabal.github.com/PySeqsee/
GNU General Public License v3.0
32 stars 10 forks source link

Not compatible with Python 3.10 #40

Open Angular-Angel opened 1 month ago

Angular-Angel commented 1 month ago

I have this problem:

https://stackoverflow.com/questions/70943244/attributeerror-module-collections-has-no-attribute-mutablemapping

Seems like it requires rewriting code to work with the new version? Saw some workarounds, will test them.

Angular-Angel commented 1 month ago

Putting:

import sys

if sys.version_info.major == 3 and sys.version_info.minor >= 10:
    import collections
    setattr(collections, "MutableMapping", collections.abc.MutableMapping)

in: PySeqsee/farg/third_party/skeleton/core.py seems to have worked.