# OS Error with undefined symbol in MeshReader\_SM.so

**URL:** https://discourse.paraview.org/t/os-error-with-undefined-symbol-in-meshreader-sm-so/7989
**Category:** ParaView Support
**Tags:** python
**Created:** [September 14, 2021, 8:07am UTC](https://discourse.paraview.org/t/os-error-with-undefined-symbol-in-meshreader-sm-so/7989 "2021-09-14T08:07:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rasunag27](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rasunag27/32/4636_2.png) [@rasunag27](https://discourse.paraview.org/u/rasunag27)
#### Post date: [September 14, 2021, 8:07am UTC](https://discourse.paraview.org/t/os-error-with-undefined-symbol-in-meshreader-sm-so/7989/1 "2021-09-14T08:07:56Z")

</div>

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:

```auto
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:

```auto
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:

```auto
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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 17, 2021, 8:15am UTC](https://discourse.paraview.org/t/os-error-with-undefined-symbol-in-meshreader-sm-so/7989/2 "2021-09-17T08:15:31Z")

</div>

Not a ParaView issue, ask on OpenFOAM forums.
