lalinference_review_test incompatible with Python 3.12
The script lalinference_review_test
is attempting to import the configparser.SafeConfigParser
object, which was finally removed in Python 3.12. This needs to be updated:
$ python3 -m venv test
$ ./test/bin/python3 -m pip install lalsuite
Collecting lalsuite
Downloading lalsuite-7.22.1.dev20240331-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (3.2 kB)
...
Successfully installed PyYAML-6.0.1 astropy-6.0.1 astropy-iers-data-0.2024.4.1.0.33.14 cffi-1.16.0 contourpy-1.2.0 cryptography-42.0.5 cycler-0.12.1 fonttools-4.50.0 kiwisolver-1.4.5 lalsuite-7.22.1.dev20240331 ligo-segments-1.4.0 lscsoft-glue-4.0.0 matplotlib-3.8.3 numpy-1.26.4 packaging-24.0 pillow-10.2.0 pyOpenSSL-24.1.0 pycparser-2.22 pyerfa-2.0.1.1 pyparsing-3.1.2 python-dateutil-2.9.0.post0 scipy-1.12.0 six-1.16.0
$ ./test/bin/lalinference_review_test --help
Traceback (most recent call last):
File "/home/duncan/tmp/./test/bin/lalinference_review_test", line 11, in <module>
from six.moves.configparser import SafeConfigParser
ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/home/duncan/opt/mambaforge/envs/py312/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'?