Not able to load OpenFOAM paraview reader PVFoamReader when using pvbatch or pvpython

Hi,

I’m developing some scripts to automate our post processing of OpenFOAM-5.0 simulations. The script should be running using pvbatch without opening the GUI.
As reader we use PVFoamReader distributed with OpenFOAM, since we have particles and the new barycentric tracking method in OpenFOAM is not supported in the OpenFOAMReader which comes with Praview.

In the paraview GUI the PVFoamReader is loaded automatically and additionally it is possible to load the reader in the python shell.
In pvbatch and pvpython PVFoamReader is not loaded automatically, when I try to load it with:
LoadPlugin(’/opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so’, remote=False, ns=globals())

I got the following error:
ERROR: In /opt/OpenFOAM/ThirdParty-dev/ParaView-5.5.0/ParaViewCore/ClientServerCore/Core/vtkPVPluginLoader.cxx, line 391
vtkPVPluginLoader (0x55fd904a83c0): /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so: undefined symbol: _ZN12pqRenderView16staticMetaObjectE

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/ParaView-5.5.0/lib/python2.7/site-packages/paraview/simple.py", line 1777, in LoadPlugin
    servermanager.LoadPlugin(filename, remote)
  File "/opt/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/ParaView-5.5.0/lib/python2.7/site-packages/paraview/servermanager.py", line 2284, in LoadPlugin
    raise RuntimeError ("Problem loading plugin %s" % (filename))
RuntimeError: Problem loading plugin /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so

Can someone please tell me what the problem is?
I know, that the reader comes with OpenFoam, but this issue is still paraview related.

What might be the cause, that a reader can be loaded in the python shell of the GUI but not in pvpython/pvbatch?
I would expect, that everything that works in the python shell is working in pvpython/pvbatch and vice versa.

Just to make sure, does the file exist ?

/opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so

Wich version of OpenFOAM are you using ?

Yes, the file exists and you can load it in the GUI via ManagePlugins (respectively it is loaded automatically), where it is working.
The recent OpenFOAM-dev version from the OF foundation, but it happens with 5.x also.

As reader we use PVFoamReader distributed with OpenFOAM, since we have particles and the new barycentric tracking method in OpenFOAM is not supported in the OpenFOAMReader which comes with Praview.

As a possible workaround, you could have a function object to write out the parcel positions in the usual (x,y,z …) format, which are possible for the native reader to read.

pvpython is not linked with libvtkpqCore, while this plugin seems to have been linked with it.

Since you are working with binaries, the only solution is to use LD_PRELOAD.

LD_PRELOAD=/opt/OpenFOAM/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.1.so.1 /opt/OpenFOAM/paraviewopenfoam54/bin/pvpython
1 Like

Thanks Mathieu,
it seems to be working.

Hi, am having the same issues with getting pvbatch scripts to run and load the PVFoamReader. I’m using OF5.0 and Paraview 5.4. As above I try the LoadPlugin command and return:

ERROR: .../vtkPVPluginLoader.ccx, line 388
vtkPVPluginLoader ... libPVFoamReader_SM.so: undefined symbol: _ZN12pqRenderView16staticMetaObjectE

If I follow your instructions and at Bash prompt enter: [I do not have a libvtkpqCore-pv5.4.1.so.1 so used pv5.1.so.1 ?]

LD_PRELOAD=/opt/openfoam5/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1 /opt/paraviewopenfoam54/bin/pvpython
ERROR: ld.so: object '/opt/openfoam5/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/opt/openfoam5/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2

Unsure how to fix. Where should the LD_PRELOAD statement be added ?

Appreciate any advice.

Britt

Can you run the following ?

ldd /opt/paraviewopenfoam54/bin/paraview
ldd /opt/paraviewopenfoam54/bin/paraview
	linux-vdso.so.1 =>  (0x00007ffdc0b29000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faf5e9bc000)
	/lib64/ld-linux-x86-64.so.2 (0x00007faf5ed86000)

