Hello,
I tried to build a program based on the Catalyst, the paraview and my program is ok to compile, but I got this error when I run the program:
./example/MandelbulbCatalystExample/MandelbulbDynamic: symbol lookup error: /home/zw241/cworkspace/build/build_paraview/lib64/libvtkWrappingPythonCore-pv5.8.so.1: undefined symbol: PyExc_ValueError
Then I tried to use the nm command to check the .so file:
$ nm /home/zw241/cworkspace/build/build_paraview/lib64/libvtkWrappingPythonCore-pv5.8.so.1 > nmresults.txt
$ cat nmresults.txt |grep PyExc_ValueError
U PyExc_ValueError
$ cat nmresults.txt |grep Py
U PyArg_ParseTuple
U PyArg_UnpackTuple
U PyBaseObject_Type
U PyBool_FromLong
U PyBool_Type
U PyBuffer_FillContiguousStrides
U PyBuffer_FillInfo
U PyBuffer_Release
U PyByteArray_Type
U PyBytes_AsString
U PyBytes_AsStringAndSize
U PyBytes_FromStringAndSize
U PyBytes_Size
U PyCFunction_NewEx
U PyCallable_Check
U PyDict_GetItem
U PyDict_New
...
It looks that PyExc_ValueError and some other necessary python type are not defined, and I am curious about this, I have enabled the paraview Catalyst when I built the paraview
$ cat CMakeCache.txt |grep Catalyst
Catalyst_LIB_DEPENDS:STATIC=general;VTK::CommonCore;general;ParaView::RemotingApplication;general;VTK::FiltersGeneral;general;VTK::vtksys;general;VTK::ParallelMPI;
PythonCatalyst_LIB_DEPENDS:STATIC=general;ParaView::Catalyst;general;VTK::PythonInterpreter;general;ParaView::PythonInitializer;general;VTK::ParallelCore;
//Enable the ParaView::Catalyst module.
VTK_MODULE_ENABLE_ParaView_Catalyst:STRING=YES
//Enable the ParaView::PythonCatalyst module.
VTK_MODULE_ENABLE_ParaView_PythonCatalyst:STRING=YES
//Enable the ParaView::RemotingLive module. Catalyst LIVE
vtkPVCatalystPython_LIB_DEPENDS:STATIC=general;ParaView::Catalyst;general;VTK::WrappingPythonCore;
vtkPVPythonCatalystPython_LIB_DEPENDS:STATIC=general;ParaView::PythonCatalyst;general;VTK::WrappingPythonCore;
//ADVANCED property for variable: VTK_MODULE_ENABLE_ParaView_Catalyst
VTK_MODULE_ENABLE_ParaView_Catalyst-ADVANCED:INTERNAL=1
//MODIFIED property for variable: VTK_MODULE_ENABLE_ParaView_Catalyst
VTK_MODULE_ENABLE_ParaView_Catalyst-MODIFIED:INTERNAL=ON
//STRINGS property for variable: VTK_MODULE_ENABLE_ParaView_Catalyst
VTK_MODULE_ENABLE_ParaView_Catalyst-STRINGS:INTERNAL=YES;WANT;DONT_WANT;NO;DEFAULT
//ADVANCED property for variable: VTK_MODULE_ENABLE_ParaView_PythonCatalyst
VTK_MODULE_ENABLE_ParaView_PythonCatalyst-ADVANCED:INTERNAL=1
//MODIFIED property for variable: VTK_MODULE_ENABLE_ParaView_PythonCatalyst
VTK_MODULE_ENABLE_ParaView_PythonCatalyst-MODIFIED:INTERNAL=ON
//STRINGS property for variable: VTK_MODULE_ENABLE_ParaView_PythonCatalyst
VTK_MODULE_ENABLE_ParaView_PythonCatalyst-STRINGS:INTERNAL=YES;WANT;DONT_WANT;NO;DEFAULT
This is the Python3 info in CMakeCache
$ cat CMakeCache.txt |grep Python3
Python3_LIBRARY_DEBUG:FILEPATH=
Python3_LIBRARY_RELEASE:FILEPATH=/projects/community/python/3.8.5/gc563/lib/libpython3.8.a
_Python3_EXECUTABLE:FILEPATH=/projects/community/python/3.8.5/gc563/bin/python3.8
_Python3_INCLUDE_DIR:PATH=/projects/community/python/3.8.5/gc563/include/python3.8
_Python3_LIBRARY_RELEASE:FILEPATH=/projects/community/python/3.8.5/gc563/lib/libpython3.8.a
//Details about finding Python3
FIND_PACKAGE_MESSAGE_DETAILS_Python3:INTERNAL=[/projects/community/python/3.8.5/gc563/lib/libpython3.8.a][/projects/community/python/3.8.5/gc563/include/python3.8][cfound components: Development ][v3.8(3.2)]
//ADVANCED property for variable: Python3_LIBRARY_DEBUG
Python3_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//MODIFIED property for variable: Python3_LIBRARY_DEBUG
Python3_LIBRARY_DEBUG-MODIFIED:INTERNAL=ON
//ADVANCED property for variable: Python3_LIBRARY_RELEASE
Python3_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
_Python3_DEVELOPMENT_SIGNATURE:INTERNAL=e2eb5da72d168ff534301bea65f0cb00
//ADVANCED property for variable: _Python3_EXECUTABLE
_Python3_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: _Python3_INCLUDE_DIR
_Python3_INCLUDE_DIR-ADVANCED:INTERNAL=1
_Python3_INTERPRETER_SIGNATURE:INTERNAL=4f8d5e5cc14b6010189102c56249c7e7
//ADVANCED property for variable: _Python3_LI
I also got the similar errors when I execute the pvbatch or pvpython:
$ ./pvbatch
./pvbatch: symbol lookup error: /cache/home/zw241/cworkspace/build/build_paraview/install/bin/../lib64/libvtkWrappingPythonCore-pv5.8.so.1: undefined symbol: PyExc_ValueError
$ ./pvpython
./pvpython: symbol lookup error: /cache/home/zw241/cworkspace/build/build_paraview/install/bin/../lib64/libvtkWrappingPythonCore-pv5.8.so.1: undefined symbol: PyExc_ValueError
Thanks a lot for your help!