Welcome, Guest
Username: Password: Remember me

TOPIC: runcode.py problem in v8p0r2 with python3

runcode.py problem in v8p0r2 with python3 5 years 7 months ago #33351

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello,

I just compiled v8p0r2 using python3 without problems. When I wanted to execute a sample telemac2d case via:
runcode.py telemac2d -s --ncisze=2 bump.cas

I got the following error:
Traceback (most recent call last):
File "/home/pprodano/opentelemac/v8p0r2/scripts/python3/runcode.py", line 292, in <module>
main(None)
File "/home/pprodano/opentelemac/v8p0r2/scripts/python3/runcode.py", line 275, in main
run_study(cas_file, code_name, options)
File "/home/pprodano/opentelemac/v8p0r2/scripts/python3/execution/run_cas.py", line 140, in run_study
run_local_cas(my_study, options)
File "/home/pprodano/opentelemac/v8p0r2/scripts/python3/execution/run_cas.py", line 31, in run_local_cas
my_study.partionning(options.use_link)
File "/home/pprodano/opentelemac/v8p0r2/scripts/python3/execution/study.py", line 349, in partionning
concat = self.cas.get('CONCATENATE PARTEL OUTPUT')
File "/home/pprodano/opentelemac/v8p0r2/scripts/python3/execution/telemac_cas.py", line 320, in get
"keyword: {} not in dictionary".format(key))
utils.exceptions.TelemacException: keyword: CONCATENATE PARTEL OUTPUT not in dictionary

Is it my setup files? I just copied over what I had in v8p0r0 (where everything worked fine).

Pat
The administrator has disabled public write access.

runcode.py problem in v8p0r2 with python3 5 years 7 months ago #33355

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
This is a bug.

A work around is to replace the line by "concat = ''".
This was a mistake on my part when i updated the python3 scripts for v8p0r2.

Because the keyword CONCATENATE PARTEL OUTPUT is only available in the trunk.
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: pprodano

runcode.py problem in v8p0r2 with python3 5 years 4 months ago #34063

  • flanagan
  • flanagan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 8
Hi,
I updated my version of telemac, I'm now try to run the v8p0r2 version and I have exactly the same problem. How to solve this problem ??

Cheers
The administrator has disabled public write access.

runcode.py problem in v8p0r2 with python3 5 years 4 months ago #34064

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Same solution.
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.

runcode.py problem in v8p0r2 with python3 5 years 4 months ago #34065

  • flanagan
  • flanagan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 8
>This is a bug.
>
>A work around is to replace the line by "concat = ''".

Which program ? which line number ?

>This was a mistake on my part when i updated the python3 scripts for >v8p0r2.
>
>Because the keyword CONCATENATE PARTEL OUTPUT is only available in the >trunk.
The administrator has disabled public write access.

runcode.py problem in v8p0r2 with python3 5 years 4 months ago #34066

  • flanagan
  • flanagan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 8
ok, I got it !
study.py line 349 !
concat= ""
The administrator has disabled public write access.
Moderators: borisb

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