ldd /opt/openfoam5/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1

ldd /opt/openfoam5/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1
ldd: /opt/openfoam5/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1: No such file or directory

I did default package installs and it is located in /opt/paraviewopenfoam54/lib/paraview-5.4/ [not as a subdirectory of openfoam5

worker@utemp:~/OpenFOAM/Runs-50/838PS2_V20H00Y00_QS_Clean_2$ ldd /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1

linux-vdso.so.1 =>  (0x00007fff828d1000)
libvtkpqWidgets-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpqWidgets-pv5.4.so.1 (0x00007f2e49b18000)
libvtkPVServerManagerApplication-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVServerManagerApplication-pv5.4.so.1 (0x00007f2e48878000)
libvtkPVServerManagerDefault-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVServerManagerDefault-pv5.4.so.1 (0x00007f2e48629000)
libvtkTestingRendering-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkTestingRendering-pv5.4.so.1 (0x00007f2e4840e000)
libQtHelp.so.4 => /usr/lib/x86_64-linux-gnu/libQtHelp.so.4 (0x00007f2e4817e000)
libQtTesting.so => /opt/paraviewopenfoam54/lib/paraview-5.4/libQtTesting.so (0x00007f2e47f05000)
libvtkPVClientServerCoreDefault-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVClientServerCoreDefault-pv5.4.so.1 (0x00007f2e47cd8000)
libvtkPVServerManagerRendering-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVServerManagerRendering-pv5.4.so.1 (0x00007f2e479b2000)
libvtkPVClientServerCoreRendering-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVClientServerCoreRendering-pv5.4.so.1 (0x00007f2e47605000)
libvtkViewsContext2D-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkViewsContext2D-pv5.4.so.1 (0x00007f2e473f9000)
libvtkPVVTKExtensionsRendering-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVVTKExtensionsRendering-pv5.4.so.1 (0x00007f2e470a2000)
libvtkGUISupportQt-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkGUISupportQt-pv5.4.so.1 (0x00007f2e46e63000)
libvtkInteractionWidgets-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkInteractionWidgets-pv5.4.so.1 (0x00007f2e469db000)
libvtkChartsCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkChartsCore-pv5.4.so.1 (0x00007f2e4668e000)
libvtkRenderingContext2D-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingContext2D-pv5.4.so.1 (0x00007f2e46459000)
libvtkPVServerManagerCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVServerManagerCore-pv5.4.so.1 (0x00007f2e460a3000)
libvtkPVServerImplementationCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVServerImplementationCore-pv5.4.so.1 (0x00007f2e45de4000)
libvtkPVClientServerCoreCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVClientServerCoreCore-pv5.4.so.1 (0x00007f2e45af3000)
libvtkPVVTKExtensionsCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVVTKExtensionsCore-pv5.4.so.1 (0x00007f2e4588a000)
libvtkIOImage-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOImage-pv5.4.so.1 (0x00007f2e4551a000)
libvtkPVCommon-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVCommon-pv5.4.so.1 (0x00007f2e452f5000)
libvtkClientServer-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkClientServer-pv5.4.so.1 (0x00007f2e450c9000)
libvtkRenderingCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingCore-pv5.4.so.1 (0x00007f2e44cc1000)
libvtkCommonExecutionModel-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonExecutionModel-pv5.4.so.1 (0x00007f2e44a0e000)
libvtkCommonDataModel-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonDataModel-pv5.4.so.1 (0x00007f2e44473000)
libvtkCommonSystem-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonSystem-pv5.4.so.1 (0x00007f2e4425d000)
libprotobuf.so => /opt/paraviewopenfoam54/lib/paraview-5.4/libprotobuf.so (0x00007f2e43f76000)
libvtksys-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtksys-pv5.4.so.1 (0x00007f2e43d29000)
libvtkCommonCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonCore-pv5.4.so.1 (0x00007f2e43745000)
libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f2e42a51000)
libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f2e4255e000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2e421dc000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e41e12000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2e41bfc000)
libvtkPVAnimation-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVAnimation-pv5.4.so.1 (0x00007f2e419a8000)
libvtkIOMovie-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOMovie-pv5.4.so.1 (0x00007f2e4179c000)
libvtkFiltersFlowPaths-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersFlowPaths-pv5.4.so.1 (0x00007f2e4151a000)
libvtkFiltersPython-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersPython-pv5.4.so.1 (0x00007f2e41312000)
libvtkFiltersTexture-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersTexture-pv5.4.so.1 (0x00007f2e410f7000)
libvtkFiltersVerdict-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersVerdict-pv5.4.so.1 (0x00007f2e40ed7000)
libvtkIOAMR-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOAMR-pv5.4.so.1 (0x00007f2e40c9e000)
libvtkIOParallelLSDyna-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOParallelLSDyna-pv5.4.so.1 (0x00007f2e40a93000)
libvtkIOLSDyna-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOLSDyna-pv5.4.so.1 (0x00007f2e40846000)
libvtkIOTRUCHAS-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOTRUCHAS-pv5.4.so.1 (0x00007f2e40630000)
libvtkIOTecplotTable-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOTecplotTable-pv5.4.so.1 (0x00007f2e40422000)
libvtkIOVPIC-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOVPIC-pv5.4.so.1 (0x00007f2e40215000)
libvtkIOXdmf2-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOXdmf2-pv5.4.so.1 (0x00007f2e3ffd0000)
libvtkImagingMorphological-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingMorphological-pv5.4.so.1 (0x00007f2e3fd4b000)
libvtkInteractionImage-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkInteractionImage-pv5.4.so.1 (0x00007f2e3fb34000)
libvtkPVVTKExtensionsCGNSReader-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVVTKExtensionsCGNSReader-pv5.4.so.1 (0x00007f2e3f8f0000)
libvtkPVVTKExtensionsH5PartReader-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVVTKExtensionsH5PartReader-pv5.4.so.1 (0x00007f2e3f6d3000)
libvtkPVVTKExtensionsPoints-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVVTKExtensionsPoints-pv5.4.so.1 (0x00007f2e3f4c7000)
libvtkFiltersPoints-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersPoints-pv5.4.so.1 (0x00007f2e3f1d7000)
libvtkRenderingLOD-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingLOD-pv5.4.so.1 (0x00007f2e3efc7000)
libvtkParaViewWebCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkParaViewWebCore-pv5.4.so.1 (0x00007f2e3edb7000)
libvtkPVServerImplementationRendering-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVServerImplementationRendering-pv5.4.so.1 (0x00007f2e3ebac000)
libvtkFiltersProgrammable-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersProgrammable-pv5.4.so.1 (0x00007f2e3e99f000)
libvtkDomainsChemistry-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkDomainsChemistry-pv5.4.so.1 (0x00007f2e3e73d000)
libvtkPVVTKExtensionsDefault-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPVVTKExtensionsDefault-pv5.4.so.1 (0x00007f2e3e274000)
libvtkIOInfovis-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOInfovis-pv5.4.so.1 (0x00007f2e3e002000)
libvtkFiltersParallelStatistics-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersParallelStatistics-pv5.4.so.1 (0x00007f2e3ddd4000)
libvtkIOEnSight-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOEnSight-pv5.4.so.1 (0x00007f2e3db62000)
libvtkIOImport-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOImport-pv5.4.so.1 (0x00007f2e3d923000)
libvtkIOPLY-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOPLY-pv5.4.so.1 (0x00007f2e3d70b000)
libvtkIOParallel-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOParallel-pv5.4.so.1 (0x00007f2e3d492000)
libvtkIOGeometry-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOGeometry-pv5.4.so.1 (0x00007f2e3d16a000)
libvtkIONetCDF-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIONetCDF-pv5.4.so.1 (0x00007f2e3cefb000)
libvtkIOParallelExodus-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOParallelExodus-pv5.4.so.1 (0x00007f2e3ccd9000)
libvtkIOExodus-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOExodus-pv5.4.so.1 (0x00007f2e3ca33000)
libvtkIOParallelXML-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOParallelXML-pv5.4.so.1 (0x00007f2e3c80a000)
libvtkInfovisCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkInfovisCore-pv5.4.so.1 (0x00007f2e3c525000)
libvtkFiltersGeneric-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersGeneric-pv5.4.so.1 (0x00007f2e3c2f2000)
libvtkFiltersHyperTree-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersHyperTree-pv5.4.so.1 (0x00007f2e3c0ba000)
libvtkIOExportOpenGL-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOExportOpenGL-pv5.4.so.1 (0x00007f2e3bea7000)
libvtkRenderingLabel-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingLabel-pv5.4.so.1 (0x00007f2e3bc1a000)
libvtkRenderingLIC-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingLIC-pv5.4.so.1 (0x00007f2e3b9b0000)
libvtkRenderingMatplotlib-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingMatplotlib-pv5.4.so.1 (0x00007f2e3b7a2000)
libvtkPythonInterpreter-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkPythonInterpreter-pv5.4.so.1 (0x00007f2e3b598000)
libvtkRenderingOSPRay-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingOSPRay-pv5.4.so.1 (0x00007f2e3b36b000)
libvtkRenderingSceneGraph-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingSceneGraph-pv5.4.so.1 (0x00007f2e3b157000)
libvtkRenderingParallel-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingParallel-pv5.4.so.1 (0x00007f2e3af15000)
libvtkFiltersParallel-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersParallel-pv5.4.so.1 (0x00007f2e3ac63000)
libvtkRenderingVolumeAMR-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingVolumeAMR-pv5.4.so.1 (0x00007f2e3aa55000)
libvtkFiltersAMR-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersAMR-pv5.4.so.1 (0x00007f2e3a82a000)
libvtkRenderingVolumeOpenGL-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingVolumeOpenGL-pv5.4.so.1 (0x00007f2e3a5b2000)
libvtkViewsCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkViewsCore-pv5.4.so.1 (0x00007f2e3a38b000)
libvtkWebCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkWebCore-pv5.4.so.1 (0x00007f2e3a16d000)
libvtkParallelCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkParallelCore-pv5.4.so.1 (0x00007f2e39f14000)
libvtkIOLegacy-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOLegacy-pv5.4.so.1 (0x00007f2e39c60000)
libvtkWebGLExporter-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkWebGLExporter-pv5.4.so.1 (0x00007f2e39a2a000)
libvtkInteractionStyle-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkInteractionStyle-pv5.4.so.1 (0x00007f2e397da000)
libvtkFiltersExtraction-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersExtraction-pv5.4.so.1 (0x00007f2e39508000)
libvtkFiltersStatistics-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersStatistics-pv5.4.so.1 (0x00007f2e39276000)
libvtkImagingFourier-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingFourier-pv5.4.so.1 (0x00007f2e39051000)
libvtkFiltersModeling-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersModeling-pv5.4.so.1 (0x00007f2e38dda000)
libvtkFiltersHybrid-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersHybrid-pv5.4.so.1 (0x00007f2e38af5000)
libvtkImagingGeneral-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingGeneral-pv5.4.so.1 (0x00007f2e38807000)
libvtkImagingSources-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingSources-pv5.4.so.1 (0x00007f2e385bf000)
libvtkRenderingAnnotation-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingAnnotation-pv5.4.so.1 (0x00007f2e38295000)
libvtkImagingColor-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingColor-pv5.4.so.1 (0x00007f2e38043000)
libvtkRenderingVolume-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingVolume-pv5.4.so.1 (0x00007f2e378cf000)
libvtkIOXML-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOXML-pv5.4.so.1 (0x00007f2e375fb000)
libvtkIOXMLParser-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOXMLParser-pv5.4.so.1 (0x00007f2e373e4000)
libvtkIOExport-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOExport-pv5.4.so.1 (0x00007f2e37176000)
libvtkIOCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkIOCore-pv5.4.so.1 (0x00007f2e36f0b000)
libvtkRenderingGL2PS-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingGL2PS-pv5.4.so.1 (0x00007f2e36cf2000)
libvtkRenderingContextOpenGL-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingContextOpenGL-pv5.4.so.1 (0x00007f2e36ad2000)
libvtkRenderingOpenGL-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingOpenGL-pv5.4.so.1 (0x00007f2e366e6000)
libvtkImagingHybrid-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingHybrid-pv5.4.so.1 (0x00007f2e36473000)
libvtkImagingCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkImagingCore-pv5.4.so.1 (0x00007f2e35ffc000)
libvtkRenderingFreeType-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkRenderingFreeType-pv5.4.so.1 (0x00007f2e35d51000)
libvtkFiltersSources-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersSources-pv5.4.so.1 (0x00007f2e35aac000)
libvtkFiltersGeneral-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersGeneral-pv5.4.so.1 (0x00007f2e355a8000)
libvtkCommonComputationalGeometry-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonComputationalGeometry-pv5.4.so.1 (0x00007f2e35372000)
libvtkCommonColor-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonColor-pv5.4.so.1 (0x00007f2e35155000)
libvtkFiltersGeometry-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersGeometry-pv5.4.so.1 (0x00007f2e34ece000)
libvtkFiltersCore-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkFiltersCore-pv5.4.so.1 (0x00007f2e34831000)
libvtkCommonMisc-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonMisc-pv5.4.so.1 (0x00007f2e34617000)
libvtkCommonTransforms-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonTransforms-pv5.4.so.1 (0x00007f2e343e6000)
libvtkCommonMath-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkCommonMath-pv5.4.so.1 (0x00007f2e341c3000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e33eba000)
libvtkpugixml-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpugixml-pv5.4.so.1 (0x00007f2e33c8b000)
libQtSql.so.4 => /usr/lib/x86_64-linux-gnu/libQtSql.so.4 (0x00007f2e33a4a000)
libQtNetwork.so.4 => /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4 (0x00007f2e336f5000)
libQtCLucene.so.4 => /usr/lib/x86_64-linux-gnu/libQtCLucene.so.4 (0x00007f2e333f6000)
libvtkjsoncpp-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkjsoncpp-pv5.4.so.1 (0x00007f2e331c3000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f2e32f4f000)
libvtkWrappingPython27Core-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkWrappingPython27Core-pv5.4.so.1 (0x00007f2e32d17000)
libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007f2e32789000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2e3244f000)
libvtkzlib-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkzlib-pv5.4.so.1 (0x00007f2e32234000)
libvtklz4-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtklz4-pv5.4.so.1 (0x00007f2e3201c000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e31dff000)
libvtkDICOMParser-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkDICOMParser-pv5.4.so.1 (0x00007f2e31be4000)
libvtkmetaio-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkmetaio-pv5.4.so.1 (0x00007f2e31944000)
libvtkpng-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpng-pv5.4.so.1 (0x00007f2e31715000)
libvtktiff-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtktiff-pv5.4.so.1 (0x00007f2e3149c000)
libvtkjpeg-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkjpeg-pv5.4.so.1 (0x00007f2e31267000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e31063000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f2e30e20000)
libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f2e30c07000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2e308f6000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2e306d1000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2e304b7000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2e3020d000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f2e2ffba000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f2e2fdb2000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f2e2fb98000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f2e2f988000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f2e2f77e000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f2e2f56c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2e2f364000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2e4a132000)
libvtkoggtheora-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkoggtheora-pv5.4.so.1 (0x00007f2e2f11f000)
libvtkverdict-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkverdict-pv5.4.so.1 (0x00007f2e2eee7000)
libvtkhdf5-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkhdf5-pv5.4.so.1 (0x00007f2e2e9e8000)
libvtkVPIC-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkVPIC-pv5.4.so.1 (0x00007f2e2e7ce000)
libvtkxdmf2-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkxdmf2-pv5.4.so.1 (0x00007f2e2e55b000)
libvtkcgns-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkcgns-pv5.4.so.1 (0x00007f2e2e296000)
libvtkNetCDF-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkNetCDF-pv5.4.so.1 (0x00007f2e2df88000)
libvtklibxml2-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtklibxml2-pv5.4.so.1 (0x00007f2e2dc02000)
libvtknetcdf_c++.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtknetcdf_c++.so.1 (0x00007f2e2d9df000)
libvtkexoIIc-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkexoIIc-pv5.4.so.1 (0x00007f2e2d796000)
libvtkgl2ps-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkgl2ps-pv5.4.so.1 (0x00007f2e2d57d000)
libospray.so.0 => /opt/paraviewopenfoam54/lib/paraview-5.4/libospray.so.0 (0x00007f2e2d0bb000)
libvtkalglib-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkalglib-pv5.4.so.1 (0x00007f2e2ce96000)
libvtkexpat-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkexpat-pv5.4.so.1 (0x00007f2e2cc67000)
libvtklibharu-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtklibharu-pv5.4.so.1 (0x00007f2e2c9a2000)
libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f2e2c739000)
libvtkfreetype-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkfreetype-pv5.4.so.1 (0x00007f2e2c4aa000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f2e2c281000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f2e2c07e000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f2e2be7b000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f2e2bc74000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f2e2ba71000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f2e2b840000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f2e2b63d000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f2e2b437000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f2e2b235000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f2e2b01c000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f2e2ae17000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2e2abf5000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f2e2a9ef000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f2e2a7dd000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f2e2a5da000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2e2a3d6000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2e2a166000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f2e29f5e000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f2e29d59000)
libvtkhdf5_hl-pv5.4.so.1 => /opt/paraviewopenfoam54/lib/paraview-5.4/libvtkhdf5_hl-pv5.4.so.1 (0x00007f2e29b27000)
libospray_common.so.0 => /opt/paraviewopenfoam54/lib/paraview-5.4/libospray_common.so.0 (0x00007f2e4a2b3000)
libembree.so.2 => /opt/paraviewopenfoam54/lib/paraview-5.4/libembree.so.2 (0x00007f2e2750c000)
libtbb.so.2 => /opt/paraviewopenfoam54/lib/paraview-5.4/libtbb.so.2 (0x00007f2e272b4000)
libtbbmalloc.so.2 => /opt/paraviewopenfoam54/lib/paraview-5.4/libtbbmalloc.so.2 (0x00007f2e27060000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2e26e5a000)

LD_PRELOAD=/opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1 /opt/paraviewopenfoam54/bin/pvpython
Should work then.

Where should that directive be placed? In the python script or as an export in a .bashrc?

this is a bash command to run pvpython, usually done in the terminal.

thank you for your help. All appears to be working now!

Hello,

I’ve used the same steps that you mentioned for Britton Ward since my paraview installation is same with him.

LD_PRELOAD=/opt/paraviewopenfoam54/lib/paraview-5.4/libvtkpqCore-pv5.4.so.1 /opt/paraviewopenfoam54/bin/pvpython

I added this command into my .bashrc. When I open a terminal window it automatically opens python interface like this:

BlockquotePython 2.7.6 (default, Jun 22 2015, 18:01:27)
[GCC 4.8.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

What should I do in this state? Can you give me any help?

Batu

Why would you put it in your .bashrc ? just run the command when you need to use pvpython.

I’m new to Linux so I thought I had to put it in .bashrc. The problem is when I wrote the command

Python 2.7.6 (default, Jun 22 2015, 18:01:27)
[GCC 4.8.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

It just opens this in terminal. Then I can’t use the command pvpyhton?

from paraview.simple import *

https://www.paraview.org/Wiki/ParaView/Python_Scripting