Missing imp.py module in SALOME-9.13.0-native-UB22.04-SRC for Ubuntu 22.04

When doing comand: sat/sat config SALOME-9.13.0-native --check_system
I got the following message

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

I have checked sat/src/test_module.py and find it contains ‘import imp’, but module imp.py can be found nowhere in /sat/src ! Nether can it be got with pip install imp, pip3 imp and apt get install imp. I guess if I have imp.py and put it to sat/src, it would work then. But, where can I find it or get it ?

Help would be appreciated

David

Hi,
either use the universal binary which embeds all prerequisites and then simply launch SALOME with run_salome.sh script, or ensure that your installed Python is the nominal one, namely python3.10
Indeed this python module is shipped with:

libpython3.10-minimal: /usr/lib/python3.10/imp.py

HTH

Unfortunately imp is deprecated since Python 3.4 and was removed from Python 3.12.
So maybe you upgraded your version of Python from the standard of Ubuntu 22 (which I think was 3.6.5).

Please have a look to sat repository on GitHub where the issue is fixed.