CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] OS Error in libPVblockMeshReader_SM.so with undefined symbol (https://www.cfd-online.com/Forums/paraview/238475-os-error-libpvblockmeshreader_sm-so-undefined-symbol.html)

sunagra27 September 15, 2021 01:21

OS Error in libPVblockMeshReader_SM.so with undefined symbol
 
Dear all,


I am working with OpenFOAM v5 and I am trying to automate the simulations based on input request provided to flask.


For this purpose, I have created a python file for flask and have provided the OpenFOAM function which needs to run by using pvpython. Manually, only with python it will run perfectly without any error.


But, with flask when I run the python file, I am getting this below error:
Code:

OSError: /opt/openfoam5/platforms/linux64GccDPInt32Opt/lib/paraview-5.4/libPVblockMeshReader_SM.so: undefined symbol: _ZN12pqRenderView16staticMetaObjectE
I tried looking at similar post where the solution was mentioned as to work with LD_Preload as:
Code:

LD_PRELOAD=/opt/OpenFOAM/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.1.so.1 /opt/OpenFOAM/paraviewopenfoam54/bin/pvpython
But it gives the following error from LD_Preload:
Code:

ERROR: ld.so: object '/opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.1.so.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
How to overcome this error.?




Regards,
Sunag R A.


All times are GMT -4. The time now is 16:22.