No module _sysconfigdata_m_linux_x86_64-linux-gnu.py
error when I use shell session. There was no file named salome_context in the UB18.04 installer.
I tried to make Salome Meca 2019 work. Asking to code-aster forum, the post installation step still requires python2.
After SM2019 can be run, I tried to use salome shell session. The same error still occur.
Currently, I am moving to Pop_OS 19.04 which is based on ubuntu 19.04 to see if the error persist.
Probably should create a new thread.
Could you post a step by step by installation procedure using both salome shell and salome_context?
code saturne successfully “make” and “make install”
./code_saturne gui runs succesfully
./code_saturne salome return:
/bin/bash: line 4: /bin/salome/envSalome.py: No such file or directory
running salome shell session return:
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)
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:
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
The Python detection error is strange, but since you seem to have forced PYTHON=/usr/bin/python3.7, while SALOME has its own Python 3.6, this may lead to the error.
If buiding code_saturne under SALOME, you should use at least the same Python version as SALOME, and if possible, SALOME’s bundled Python.
Otherwise you can simply build code_saturne independently of SALOME, using the SALOME libraries where needed (MED, HDF, …). In this case you will not have the full SALOME desktop integration, but it is not that useful anyways (compared to the SALOME libraries). The only cases wher you really need this is if you need to do coupling with code_aster (in wich case you would be building with salome_meca), or if you need the OpenTURNS integration (available in the EDF build of SALOME, not in the generic build).
We should provide a native Ubuntu 18.04 build soon, but I do not have or master the build scripts for that yet…
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
edit: path correction
checking whether home/iwan/salome_meca/V2019_univ/prerequisites/Python-365/bin/python3.6 version is >= "2.6"... no
configure: error: Python interpreter is too old