Page 1 of 1
v131 - import system not working anymore
Posted: Tue Jul 16, 2013 1:05 pm
by FlorianK
Realflow Python cannot find import system, anymore. Does anybody else have this issue?
Re: v131 - import system not working anymore
Posted: Tue Jul 16, 2013 1:37 pm
by LuisMiguel
Hey Florian,
I guess you need system to move in the system preferences, don't you?. Importing OS is not enough?. Let me know what you want to do.
luisM.
Re: v131 - import system not working anymore
Posted: Tue Jul 16, 2013 2:50 pm
by FlorianK
Any script containing import system (or any other module inside system) doesn't work anymore. Which breaks the complete pipeline here as we cannot submit our sims via deadline to the RF nodes. System is a crucial Python module and that simply must work.
The issue happens on two different computers, it is reproducable and I already wrote an email earlier today.
Try the following:
1. Open Batch Script Editor
2. type import system
3. run script
-> Error
The same happens with any other script that is referring to the system module.
Re: v131 - import system not working anymore
Posted: Tue Jul 16, 2013 3:07 pm
by Otuama
import system doesn't even work in IDLE.
From IDLE:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import system
ImportError: No module named system
Do you mean to load the sys module: import sys ?
Re: v131 - import system not working anymore
Posted: Tue Jul 16, 2013 3:41 pm
by FlorianK
Ok...
The real commands (that alo don't work anymore) are
from system import *
or
from System.IO import *
what works fine is
import math,os
...and the same script had been running flawlessly, before.
Re: v131 - import system not working anymore
Posted: Wed Jul 17, 2013 8:34 am
by LuisMiguel
Hi Florian,
Otuama is right. Even if you try "Import system" in RF5 o RF2012, it won't work either, and just for info, "os.sys" is os's "private" name for sys.
luisM.
Re: v131 - import system not working anymore
Posted: Wed Jul 17, 2013 10:25 am
by FlorianK
Ok, the issue was IronPython and the System module is part of that. Probably, the former Realflow installation here was altered so it understands IronPython...
Re: v131 - import system not working anymore
Posted: Thu Jul 18, 2013 11:33 am
by LuisMiguel
Good to know
Thanks for the info Florian.
luisM.