Page 1 of 1

[SOLVED] Error during configure stage of CGNS

Posted: Mon Mar 21, 2022 9:45 pm
by blckwtr
I get an error message during installation of code_saturne, "Error during configure stage of CGNS."

I have attached the install_saturne.log file if anyone have the heart to look into it.

Best regards, Tommy

Re: Error during configure stage of CGNS

Posted: Mon Mar 21, 2022 11:24 pm
by Yvan Fournier
Hello,

The end of the error log indicates cmake is not installed. For the CGNS installation, you need to install cmake, which should be available as a package on your Linux distribution.

Best regards,

Yvan

Re: Error during configure stage of CGNS

Posted: Tue Mar 22, 2022 1:22 am
by blckwtr
Thanks, that was very helpful. I managed to install, but now when creating an alias to shortcut, I get this error message in terminal:

Traceback (most recent call last):
File "/usr/bin/code_saturne", line 67, in <module>
from cs_script import master_script
ModuleNotFoundError: No module named 'cs_script'

Re: Error during configure stage of CGNS

Posted: Tue Mar 22, 2022 8:50 pm
by Yvan Fournier
Hello,

Could you also post the setup file and the config.log file from the build directory of code_saturne itself (a subdirectory of your global build directory) ?

Regards,

Yvan

Re: Error during configure stage of CGNS

Posted: Tue Mar 22, 2022 9:00 pm
by blckwtr
I have attached the setup file and hopefully the correct location. I have a code_saturne.build folder where I got the setup file (attached as .txt), and the code_saturne-7.0.4.build where i found the config.log file. Is this correct?

I must also mention that I was forced to edit the .bashrc file with the following in order to use ./salome to run salome:

export PYTHONPATH=/home/blckwtr/Code_Saturne/7.0.4/code_saturne-7.0.4/arch/Linux_x86_64/lib/python3.8/site-packages

Re: Error during configure stage of CGNS

Posted: Wed Mar 23, 2022 12:19 pm
by Yvan Fournier
Hello,

Is there a Python binary in the SALOME build you are using ? If so, you are probably mixing PYTHONPATH with a Python version inside SALOME, and using the System Python, which could explain why modules are not found.

Did you try an install independent of SALOME ? You can still use salome prerequisites, such as MED, but do not need to run ./salome for that.

Best regards,

Yvan

Re: Error during configure stage of CGNS

Posted: Wed Mar 23, 2022 1:59 pm
by blckwtr
I must check into that, but I was forced to use "python is python3" in order to finally install CGNS in code_saturne... Could it be this?

Re: Error during configure stage of CGNS

Posted: Wed Mar 23, 2022 5:55 pm
by Yvan Fournier
Hello,

In all cases, you must use Python3, but there may be a different Python3 in salome.

To avoid complex issues here, I recommend first building a working version without bothering with Salome's Python, so you should not need to modify your PYTHONPATH. Or if you need if for SALOME separately from code_saturne, unset it for the code_saturne build and tests.

Regards,

Yvan

Re: Error during configure stage of CGNS

Posted: Mon Mar 28, 2022 11:01 am
by blckwtr
I reinstalled OS, and made the installation from scratch. I think there was some anaconda paths corrupting the instakllation of CGNS, and further... The issue were solved using default paths...