You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Python version 3.12 distutils has been removed. This causes some compiler error when building the elk converter via f2py:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/.venv/py312/lib/python3.12/site-packages/numpy/f2py/__main__.py", line 5, in <module>
main()
File "/.venv/py312/lib/python3.12/site-packages/numpy/f2py/f2py2e.py", line 732, in main
run_compile()
File "/.venv/py312/lib/python3.12/site-packages/numpy/f2py/f2py2e.py", line 705, in run_compile
builder.compile()
File "/.venv/py312/lib/python3.12/site-packages/numpy/f2py/_backends/_meson.py", line 131, in compile
self.run_meson(self.build_dir)
File "/.venv/py312/lib/python3.12/site-packages/numpy/f2py/_backends/_meson.py", line 117, in run_meson
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['meson', 'setup', 'bbdir']' returned non-zero exit status 1.
which is the following error in the meson log:
Could not introspect Python (['/.venv/py312/bin/python3.12', '/.venv/py312/lib/python3.12/site-packages/mesonbuild/scripts/python_info.py']): exit code 1
Program stdout:
Program stderr:
Traceback (most recent call last):
File "/.venv/py312/lib/python3.12/site-packages/mesonbuild/scripts/python_info.py", line 16, in <module>
import distutils.command.install
ModuleNotFoundError: No module named 'distutils'
meson.build:10:22: ERROR: <PythonExternalProgram 'python3' -> ['/.venv/py312/bin/python3.12']> is not a valid python or it is missing distutils
(END)
As of Python version 3.12 distutils has been removed. This causes some compiler error when building the elk converter via f2py:
which is the following error in the meson log:
I have no idea why meson is trying to run this file, or it is corrupted. In principle, the issue is documented here: https://numpy.org/doc/stable/f2py/buildtools/index.html and discussed here: numpy/numpy#24838 .
However, changing:
dft_tools/python/triqs_dft_tools/converters/elktools/elkwrappers/CMakeLists.txt
Line 15 in b4c1050
to (as suggested):
does not fix it.
Working on it... Any ideas welcome.
The text was updated successfully, but these errors were encountered: