Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Python API unable to load the dynamic library _hermes.so

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37979

  • thomas.le
  • thomas.le's Avatar
Hi,
Thanks for helping me!
So I added "options: api hermes_only" to my systel and if I type in the terminal config.py I get:
gfortranHPC:


+> Gfortran compiler 4.9.2 with open_mpi for a debian 8

+> root: /home/lune/v8p2r0
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel

Which seems fine?
But if I compile_telemac.py nothing more seems to be added to my telemac (see the message after compile_telemac.py attached).
Thanks again for helping me.

Thomas
Attachments:
The administrator has disabled public write access.

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37980

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Where did you add the line ? Because the api was not compiled.
Could you repost the updated systel.cfg ?
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37981

  • thomas.le
  • thomas.le's Avatar
Here is the new systel. The line is added to general
Attachments:
The administrator has disabled public write access.

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37983

  • thomas.le
  • thomas.le's Avatar
Sorry I just saw there was a options: hermes_only in gfortan HPC... :whistle:
i set it to options: api hermes_only. But then the compilation failed:
Building the Python API
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~> Wrap_api built
Traceback (most recent call last):
File "/home/lune/v8p2r0/scripts/python3/compile_telemac.py", line 143, in <module>
main()
File "/home/lune/v8p2r0/scripts/python3/compile_telemac.py", line 136, in main
hermes_only='hermes_only' in cfg_opt)
File "/home/lune/v8p2r0/scripts/python3/compilation/compil_tools.py", line 1020, in compile_api_files
"Missing keyword pyd_fcompiler in configuration file")
utils.exceptions.TelemacException: Missing keyword pyd_fcompiler in configuration file
The administrator has disabled public write access.

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37984

  • thomas.le
  • thomas.le's Avatar
I added
"f2py_name: f2py3
pyd_fcompiler: gnu95"

to my systel and the compilation ran successfully and the wrap api file was created. But now when i try to import hermes I get:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /home/lune/v8p2r0/builds/gfortranHPC/wrap_api/lib/_hermes.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _gfortran_st_close

Thanks for your support.
The administrator has disabled public write access.

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37985

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You need to add the following lines:
f2py_name: f2py3
pyd_fcompiler: gnu95

Where f2py_name should match the name of your f2py executable and pyf_fcompiler the name of the compiler for f2py.
You can check that running:
f2py3 -c --help-fcompiler

Ok I just saw that you did it already.
I'll leave the information for other people.
For your error add -lgfortran to libs_all that should solve it.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: thomas.le

Python API unable to load the dynamic library _hermes.so 3 years 8 months ago #37987

  • thomas.le
  • thomas.le's Avatar
Thank you very much! It worked :)
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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