Welcome, Guest
Username: Password: Remember me

TOPIC: Python API installation

Python API installation 3 years 8 months ago #37955

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Good evening, I've been trying to upgrade my Telemac software by adding API to do some post processing using Python.
Unfortunalely after resolving many problems, I do not manage to solve this one.
It seems that I have a problem with a .lib file. In attachment I link a screen of the problem.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #37999

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Could it be related to my windows setup or is it related with the telemac installation such as systel or something like that ?
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38001

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

Could you try running compile_telemac.py with the option --verbose and post the result.
Also vould you post your configuration file (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 installation 3 years 8 months ago #38002

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
Hi, no problem there are the compilation and the systel.cfg files.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38003

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Can you run
f2py -c --help-fcompiler
Also can you check that the f2py you are using is the one from the python used by telemac.
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 #38004

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
There is the file. How can I know if there are the same ones ? Sorry I am not very familiar with all of that.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38005

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Try where f2py.
It should give you the full path of f2py.

Ok so I think the error comes the .lib extension.
Replace in your configuration file:
sfx_lib: .lib
by
sfx_lib: .a
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 #38006

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
For the path of f2py : "C:\Users\jeanp\AppData\Local\Programs\Python\Python39\Scripts\f2py.exe"

Ok it was probably one of the problem because the installation went further even if there is another problem.
Attachments:
The administrator has disabled public write access.

Python API installation 3 years 8 months ago #38007

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Is this the listing with --verbose ?
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 #38008

  • jprivers
  • jprivers's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 24
No the last screen was without --verbose, it was the new error but later in the process during after ~> First part of f2py for hermes passed.

With verbose I get the following in attachments.
Attachments:
The administrator has disabled public write access.
Moderators: borisb

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