When launching salome 9.13 in ubuntu 22.04

I downloaded the salome 9.13 and when running ./salome in the terminal the error is showing
muhammed-shafeeh-k@muhammed-shafeeh-k-IdeaPad-Gaming-3-15ARH05:~/Downloads/SALOME-9.13.0-native-UB22.04-SRC-f3a71b2ee03695bdf7535807e017d5ea/SALOME-9.13.0-native-UB22.04-SRC$ ./salome
/home/muhammed-shafeeh-k/Downloads/SALOME-9.13.0-native-UB22.04-SRC-f3a71b2ee03695bdf7535807e017d5ea/SALOME-9.13.0-native-UB22.04-SRC/BINARIES-UB22.04/KERNEL/bin/salome/salomeContextUtils.py:184: SyntaxWarning: invalid escape sequence ‘[’
contains_list = re.findall(‘([[^]]*])’, elt)
/home/muhammed-shafeeh-k/Downloads/SALOME-9.13.0-native-UB22.04-SRC-f3a71b2ee03695bdf7535807e017d5ea/SALOME-9.13.0-native-UB22.04-SRC/BINARIES-UB22.04/KERNEL/bin/salome/salomeContextUtils.py:301:
UnboundLocalError: cannot access local variable ‘SalomeContextException’ where it is not associated with a value

how can I resolve this problem

Please read the readme file, use the tool to check if you have all the dependencies and then ./salome

this module is shipped by libpython3.10-minimal which is automatically installed if you install libpython3.10. Thus ensure that you do have the following packages installed.

libpython3.10-dev
libpython3.10-minimal
libpython3.10-stdlib
libpython3.10

Run sudo apt install command line.

If you’re not too familiar with Linux, you can instead use the universal binary which should run (see other threads in case you experience an issue)
Finaly, it would be nice if you could format your messages. It will ease the reading.

Regards.

thanks for your reply and I followed your instruction but again it showing same errors

can you do the following which will make things easier to follow:

mkdir $HOME/software
mv ~/Downloads/SALOME-9.13.0-native-UB22.04-SRC-f3a71b2ee03695bdf7535807e017d5ea//SALOME-9.13.0-native-UB22.04-SRC $HOME/software/

and then remove this directory: SALOME-9.13.0-native-UB22.04-SRC-f3a71b2ee03695bdf7535807e017d5ea

Then, run:

cd $HOME/software/SALOME-9.13.0-native-UB22.04-SRC
sat/sat config SALOME-9.13.0-native --check_system

If it fails:

  • share the output (formatted)
  • share values of PATH, LD_LIBRARY_PATH, PYTHONPATH environment variables (echo $PATH for instance)
  • upload a file which contains this command output
       apt list --installed > UB22.txt
    

the output when runningcd.txt (1.8 KB)

Can you try:

export  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
unset LD_LIBRARY_PATH

and rerun the sat/sat command?
In addition, share output of apt list --installed command line as well as output of python --version.

I did this command and the same error is showing

Traceback (most recent call last):
File “/home/muhammed-shafeeh-k/software/SALOME-9.13.0-native-UB22.04-SRC/sat/sat”, line 43, in
import src.logger as LOG
File “/home/muhammed-shafeeh-k/software/SALOME-9.13.0-native-UB22.04-SRC/sat/src/init.py”, line 43, in
from . import test_module
File “/home/muhammed-shafeeh-k/software/SALOME-9.13.0-native-UB22.04-SRC/sat/src/test_module.py”, line 33, in
import imp
ModuleNotFoundError: No module named ‘imp’

and python version 3.12.3
installedcommand.txt (180.7 KB)

You python version is not the nominal one on UB22.04.

You need either to use version 3.10 or simply run universal binary which should work (pay attention to README file rhough)

Regards

thanks for your support and I will check the universal binary.