Welcome, Guest
Username: Password: Remember me

TOPIC: Telemac2d Installation

Telemac2d Installation 10 years 2 months ago #14315

  • schaad
  • schaad's Avatar
Hi All,

After some problems with the linux installation, I am trying to install T2D on Win7. The installation was seemingly successful. However, when I run a case (which works on linux installation), I get the following error:

>telemac2d.py Drogues_00.cas


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

... parsing configuration file: C:\opentelemac-mascaret\v6p3\configs\systel.cis-
simon.cfg


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

    +> configuration: win7gfors
    +> root:          C:\opentelemac-mascaret\v6p3
    +> version        v6p3


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


... reading the main module dictionary
_____________
runcode::main:
:
      uncontroled error from python:: IndexError('string index out of range',)
~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
  File "C:\opentelemac-mascaret\v6p3\scripts\python27\runcode.py", line 1331, in
 main
    runCAS(cfgname,cfg,codeName,casFiles,options)
  File "C:\opentelemac-mascaret\v6p3\scripts\python27\runcode.py", line 698, in
runCAS
    frgb,dico = scanDICO(dicoFile)
  File "C:\opentelemac-mascaret\v6p3\scripts\python27\parsers\parserKeywords.py"
, line 338, in scanDICO
    if proc.group('val')[0] == "'":
IndexError: string index out of range
~~~~~~~~~~~~~~~~~~

Does error ring any bells for anyone? Would you like more information? Your help is much appreciated!
-Simon
The administrator has disabled public write access.

Telemac2d Installation 5 years 1 week ago #34926

  • markaldo
  • markaldo's Avatar
schaad wrote:
IndexError: string index out of range

In Python, a string is a single-dimensional array of characters. The string index out of range means that the index you are trying to access does not exist. In a string, that means you're trying to get a character from the string at a given point. If that given point does not exist , then you will be trying to get a character that is not inside of the string. Indexes in Python programming start at 0. This means that the maximum index for any string will always be length-1. There are several ways to account for this. Knowing the length of your string (using len() function)could certainly help you to avoid going over the index.
The administrator has disabled public write access.

Telemac2d Installation 5 years 1 week ago #34932

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

If you are indeed in v6p3.
My suggestion would be to install the latest version v8p0r3.
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: borisb

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