I downloaded the Fedora 34 package of Salome 9.8.0 and since it is not compatible with Fedora 35 which I use I started a compilation of all the software components. After building / installing all requirements I tried to run Salome but I get the following error:
runSalome running on reynolds
Searching for a free port for naming service: 2820 - 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"
++Traceback (most recent call last):
File "/home/panos/Development/Salome/SALOME-9.8.0/INSTALL/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/panos/Development/Salome/SALOME-9.8.0/INSTALL/KERNEL/bin/salome/runSalome.py", line 694, in useSalome
clt = startSalome(args, modules_list, modules_root_dir)
File "/home/panos/Development/Salome/SALOME-9.8.0/INSTALL/KERNEL/bin/salome/runSalome.py", line 639, in startSalome
session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
File "/home/panos/Development/Salome/SALOME-9.8.0/INSTALL/KERNEL/bin/salome/orbmodule.py", line 183, in waitNSPID
raise RuntimeError("Process %d for %s not found" % (thePID,theName))
RuntimeError: Process 43380 for /Kernel/Session not found
--- Error during Salome launch ---
I have the relevant system log at the end of this message.
Using the command:
./sat config SALOME-9.8.0-native --check_system
produced a green list, no problems. I also tried to run ParaView as suggested in another thread:
salome context
paraview
And this indeed launched ParaView without any problems.
Hi,
just to ensure that we narrow down the issue, can you try the following:
run salome sessionless to check if it runs without Corba
if running without Corba helps to solve the issue, then can you share your /etc/hostname file, such that we can investigate further and discuss this recurrent issue.
if running in sessionless mode still shows an issue, then try the universal binary.
This command does exactly the same thing as running the application directly. The same error message. The universal version works fine but I would like to be able to also compile Code_Saturne with Salome support and that does not work with the universal version which is compiled on CentOS 7.
Regarding the compilation process on Fedora 35, I downloaded the Fedora 34 version and then I used sat:
I encountered some small issues with the PYQT_SIPS_DIR which was not detected so I manually set it to the appropriate path on my system on some .pyconf files.
When configuring the GUI module with sat I get the following:
./sat -t compile SALOME-9.8.0-native -f -p GUI  ✔  17:11:42
Executing the compile commands in the build directories of the products of the application SALOME-9.8.0-native
SOURCE directory = /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../SOURCES
BUILD directory = /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../BUILD
Compilation of GUI ........................... CONFIGURE build_dir = /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../BUILD/GUI
install_dir = /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../INSTALL/GUI
CFLAGS = -march=native -fPIC
> cmake -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig -DPYQT_SIPS_DIR=/usr/lib64/python3.10/site-packages/PyQt5/bindings -DSALOME_CMAKE_DEBUG=ON -DOpenGL_GL_PREFERENCE=GLVND -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../INSTALL/GUI /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../SOURCES/GUI
CMake Deprecation Warning at CMakeLists.txt:19 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib64/ccache/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building SALOMEGUI 9.8.0 from "unknown"
-- Looking for Salome KERNEL ...
-- ===> Reloading targets from LibBatch ...
-- ===> Reloading targets from HDF5 ...
-- Found Salome KERNEL: /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../INSTALL/KERNEL
-- Performing Test COMPILER_SUPPORTS_NO_OPERATOR_NAMES
-- Performing Test COMPILER_SUPPORTS_NO_OPERATOR_NAMES - Success
-- Setting C++ standard to 11
-- Setting PYTHONINTERP_ROOT_DIR to: /usr
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.2", minimum required is "3")
-- Setting PYTHONLIBS_ROOT_DIR to: /usr
-- Found PythonLibs: /usr/lib64/libpython3.10.so (found suitable version "3.10.2", minimum required is "3.10.2")
-- Python libs and interpreter versions are matching: 3.10.2
-- Looking for PThread...
-- Found PThread: /usr/include
-- PThread library: /usr/lib64/libpthread.so
-- Variable PTHREAD_ROOT_DIR was not explicitly defined. An installation was found anyway: /usr
-- PThread directory matches what was previously exposed by another prereq, all good!
-- Found SWIG: /usr/bin/swig (found version "4.0.2")
-- SWIG found directory matches what was specified in the SWIG_ROOT_DIR variable, all good!
-- SWIG directory matches what was previously exposed by another prereq, all good!
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Boost: /usr/include (found version "1.76.0") found components: filesystem regex system thread date_time chrono serialization atomic
-- Boost found directory matches what was specified in the BOOST_ROOT_DIR variable, all good!
-- Boost include dirs is: /usr/include
-- Found HDF5: hdf5::hdf5-shared (found version "1.10.3")
-- Found OmniORB: /usr/include (found version "4.2.4")
-- OmniORB found directory matches what was specified in the OMNIORB_ROOT_DIR variable, all good!
-- OmniORB directory matches what was previously exposed by another prereq, all good!
-- Found OmniORBPy: /usr/lib/python3.10/site-packages/omniidl_be
-- OmniORBPy found directory matches what was specified in the OMNIORBPY_ROOT_DIR variable, all good!
-- OmniORBPy directory matches what was previously exposed by another prereq, all good!
-- Looking for CppUnit ...
-- Checking for one of the modules 'cppunit'
-- Found CppUnit: /usr/include
-- CppUnit found directory matches what was specified in the CPPUNIT_ROOT_DIR variable, all good!
-- CppUnit directory matches what was previously exposed by another prereq, all good!
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen dot
-- Doxygen found directory matches what was specified in the DOXYGEN_ROOT_DIR variable, all good!
-- Doxygen directory matches what was previously exposed by another prereq, all good!
-- Found Graphviz: /usr/bin/dot
-- Graphviz found directory matches what was specified in the GRAPHVIZ_ROOT_DIR variable, all good!
-- Graphviz directory matches what was previously exposed by another prereq, all good!
-- Found Sphinx: /usr/bin/sphinx-build
-- Found Sphinx version 4.1.2
-- Sphinx found directory matches what was specified in the SPHINX_ROOT_DIR variable, all good!
-- Sphinx directory matches what was previously exposed by another prereq, all good!
-- Looking for SIP ...
-- Found SIP: /usr/include/python3.10
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Found OpenCASCADE in CONFIG mode!
-- OpenCASCADE found directory matches what was specified in the OPENCASCADE_ROOT_DIR variable, all good!
-- Found OpenCascade version: 7.5.3
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Variable OPENGL_ROOT_DIR was not explicitly defined. An installation was found anyway: /usr
-- Qt version is 5.15.2
-- Found SIP in CONFIG mode!
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Looking for PyQt5 ...
-- Found PyQt5: /usr/bin/pyuic5
-- PyQt5 found directory matches what was specified in the PYQT5_ROOT_DIR variable, all good!
-- Found Embree v3.12.2: /home/panos/Development/Salome/SALOME-9.8.0/INSTALL/embree/lib/libembree3.so.3.12.2
-- Found Open VKL v0.11.0: /home/panos/Development/Salome/SALOME-9.8.0/INSTALL/openVKL/lib/libopenvkl.so.0.11.0
-- Found ParaView in CONFIG mode!
-- ParaView found directory matches what was specified in the PARAVIEW_ROOT_DIR variable, all good!
-- Looking for VTK in the ParaView installation (PARAVIEW_ROOT_DIR exists and VTK_ROOT_DIR is not defined) ...
-- Setting VTK_DIR to: /home/panos/Development/Salome/SALOME-9.8.0/INSTALL/ParaView/lib/cmake/paraview-5.9/vtk
-- Found VTK in CONFIG mode!
-- VTK found directory matches what was specified in the VTK_ROOT_DIR variable, all good!
-- VTK version is 9.0
-- Looking for Qwt ...
-- Found Qwt: /usr/include/qt5/qwt
CMake Warning at /home/panos/Development/Salome/SALOME-9.8.0/SOURCES/CONFIGURATION/cmake/SalomeMacros.cmake:605 (MESSAGE):
Qwt was found, but not at the path given by the environment QWT_ROOT_DIR!
Is the variable correctly set? The two paths are: /usr/include/qt5 and:
/usr
Call Stack (most recent call first):
/home/panos/Development/Salome/SALOME-9.8.0/SOURCES/CONFIGURATION/cmake/FindSalomeQwt.cmake:26 (SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS)
CMakeLists.txt:203 (FIND_PACKAGE)
--
-- Optional packages - Detection report
-- ====================================
--
-- * CppUnit -> Found
-- * Doxygen -> Found
-- * Graphviz -> Found
-- * Sphinx -> Found
-- * ParaView -> Found
-- * VTK -> Found
-- * Qwt -> Found
--
--
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/src/GUI_PY/qtsalome.py
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/src/GUI_PY/__init__.py
CMake Warning (dev) at /usr/share/cmake/Modules/UseSWIG.cmake:775 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
src/PVServerService/ServiceLoader/CMakeLists.txt:65 (SWIG_ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake/Modules/UseSWIG.cmake:617 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/share/cmake/Modules/UseSWIG.cmake:888 (SWIG_ADD_SOURCE_TO_MODULE)
src/PVServerService/ServiceLoader/CMakeLists.txt:65 (SWIG_ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake/Modules/UseSWIG.cmake:775 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
src/SALOME_SWIG/CMakeLists.txt:86 (SWIG_ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake/Modules/UseSWIG.cmake:617 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/share/cmake/Modules/UseSWIG.cmake:888 (SWIG_ADD_SOURCE_TO_MODULE)
src/SALOME_SWIG/CMakeLists.txt:86 (SWIG_ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/doc/salome/tui/doxyfile
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/doc/salome/tui/static/header.html
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/doc/salome/gui/conf.py
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/doc/salome/gui/static/switchers.js
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/bin/VERSION
-- Setting C++ standard to 11
CMake Warning (dev) at tools/PyConsole/CMakeLists.txt:45 (OPTION):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp in CONFIG mode!
-- Found PythonLibs in CONFIG mode!
-- Python libs and interpreter versions are matching: 3.10.2
-- Qt version is 5.15.2
-- Found SIP in CONFIG mode!
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Found SIP in CONFIG mode!
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Found PyQt5 in CONFIG mode!
-- PyQt5 found directory matches what was specified in the PYQT5_ROOT_DIR variable, all good!
--
-- Optional packages - Detection report
-- ====================================
--
-- * CppUnit -> Found
-- * Doxygen -> Found
-- * Graphviz -> Found
-- * Sphinx -> Found
-- * ParaView -> Found
-- * VTK -> Found
-- * Qwt -> Found
-- * SalomeSIP -> Found
-- * SalomePyQt5 -> Found
--
--
-- Setting C++ standard to 11
-- Found PythonInterp in CONFIG mode!
-- Found PythonLibs in CONFIG mode!
-- Python libs and interpreter versions are matching: 3.10.2
-- Qt version is 5.15.2
--
-- Optional packages - Detection report
-- ====================================
--
-- * CppUnit -> Found
-- * Doxygen -> Found
-- * Graphviz -> Found
-- * Sphinx -> Found
-- * ParaView -> Found
-- * VTK -> Found
-- * Qwt -> Found
-- * SalomeSIP -> Found
-- * SalomePyQt5 -> Found
--
--
CMake Deprecation Warning at tools/CurvePlot/CMakeLists.txt:19 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Salome KERNEL ...
-- Found Salome KERNEL: /home/panos/Development/Salome/SALOME-9.8.0/salomeTools/../INSTALL/KERNEL
-- Setting C++ standard to 11
-- Found PythonInterp in CONFIG mode!
-- Found PythonLibs in CONFIG mode!
-- Python libs and interpreter versions are matching: 3.10.2
-- NumPy found : /usr/lib64/python3.10/site-packages/numpy/core/include
-- Scipy found : Version 1.7.3
-- Qt version is 5.15.2
-- Found SIP in CONFIG mode!
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Found PyQt5 in CONFIG mode!
-- PyQt5 found directory matches what was specified in the PYQT5_ROOT_DIR variable, all good!
--
-- Optional packages - Detection report
-- ====================================
--
-- * CppUnit -> Found
-- * Doxygen -> Found
-- * Graphviz -> Found
-- * Sphinx -> Found
-- * ParaView -> Found
-- * VTK -> Found
-- * Qwt -> Found
--
--
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/tools/CurvePlot/src/python/controller/utils.py
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/tools/CurvePlot/src/python/controller/utils_test.py
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/tools/CurvePlot/src/python/test/mockup/SalomePyQt_MockUp.py
-- Setting C++ standard to 11
-- Qt version is 5.15.2
-- Found PythonInterp in CONFIG mode!
-- Found PythonLibs in CONFIG mode!
-- Python libs and interpreter versions are matching: 3.10.2
-- Found SIP in CONFIG mode!
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Found SIP in CONFIG mode!
-- SIP found directory matches what was specified in the SIP_ROOT_DIR variable, all good!
-- Found PyQt5 in CONFIG mode!
-- PyQt5 found directory matches what was specified in the PYQT5_ROOT_DIR variable, all good!
--
-- Optional packages - Detection report
-- ====================================
--
-- * CppUnit -> Found
-- * Doxygen -> Found
-- * Graphviz -> Found
-- * Sphinx -> Found
-- * ParaView -> Found
-- * VTK -> Found
-- * Qwt -> Found
-- * SalomePythonInterp -> Found
-- * SalomePythonLibs -> Found
-- * SalomeSIP -> Found
-- * SalomePyQt5 -> Found
--
--
CMake Deprecation Warning at tools/RemoteFileBrowser/CMakeLists.txt:21 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Setting C++ standard to 11
-- Qt version is 5.15.2
-- Creation of /home/panos/Development/Salome/SALOME-9.8.0/BUILD/GUI/GUI_version.h
-- Configuring done
I will try on my side to setup a Fedora 35 environment and see if I can reproduce your issue.
By the way, I don’t know if you did it already, but before running sat config SALOME-9.8.0-native --check_system command, you need of course to patch PROJECT/products/salome_system.pyconf which is missing some bits and nd add right after “FD34” section, a new section dedicated to FD35:
I found the problem. For some reason, GUI is trying to load Qt plugins from the GUI/bin/salome directory instead of the Qt system directory. This can be fixed by adding to the salome launcher script the line:
Huh, that really saved my day. Thank you so much. I had familiar problem here in Ubuntu 22.04 (built from source using 9.8.0-native-UB20.04-SRC.tar.gz) and setting QT_QPA_PLATFORM_PLUGIN to the system directory solved the problem.