Hello.
This is the status that I get on Pop OS 19.04.
code_saturne 6.0.0 is used.
2 version of salome tested:
1. 9.3 Ubuntu 18.04
2. 9.3 universal (public.run)
For 9.3 Ubuntu 18.04:
- Different structure of directory
- There is no salome_context file
- code saturne successfully "make" and "make install"
- ./code_saturne gui runs succesfully
- ./code_saturne salome return:
Code: Select all
/bin/bash: line 4: /bin/salome/envSalome.py: No such file or directory
running salome shell session return:
Code: Select all
Fatal Python error: initsite: Failed to import the site module
Traceback (most recent call last):
File "/home/iwan/salome/SALOME-9.3.0-UB18.04-SRC/BINARIES-UB18.04/urllib3/lib/python3.6/site-packages/site.py", line 73, in <module>
__boot()
File "/home/iwan/salome/SALOME-9.3.0-UB18.04-SRC/BINARIES-UB18.04/urllib3/lib/python3.6/site-packages/site.py", line 26, in __boot
import imp # Avoid import loop in Python >= 3.3
File "/home/iwan/salome/SALOME-9.3.0-UB18.04-SRC/BINARIES-UB18.04/Python/lib/python3.6/imp.py", line 27, in <module>
import tokenize
File "/home/iwan/salome/SALOME-9.3.0-UB18.04-SRC/BINARIES-UB18.04/Python/lib/python3.6/tokenize.py", line 33, in <module>
import re
File "/home/iwan/salome/SALOME-9.3.0-UB18.04-SRC/BINARIES-UB18.04/Python/lib/python3.6/re.py", line 123, in <module>
import sre_compile
File "/home/iwan/salome/SALOME-9.3.0-UB18.04-SRC/BINARIES-UB18.04/Python/lib/python3.6/sre_compile.py", line 17, in <module>
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
For universal source:
- Standard directory structure (Salome_9.3 library and appli_Salome_9.3 folders)
- There is context_salome file
- code_saturne make returns:
Code: Select all
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f00f38b2740 (most recent call first):
/bin/bash: line 1: 5989 Aborted (core dumped) /usr/bin/python3.7 /home/iwan/salome/Salome-V9_3_0-x86_64-univ/prerequisites/Omniorb-422/bin/omniidl -bcxx -Wba -nf -I/home/iwan/salome/Salome-V9_3_0-x86_64-univ/prerequisites/Omniorb-422/idl -I/home/iwan/salome/Salome-V9_3_0-x86_64-univ/modules/KERNEL_V9_3_0/idl/salome -I/home/iwan/salome/Salome-V9_3_0-x86_64-univ/modules/GUI_V9_3_0/idl/salome CFDSTUDY_Gen.idl
make[4]: *** [Makefile:1101: CFDSTUDY_GenSK.cc] Error 134
make[4]: Leaving directory '/home/iwan/code_saturne/code_saturne-6.0.0/salome/cfd_study/idl'
make[3]: *** [Makefile:640: all-recursive] Error 1
make[3]: Leaving directory '/home/iwan/code_saturne/code_saturne-6.0.0/salome/cfd_study'
make[2]: *** [Makefile:641: all-recursive] Error 1
make[2]: Leaving directory '/home/iwan/code_saturne/code_saturne-6.0.0/salome'
make[1]: *** [Makefile:1595: all-recursive] Error 1
make[1]: Leaving directory '/home/iwan/code_saturne/code_saturne-6.0.0'
make: *** [Makefile:1039: all] Error 2
- salome shell session return
Code: Select all
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f2cda337f80 (most recent call first):
Configuring code_saturne with python from salome stoppped at:
Code: Select all
checking whether /home/iwan/salome/Salome-V9_3_0-x86_64-univ/prerequisites/Python-365/python3.6 version is >= "2.6"... no
configure: error: Python interpreter is too old
Kind regards,
Iwan