python 3.10 AttributeError: module 'collections' has no attribute 'Iterable'
After my Manjaro server upgraded python from 3.9 to 3.10 Mayan-EDMS stoped working!
Two files needs adjustment in order to get Mayan-EDMS back on track as far as I found:
- python3.10/site-packages/pure_pagination/paginator.py:
replace the first line "
import collections
" into:
try: # Python 3.10
from collections.abc import Iterable
except ImportError:
from collections import Iterable
AND line 109 " elif isinstance(result, collections.Iterable):
" into
elif isinstance(result, Iterable):
Bug reported: https://github.com/jamespacileo/django-pure-pagination/issues/64
- python3.10/site-packages/mayan/apps/dynamic_search/classes.py:
replace the first line "
from collections import Iterable
" into:
try: # Python 3.10
from collections.abc import Iterable
except ImportError:
from collections import Iterable
Edited by Bw