Hello,
i just tried to load the os module via a batch script. On my Windows workstations everything is fine. But on fedorra I can't load this standard module. Can somebody confirm this?
Cheers
PS: e.g. "import sys" works fine in both worlds...
import os - "No module named os"
Re: import os - "No module named os"
As far as I know, the os module is part of your Python distribution and not RF. You can check for "os" with a simple command: open a shell/terminal and enter
python
>>> help('modules')
Look for "os" and if it's not there you have to install it separately or reinstall Python. If it's there you might have to change your environment variables or paths to point to this module.
python
>>> help('modules')
Look for "os" and if it's not there you have to install it separately or reinstall Python. If it's there you might have to change your environment variables or paths to point to this module.
Thomas Schlick | Next Limit Technologies
Re: import os - "No module named os"
Hi all,
the problem with modules import in Linux is our fault. The path set for modules search is not well constructed.
I don't have a Linux machine at this moment to test it. Can you post the result of this command?:
Path is most likely corrupt with some Windows style info. If you post the output path we can provide you a quick workaround.
Of course, it will be fixed for the next version.
Sorry for the inconvenience
the problem with modules import in Linux is our fault. The path set for modules search is not well constructed.
I don't have a Linux machine at this moment to test it. Can you post the result of this command?:
Code: Select all
import sys
scene.message( str( sys.path) )
Of course, it will be fixed for the next version.
Sorry for the inconvenience
Alex Ribao
RealFlow Team
Next Limit Technologies
RealFlow Team
Next Limit Technologies
Re: import os - "No module named os"
Hello Alex,
here is my output:
I think in my case:
will do the job.
Best regards
here is my output:
Code: Select all
['/home/timo/realflow/lib/python;/home/timo/realflow/lib/dlls', '/home/timo/realflow/lib/python/lib-dynload']
Code: Select all
sys.path.append("/home/timo/realflow/lib/python")
Best regards
Re: import os - "No module named os"
Hi Timo,
That's right.
That should do the trick.
Let us know if you have any more problem with it.
That's right.
Code: Select all
sys.path = ['/home/timo/realflow/lib/python', '/home/timo/realflow/lib/python/lib-dynload']
Let us know if you have any more problem with it.
Alex Ribao
RealFlow Team
Next Limit Technologies
RealFlow Team
Next Limit Technologies