Becksteinlab / GromacsWrapper

GromacsWrapper wraps system calls to GROMACS tools into thin Python classes (GROMACS 4.6.5 - 2024 supported).
https://gromacswrapper.readthedocs.org
GNU General Public License v3.0
169 stars 53 forks source link

update for Python >= 3.10 #235

Closed orbeckst closed 1 year ago

orbeckst commented 1 year ago
___________________ ERROR collecting tests/test_utilities.py ___________________
ImportError while importing test module '/home/runner/work/GromacsWrapper/GromacsWrapper/tests/test_utilities.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/share/miniconda/envs/test/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_utilities.py:12: in <module>
    from collections import Iterable
E   ImportError: cannot import name 'Iterable' from 'collections' (/usr/share/miniconda/envs/test/lib/python3.10/collections/__init__.py)
orbeckst commented 1 year ago
from six.moves.collections_abc import Iterable