Welcome, Guest
Username: Password: Remember me

TOPIC: KeyError: 'FILE'

KeyError: 'FILE' 10 years 2 days ago #14888

  • anasrahman
  • anasrahman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hello everyone,

I am trying to run my model in Linux. However, when I put the command " telemac3d.py ~/Telemac/1_Models/Parametric_study/d_Tsanis/Orkney_1_Tsnais.cas" to run in the Terminal, I get the following message:

Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

... parsing configuration file: /home/s1361364/Telemac/DL/telemac/configs/systel.cfg


Running your CAS file for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> configuration: ubugfopenmpi
+> root: /home/s1361364/Telemac/DL/telemac/
+> version v6p3


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


... reading the main module dictionary

... processing the main CAS file(s)
runCAS:
uncontroled error from python:: KeyError('FILE',)
~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/s1361364/Telemac/DL/telemac/scripts/python27/runcode.py", line 713, in runCAS
cases,lang,ncsize = processCAS(casNames,MODFiles[codeName],MODFiles[codeName])
File "/home/s1361364/Telemac/DL/telemac/scripts/python27/runcode.py", line 234, in processCAS
cas = readCAS(scanCAS(casFile),dico,frgb)
File "/home/s1361364/Telemac/DL/telemac/scripts/python27/parsers/parserKeywords.py", line 145, in readCAS
kw = frgb[kw]
KeyError: 'FILE'


When I try to run this file in Windows using the automatic installer, it works just fine.

Can someone be kind enough to point out the meaning of this error?

Attached is my CAS file for reference


Thank you
Attachments:
The administrator has disabled public write access.

KeyError: 'FILE' 10 years 2 days ago #14891

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

It is likely that you have to convert your windows CAS file into a Linux CAS file (using dos2unix for instance).
Please also note that this is true of all your ASCII files.

Another way to copy files over without having to convert them manually is to use FTP transfer tools such as FileZilla. These tool do the conversion back and forth automatically.

Hope this helps,
Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: anasrahman

KeyError: 'FILE' 10 years 1 day ago #14899

  • anasrahman
  • anasrahman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Sebastien,

Thank you so much for your prompt response.

I will try to use the method that you suggested above.

Anas
The administrator has disabled public write access.
Moderators: borisb

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