gstlal.bottle raises ImportError with Python 3.10
The gstlal.bottle
module is attempting to import collections.MutableMapping
in Python 3.10, which raises an ImportError
:
Traceback (most recent call last):
File "/home/conda/feedstock_root/build_artifacts/gstlal_1639169376781/test_tmp/run_test.py", line 5, in <module>
import gstlal.bottle
File "/home/conda/feedstock_root/build_artifacts/gstlal_1639169376781/_test_env/lib/python3.10/site-packages/gstlal/bottle.py", line 87, in <module>
from collections import MutableMapping as DictMixin
ImportError: cannot import name 'MutableMapping' from 'collections' (/home/conda/feedstock_root/build_artifacts/gstlal_1639169376781/_test_env/lib/python3.10/collections/__init__.py)
This object was moved to collections.abc
in Python 3.3 and the alias has now been removed.
Edited by Duncan Macleod