Welcome, Guest
Username: Password: Remember me

TOPIC: Run telemac2d.py

Run telemac2d.py 4 years 8 months ago #35530

Dear all,

I have a difficulty to run telemac2d.py as usual, say :
"tzlemeac2d.py -s casefile"
It returen me an error "too few arguments".
It seems that it needs two arguments at least, but I don't know what ?
Than tou for your help.

Patrick
The administrator has disabled public write access.

Run telemac2d.py 4 years 8 months ago #35536

  • Cougard Tanguy
  • Cougard Tanguy's Avatar
Hey Patrick,

I think the correct formulation would be "telemac2d.py NameOfYourFile.cas".

Moreover, are you aware that adding "-s" if an option which generate an output listing ?


William
The administrator has disabled public write access.

Run telemac2d.py 4 years 8 months ago #35559

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
This is a problem with your python installation.
The arguments following telemac2d.py are not passed to the python command which explain the error message
This has been already discussed in the forum

try the command: python [path_to_scripts_directory]\telemac2d.py -s casefile

Regards
Christophe
The administrator has disabled public write access.

Run telemac2d.py 4 years 8 months ago #35562

Many thanks Christophe.
Yes that's the solution, but I write the command :
python [path_to_scripts_directory]\runcode.py telemac2d -s casefile
The administrator has disabled public write access.

Run telemac2d.py 4 years 8 months ago #35566

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

The issue can be resolved by editing in regedit the command associated to python.
The issue here is that the command associated with Python files ignores the arguments.

Have a look at this link:
stackoverflow.com/questions/29540541/pyt...-sys-argv-in-windows

This way you can still use telemac.py directly.
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.
Moderators: pham

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