Personal tools
You are here: Home Forum Install & build Problem to launch Saturne

Problem to launch Saturne

Up to Install & build

Problem to launch Saturne

Posted by gauthier at March 11. 2010 14:02:36

Re: Problem to launch Saturne

Posted by gauthier at March 14. 2010 13:33:39

Hi,

My configuration is this one :

Linux Kern : Ubuntu UTC 2009x86_64 GNU/Linux

Distribution used : Ubuntu Linux 2.6.31-14 Generic

Memory used : 60 Go

Laptop used : DELL Inspiron 1545

Graphic card : ATI MOBILITY RADEON HD 4330

I have a problem concerning the installation of the code Saturne, you can find down the failure message sent when I try to launch ./runSalome_withSaturne in the attached file

"""""Searching for free port for the SALOME naming service : 2810 -OK

'import site' failed; use -v for traceback

Traceback (most recent call last):

File "/work/Salome_4.1.4_withSaturne/SALOME4/V4.1.4/KERNEL_V4_1_4/bin/salome/envSalome.py", lin 23, in <module>

import os

ImportError : no module named os

./runSalome : line 52 : /work/Salome_4.1.4_withSaturne/SALOME4/V4.1.4/KERNEL_V4_1_4/Prerequis/Python-2.4.4/bin/python : Auncun fichier ou dossier de ce type""""""

I would know if this error is due to an incompatibilty in different versions that I installed or I did a bad installation. For my part; Salome works very good, just I need Saturne code to do some Fluid Mechanics calculations...

 

Thanks you for all answers.

 

Re: Problem to launch Saturne

Posted by David Monfort at March 20. 2010 15:43:43

Hello,

For Code_Saturne-related questions, you can also ask for help on Code_Saturne forums (see https://code-saturne.info).

It seems you are using an old version released on the Machester University wiki ; thus, I suggest you try the newest one, as explained in this thread https://code-saturne.info/products/code-saturne/forums/announces/74597911#451232431

And for the record, you can also use the code outside SALOME ;)

David

Re: Problem to launch Saturne

Posted by David Monfort at March 20. 2010 15:48:52

Forgot to answer your question...

Indeed, you seem to have a problem with the Python installation, as there is an "import site" error (and thus it does not find the Python "os" module). Difficult to say why though, sorry :-/

Re: Problem to launch Saturne

Posted by DAVID Gilles at March 20. 2010 16:18:04

Hello,

This problem can be caused when the Python version used to install Code_Saturne is different than to the one provided by Salome.

Indeed Salome provides Python 2.4.4 and I guess that the standard version of Python in your environment is 2.5 or 2.6, which was the one used during the installation of Code_Saturne.

Conclusion: try to use the same version of Python, i.e. 2.4

Gilles

Re: Problem to launch Saturne

Posted by gauthier at March 21. 2010 20:32:57

Hello;

I checked the version of Python installed on my laptop, it's the 2.4 4rc2. Can I install a oldest version without problem ? If it's the case, I can launch a new installation or should I download the latest version of the code_saturne 2.0 ?

Thanks for your answer.

Re: Problem to launch Saturne

Posted by David Monfort at March 22. 2010 01:53:32

You can install the latest Code_Saturne version (2.0-rc1) with SALOME pre-requisites as detailed in this thread.

Manual installation of the kernel package (called "ncs") can also be done with the following options (make sure I'm right by typing ./configure --help as I write this without properly checking...) :

--with-python-exec=/path/to/python/execdir/of/salome (to get the right Python version)
--with-pyqt-dev-tools= /path/to/pyqt/execdir/of/salome (to get PyQt tools: pyuic4 and pyrcc4)

If this doesn't work, let us know ;)

 

Powered by Ploneboard
Document Actions