Hello All,
I am using Ubuntu 20.4 to run telemac2d and it works, but when I'm trying to run the API t2d.py example (~/telemac/v8p3/examples/python3/TelApy_api/) with python3, this error raised
~> Checking keyword/rubrique coherence
Traceback (most recent call last):
File "/home/hymo/telemac/v8p3/scripts/python3/telapy/api/api_module.py", line 171, in __init__
import _api
ImportError: /home/hymo/telemac/v8p3/builds/debgfopenmpidyn/wrap_api/lib/libpartel4api.so: undefined symbol: METIS_PartMeshDual
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "t2d.py", line 118, in <module>
VAL1 = main()
File "t2d.py", line 81, in main
study = Telemac2d(path.basename(cas_file), user_fortran='user_fortran',
File "/home/hymo/telemac/v8p3/scripts/python3/telapy/api/t2d.py", line 58, in __init__
super(Telemac2d, self).__init__("t2d", casfile, user_fortran,
File "/home/hymo/telemac/v8p3/scripts/python3/telapy/api/api_module.py", line 183, in __init__
raise TelemacException(
utils.exceptions.TelemacException: Error: unable to load the dynamic library _api.so
You can check the environment variable: PYTHONPATH
/home/hymo/telemac/v8p3/builds/debgfopenmpidyn/wrap_api/lib/libpartel4api.so: undefined symbol: METIS_PartMeshDual
noting that I compiled Metis and Telemac in both static and dynamic.
The pysource and systel files are attached.
Kindly reply.
Best regards,