v131 - import system not working anymore

Post Reply
User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

v131 - import system not working anymore

Post by FlorianK » Tue Jul 16, 2013 1:05 pm

Realflow Python cannot find import system, anymore. Does anybody else have this issue?

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: v131 - import system not working anymore

Post by LuisMiguel » Tue Jul 16, 2013 1:37 pm

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.

User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

Re: v131 - import system not working anymore

Post by FlorianK » Tue Jul 16, 2013 2:50 pm

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.

User avatar
Otuama
Posts: 162
Joined: Sun Jun 27, 2010 2:29 pm

Re: v131 - import system not working anymore

Post by Otuama » Tue Jul 16, 2013 3:07 pm

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 ?
Otuama - Vimeo
'Strength does not come from physical capacity. It comes from an indomitable will.' - Gandhi

User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

Re: v131 - import system not working anymore

Post by FlorianK » Tue Jul 16, 2013 3:41 pm

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.

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: v131 - import system not working anymore

Post by LuisMiguel » Wed Jul 17, 2013 8:34 am

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.

User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

Re: v131 - import system not working anymore

Post by FlorianK » Wed Jul 17, 2013 10:25 am

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...

User avatar
LuisMiguel
Posts: 528
Joined: Fri Jun 04, 2010 2:37 pm

Re: v131 - import system not working anymore

Post by LuisMiguel » Thu Jul 18, 2013 11:33 am

Good to know ;)

Thanks for the info Florian.

luisM.

Post Reply