# \[SOLVED\] Error during configure stage of CGNS

**URL:** <https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144>\
**Category:** Installation issues\
**Created:** [March 21, 2022, 8:45pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144 "2022-03-21T20:45:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![blckwtr](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/eb9ed0/32.png) [@blckwtr](https://code-saturne.org/forum/u/blckwtr)\
**Post date:** [March 21, 2022, 8:45pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/1 "2022-03-21T20:45:50Z")

</div>

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  
[install\_saturne.log](https://code-saturne.org/forum/uploads/short-url/4lSPLtb7eW1Up7ZdcV7jLr3YvlM.log) (3.99 MB)

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [March 21, 2022, 10:24pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/2 "2022-03-21T22:24:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blckwtr](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/eb9ed0/32.png) [@blckwtr](https://code-saturne.org/forum/u/blckwtr)\
**Post date:** [March 22, 2022, 12:22am UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/3 "2022-03-22T00:22:05Z")

</div>

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   
from cs\_script import master\_script  
ModuleNotFoundError: No module named ‘cs\_script’

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [March 22, 2022, 7:50pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/4 "2022-03-22T19:50:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blckwtr](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/eb9ed0/32.png) [@blckwtr](https://code-saturne.org/forum/u/blckwtr)\
**Post date:** [March 22, 2022, 8:00pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/5 "2022-03-22T20:00:19Z")

</div>

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  
[config.log](https://code-saturne.org/forum/uploads/short-url/tdKsDhMbjyhibA2p5LIaz16S6IK.log) (203 KB)  
[setup.txt](https://code-saturne.org/forum/uploads/short-url/wiVGpgZDRKyBfpCQBsoODc81qRM.txt) (46 Bytes)

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [March 23, 2022, 11:19am UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/6 "2022-03-23T11:19:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blckwtr](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/eb9ed0/32.png) [@blckwtr](https://code-saturne.org/forum/u/blckwtr)\
**Post date:** [March 23, 2022, 12:59pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/7 "2022-03-23T12:59:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [March 23, 2022, 4:55pm UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/8 "2022-03-23T16:55:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blckwtr](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/b/eb9ed0/32.png) [@blckwtr](https://code-saturne.org/forum/u/blckwtr)\
**Post date:** [March 28, 2022, 10:01am UTC](https://code-saturne.org/forum/t/solved-error-during-configure-stage-of-cgns/2144/9 "2022-03-28T10:01:01Z")

</div>

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…
