Welcome, Guest
Username: Password: Remember me

TOPIC: Error: unable to load the dynamic library _api.so

Error: unable to load the dynamic library _api.so 1 year 11 months ago #41720

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,
Attachments:
The administrator has disabled public write access.

Error: unable to load the dynamic library _api.so 1 year 11 months ago #41746

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
Hello Mohamed,

The "libs_all" section of your systel file is not correct because you tell the linker to use both the static and the dynamic versions of the METIS libraries. However you must choose one or the other but not both.
The administrator has disabled public write access.

Error: unable to load the dynamic library _api.so 1 year 11 months ago #41760

Hi Borisp,
Thank you for your advice. I tried to recompile Telemac V8p4 with the dynamic version of the METIS libraries alone once and the static version alone another time, and Telemac compiled both times without any errors. However, the API examples still don't work and show the same error (undefined symbol: METIS_PartMeshDual).
I have a few questions:
- What can be the reason for this error?
- If you have a configuration file with which the API example worked, can you share it?
- For The new automated installer for Windows, Will it include dynamic compiling and can run the API examples?

Best regards,
Mohamed
Attachments:
The administrator has disabled public write access.

Error: unable to load the dynamic library _api.so 1 year 11 months ago #41767

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
This message means that TelApy is unable to find a symbol from the METIS library. Do the other examples run fine, e.g. the gouttedo and the malpasset examples from the telemac2d folder?
The administrator has disabled public write access.
The following user(s) said Thank You: Mohamedalmetwally

Error: unable to load the dynamic library _api.so 1 year 10 months ago #41846

Thank you very much for your reply.

I tried to run the mentioned examples it didn't work. But I could run simple simulations (similar to TELEMAC_2D_Baxter_tutorial) with telemac2d module in a sequential mode. I followed the whole installation process on a new Debian machine but still had the same issue. I have been trying to do so in Windows and Linux for the last six months and almost got frustrated. If there is special support, I will really appreciate to send me the contact as I really need to use it in my study. Noting that I sent emails to the organizations on the support page for training and support but I didn't receive any replies.

Kind regards,
Mohamed
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.