KITPraktomatTeam / Praktomat

quality control for programming assignments
http://pp.ipd.kit.edu/projects/praktomat/praktomat.php
GNU General Public License v2.0
46 stars 22 forks source link

Python 3.10 #321

Closed chris21k closed 2 years ago

chris21k commented 2 years ago

src/settings/default.py line 23 needs to be changed from if not isinstance(v, collections.Callable) and not k.startswith('__'): to if not isinstance(v, collections.abc.Callable) and not k.startswith('__'): Otherwise Python 3.10 throws an exception collections.Callable not found. The new version should work from Python 3.3 onwards as far I can see.

See https://stackoverflow.com/questions/69515086/beautifulsoup-attributeerror-collections-has-no-attribute-callable or Section collections.abc of https://docs.python.org/3/whatsnew/3.10.html .

Chris