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

TOPIC: .cas can't run in TELEMAC but opened by Notepad

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21041

  • waziliwei
  • waziliwei's Avatar
Hi everyone,

After I installed the "opentelemacmascaret-5.2-windows-installer", I ran an .cas(attached please find the "1.png"),however, TELEMAC didn't run this .cas but opened it by Notepad("2.png")

And I tried to input "compileTELEMAC.py"("3.png") , it was also opened by Notepad("4.png")

With best regards,
Liwei
Attachments:
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21042

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
hi
try to cancel the association for *.py files
or try to run python compiletelemac.py

Regards
Christophe
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21045

  • waziliwei
  • waziliwei's Avatar
Hi c.coulet,
I have tried to run python compiletelemac.py, and it worked well.
But I still can't run t2d_bumpflu.cas (t.png), it was also opened by Notepad directly.
Attachments:
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21050

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

you should type the same type of command:
python telemac2d.py t2d_bumpflu.cas

Hope this helps
Christophe
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21057

  • waziliwei
  • waziliwei's Avatar
Hi c.coulet,
I have tried to run python telemac2d.py t2d_bumpflu.cas, but and it didn't work.
And I try the following way, it still didn't work.

With best regards,
Liwei
Attachments:
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21060

  • gh_river
  • gh_river's Avatar
Hi,

it is just a guess, but ae your python files registered as python files? That means, is there a python symbol in front of the file name? You can check this also in the proberties of the file ..
(Sorry if you already checked this).

Cheers,
Gabi
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21062

  • waziliwei
  • waziliwei's Avatar
Hi Gabi,

Sorry, I'm not sure what do you mean. For example, the telemac2d.py file in my computer is like this.(please find the attachment)

With best regards,
Liwei
Attachments:
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21066

  • gh_river
  • gh_river's Avatar
Hi Liwei,

if you right click with your mouse on a .py file and open the proberties, what is listed in the "general" tab?


file.png


Is is listed as python file there?
Regards,
Gabi
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21071

  • waziliwei
  • waziliwei's Avatar
Hi Gabi,

Thank you anyway, you inspired me. I find that my python file was opened with Notepad, so I changed it to open with python.exe, then TELEMAC worked well.

With best regards,
Liwei
The administrator has disabled public write access.

.cas can't run in TELEMAC but opened by Notepad 8 years 6 months ago #21069

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

You should be logical in your actions. This is only a problem of file location.

In the directory of the example (where the file t2d_bumpflu.cas is) you have to enter:
python c:\[path to telemac script directory]\telemac2d.py t2d_bumpflu.cas

Regards

PS: the solution described by gabi is just to avoid typing all path and directly allow your computer to recognize python file...
Christophe
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.