v131 - import system not working anymore
v131 - import system not working anymore
Realflow Python cannot find import system, anymore. Does anybody else have this issue?
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: v131 - import system not working anymore
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.
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
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.
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
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 ?
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 ?
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi
Re: v131 - import system not working anymore
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.
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.
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: v131 - import system not working anymore
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.
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
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...
- LuisMiguel
- Posts: 528
- Joined: Fri Jun 04, 2010 2:37 pm
Re: v131 - import system not working anymore
Good to know 
Thanks for the info Florian.
luisM.
Thanks for the info Florian.
luisM.