Welcome, Guest
Username: Password: Remember me

TOPIC: Python API installation

Python API installation 3 years 8 months ago #38048

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Ah no sorry I got another error which is not the same.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38049

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
It seems to be compiling the wingforsdbg and not the wingfors.
And it is missing the -cpp option.

Are you adding -c wingfors to compile_telemac.py ?
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: jprivers

Python API installation 3 years 8 months ago #38050

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Good news we are finally to "My work is done". Thank you for all your help yugi I will be able to use nice post-processing now.
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38051

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Happy to hear that.

I do not know if you are aware but the notebooks are available on the website:
docs.opentelemac.org/notebooks/v8p2r0/
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 installation 3 years 8 months ago #38052

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Ok thank you I am going to look into that just need to go into the right folder because "Error: unable to load the dynamic library _hermes.dll
You can check the environment variable: PYTHONPATH
No module named '_hermes'" I hope it will be ok
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38059

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
I did verify the PYTHONPATH and that _hermes. some numbers is in wrap_api\lib but it keeps getting the same error from the last message.
The administrator has disabled public write access.

Python API installation 3 years 7 months ago #38229

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

Sorry for the late reply. I've been busy.
Can you try just doing:
python3
>>> import _hermes

And post the result here.

Thanks
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 installation 3 years 7 months ago #38257

  • Jose_filho
  • Jose_filho's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 42
  • Thank you received: 2
Hi Yugi and all,
Could you have a look at my config file, please? I managed to compile Telemac v8p2r0 succesfully, but ended up with some issues to install python API. I have scanned a bunch of topics about it, but could not fix my issue. Can you help me?

Runnig compile_telemac.py --verbose, give me the error attached;

File Attachment:

File Name: systel_v8p2r0.cfg
File Size: 2 KB



File Attachment:

File Name: verbose_error.txt
File Size: 371 KB


Best regards,
The administrator has disabled public write access.

Python API installation 3 years 7 months ago #38260

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi jose,

You are compiling the libraries in static.
SO you either have compile the api in static (the only limitation is that If you use TelAPy you will net be able to have a user fortran) by changing options:
api static

Or you have to compile the libraries in dynamic.
For that you need to change the cmd_lib command.
Replacing it by the following should do the trick:

cmd_lib: [fc] -shared [lib_flags] -o <libname> <objs> <libs>
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 installation 3 years 7 months ago #38258

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Hello, no problem yugi I have been doing other stuff on Telemac during this time.In attachments the problem with the import.
Attachments:
The administrator has disabled public write access.
Moderators: borisb

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