SALOME

Hi everybody my name is Nicolò and I'm an italian mechanical engineer.

I'm trying to use salome 9.3  for Linux Ubuntu 18.04 64-bits on my Ubuntu 19.04 .

But when I launch it from the terminal this happens:

/home/gnicche/SALOME/salome:362: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
runSalome running on gnicche-HP-Laptop-15-db0xxx
INFO:MainThread:/home/gnicche/SALOME/BINARIES-UB18.04/KERNEL/bin/salome/PortManager.py[151]Problem loading PortManager file: /tmp/.salome_PortManager.cfg
INFO:PortManager:Problem loading PortManager file: /tmp/.salome_PortManager.cfg
Error when trying to access active network connections.
Traceback (most recent call last):
  File "/home/gnicche/SALOME/BINARIES-UB18.04/KERNEL/bin/salome/PortManager.py", line 111, in __isNetworkConnectionActiveOnPort
    p = Popen(cmd, stdout=PIPE, stderr=STDOUT)
  File "/home/gnicche/SALOME/BINARIES-UB18.04/Python/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/home/gnicche/SALOME/BINARIES-UB18.04/Python/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'netstat': 'netstat'
Searching for a free port for naming service: 2810 - OK
Searching Naming Service  + found in 0.1 seconds 
Searching /Kernel/Session in Naming Service  ++Warning, no type found for resource "localhost", using default value "single_machine"
+++++SALOME_Session_Server: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/home/gnicche/SALOME/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 172, in waitNSPID
    os.kill(thePID,0)
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gnicche/SALOME/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 633, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/gnicche/SALOME/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 578, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/home/gnicche/SALOME/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 174, in waitNSPID
    raise RuntimeError("Process %d for %s not found" % (thePID,theName))
RuntimeError: Process 6648 for /Kernel/Session not found


--- Error during Salome launch ---

Can someone help me?

Thank you 

Nicolò

grijan2_146307's picture

Hi Nicoló,

apparently there are two missing files: netstat and libOpenGL.so.0

netstat is found in net-tools package.

# sudo apt-get install net-tools

libOpenGL.so.0 is found in libopengl0 package

# sudo apt-get install -y libopengl0

Hope this helps.

ingegn.nicolo.rossi_149172's picture

Dear Grijan thank you very much:the problem was just what you said and now salome works perfectly!

Thank you again!

t.hamada1995_164564's picture

Hello,

I am struglling with almost same problem.

Hoewever ,even though I tried below

# sudo apt-get install net-tools

# sudo apt-get install -y libopengl0

the problem remained.

What should I do for this?

Terminal said

tsubasa@tsubasa-VirtualBox:~/SALOME/SALOME-9.5.0-UB18.04-SRC$ ./salome
runSalome running on tsubasa-VirtualBox
Searching for a free port for naming service: 2814 - OK
Searching Naming Service  + found in 0.1 seconds 
Searching /Kernel/Session in Naming Service  +SALOME_Session_Server: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory
Warning, no type found for resource "localhost", using default value "single_machine"
Traceback (most recent call last):
  File "/home/tsubasa/SALOME/SALOME-9.5.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 181, in waitNSPID
    os.kill(thePID,0)
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tsubasa/SALOME/SALOME-9.5.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 680, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/tsubasa/SALOME/SALOME-9.5.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 625, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/home/tsubasa/SALOME/SALOME-9.5.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 183, in waitNSPID
    raise RuntimeError("Process %d for %s not found" % (thePID,theName))
RuntimeError: Process 16137 for /Kernel/Session not found


--- Error during Salome launch ---
tsubasa@tsubasa-VirtualBox:~/SALOME/SALOME-9.5.0-UB18.04-SRC$ 
t.hamada1995_164564's picture

this can be solved by 

# sudo apt-get install -y libtbb2