Welcome, Guest
Username: Password: Remember me

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

Error: unable to load the dynamic library _api.dll 2 years 1 month ago #41259

Hello,
I am trying to run a Telemac2d API example, but I cannot solve this Error.
My configuration files are attached and my PYTHONPATH:
C:\opentelemac-mascaret\python27\Lib\site-packages\numpy\core
C:\opentelemac-mascaret\v8p1\builds\wing64mpi\wrap_api\lib
C:\opentelemac-mascaret\v8p1\scripts\python3
and the LD_LIBRARY_PATH is:
C:\opentelemac-mascaret\v8p1\builds\wing64mpi\wrap_api\lib
Traceback (most recent call last):
File "C:\opentelemac-mascaret\v8p1\scripts\python3\telapy\api\api_module.py", line 132, in __init__
import _api
ModuleNotFoundError: No module named '_api'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\moham\OneDrive\Desktop\Trial.py", line 13, in <module>
my_problem = Telemac2d('t2d_breach.cas', lang=1, comm=MPI.COMM_WORLD)
File "C:\opentelemac-mascaret\v8p1\scripts\python3\telapy\api\t2d.py", line 57, in __init__
super(Telemac2d, self).__init__("t2d", casfile, user_fortran,
File "C:\opentelemac-mascaret\v8p1\scripts\python3\telapy\api\api_module.py", line 144, in __init__
raise TelemacException(\
utils.exceptions.TelemacException: Error: unable to load the dynamic library _api.dll
You can check the environment variable: PYTHONPATH
No module named '_api
Can someone help me, please?
Attachments:
The administrator has disabled public write access.

Error: unable to load the dynamic library _api.dll 2 years 1 month ago #41261

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

Please upgrade to the latest version, which is V8P3R1, as we don't provide support for old versions.

However, regarding your issue, you should note that LD_LIBRARY_PATH is a Linux environment variable. On Windows, DLLs are searched in PATH.
The administrator has disabled public write access.
The following user(s) said Thank You: Mohamedalmetwally

Error: unable to load the dynamic library _api.dll 2 years 1 month ago #41284

Thank you for your response.

I upgraded Telemac to V8P3r1 and removed LD_LIBRARY_PATH. But I still have the same problem with the dynamic libraries. I can't find the dynamic libraries in the software directory as shown in the attached screenshot. Can I download the _api.dll and other missing libraries from such a source?:unsure: please advise.
Attachments:
The administrator has disabled public write access.
Moderators: borisb

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