# Numpy module not found

**URL:** https://discourse.paraview.org/t/numpy-module-not-found/8979
**Category:** ParaView Support
**Tags:** python
**Created:** [February 16, 2022, 9:37am UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979 "2022-02-16T09:37:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Bushra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bushra/32/6954_2.png) [@Bushra](https://discourse.paraview.org/u/Bushra)
#### Post date: [February 16, 2022, 9:37am UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/1 "2022-02-16T09:37:15Z")

</div>

Hi!

I am trying to use annotate attribute data in paraview which requires numpy. When I try to use this utility, it gives me the following error:

```auto
Traceback (most recent call last):
  File "/apps/OpenFOAM/ParaView-5.9.1/lib/python3.8/site-packages/paraview/detail/annotation.py", line 22, in <module>
    raise RuntimeError("'numpy' module is not found. numpy is needed for "\
RuntimeError: 'numpy' module is not found. numpy is needed for this functionality to work. Please install numpy and try again.
ERROR: In /builds/gitlab-kitware-sciviz-ci/build/superbuild/paraview/src/VTKExtensions/FiltersPython/vtkAnnotateAttributeDataFilter.cxx, line 79
vtkAnnotateAttributeDataFilter (0x23d42a80): Failed to import `paraview.detail.annotation` module.

```

In my .bashrc file, I have added the following path but it doesn’t work:  
`export PATH="$PATH:/apps/OpenFOAM/ParaView-5.9.1/lib/python3.8/site-packages"`

I am also not able to use panda libraries along with paraview library paths on server. When I remove paraview paths from .bashrc file, panda libraries stop giving error. Please guide

Thanks!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 16, 2022, 2:49pm UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/2 "2022-02-16T14:49:08Z")

</div>

I’ll attempt to address your `numpy` question. It looks like you are using the ParaView binaries provided by OpenFOAM. What is strange is that it looks like they are basing their package off binaries Kitware provides (`ERROR: In /builds/gitlab-kitware-sciviz-ci/build/superbuild/`), but Kitware binaries for 5.9.1 on linux are built against Python 3.9, not Python 3.8, which is what your error message indicates. I would check with OpenFOAM support to see what they are providing. In the meantime, you can download and try ParaView 5.9.1 (or 5.10.0) from [www.paraview.org/download](http://www.paraview.org/download).

---

<div class="post-metadata">

### Author: ![Bushra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bushra/32/6954_2.png) [@Bushra](https://discourse.paraview.org/u/Bushra)
#### Post date: [February 17, 2022, 6:00am UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/3 "2022-02-17T06:00:37Z")

</div>

Thanks for your reply

No, the paraview I’m using is not the one that comes as third party apps with OpenFoam (OpenFoam is just the name of folder where it was installed). It was separately installed from [paraview.org](http://paraview.org) link provided as ParaView-5.9.1-MPI-Linux-Python3.8-64bit.tar.gz and then library paths were added to be able to use paraFoam command. I’m able to use panda libraries when I remove these paths added for paraview:

```auto
export PATH=/apps/OpenFOAM/ParaView-5.9.1/bin:$PATH

export LD_LIBRARY_PATH=/apps/OpenFOAM/ParaView-5.9.1/lib:$LD_LIBRARY_PATH

```

I believe some libraries are getting mixed up but I don’t know how to resolve this

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [February 17, 2022, 2:22pm UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/4 "2022-02-17T14:22:30Z")

</div>

NumPy is already part of the ParaView package. Why are you trying to use a different one?

> [@Bushra](#):
>
> ```auto
> export LD_LIBRARY_PATH=/apps/OpenFOAM/ParaView-5.9.1/lib:$LD_LIBRARY_PATH
> 
> ```

The `LD_LIBRARY_PATH` setting can certainly cause problems. Why was this added in the first place? How much does this setting affect?

---

<div class="post-metadata">

### Author: ![Bushra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bushra/32/6954_2.png) [@Bushra](https://discourse.paraview.org/u/Bushra)
#### Post date: [February 18, 2022, 7:33am UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/5 "2022-02-18T07:33:54Z")

</div>

Yes its part of paraview package but it was giving us numpy error so we installed numpy externally as well and included it’s path but the error persisted

As far as I know, `LD_LIBRARY_PATH` enables openfoam user to use paraFoam command and use paraview downloaded separately from [paraview.org](http://paraview.org)

---

<div class="post-metadata">

### Author: ![Bushra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bushra/32/6954_2.png) [@Bushra](https://discourse.paraview.org/u/Bushra)
#### Post date: [February 21, 2022, 6:32am UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/6 "2022-02-21T06:32:03Z")

</div>

Any leads on how to solve this? we are not able to process data properly without annotating it

---

<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: [February 23, 2022, 10:43am UTC](https://discourse.paraview.org/t/numpy-module-not-found/8979/7 "2022-02-23T10:43:44Z")

</div>

ParaView binary release do not support external python/numpy, nor using ParaView libraries provided by OpenFOAM. Do not do that.
