Failed to load libSketchPlugin.so

Hi,

I installed Universal version of v12.0 and trying to run a Python script on a server without a GUI. Basic test cases, such as creating elements, grouping them, meshing, and exporting, work fine. However, when I try to use a more complex script like the attached .py file, I encounter this error:

Failed to load libSketchPlugin.so: libGLU.so.1: cannot open shared object file: No such file or directory
ERROR:salomeContext:SystemExit 1 in method _sessionless.
ERROR : 23:42:48.404 : SystemExit 1 in method _sessionless. ( callsite is _startSalome of file “/server/home/id/SALOME-9.12.0/BINARIES-CO7/SALOME/bin/salome/salomeContext.py” at line 303 )

How can I import these dependencies? Any help would be appreciated.
script.py (36.5 KB)
sat check.txt (7.2 KB)

Regards,
said

Can you uncomment the following line in mesa_salome and salome files and try again both launchers (see README for further information):

    # uncomment the line to also embed GL libs (not recommended unless you do not have them installed on your system)
    # context.addToLdLibraryPath(out_dir_Path + r"/BINARIES-CO7/system_dep/gl")
1 Like

Many thaks Nabil, it solved the problem.