# Error 'No module named \_paraview\_modules\_static' when use python

**URL:** https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500
**Category:** ParaView Support
**Tags:** python
**Created:** [December 13, 2023, 1:09pm UTC](https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500 "2023-12-13T13:09:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Magicb](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Magicb](https://discourse.paraview.org/u/Magicb)
#### Post date: [December 13, 2023, 1:09pm UTC](https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500/1 "2023-12-13T13:09:43Z")

</div>

Hello everyone  
I try to use paraview 5.10.0 with python in ubuntu 18.04. When I try to run my py file(contain from paraview.simple import \*)  
It happened an error

chengben@chengben-virtual-machine:~/quarter-qiao$ python bin2pngALL1.py  
Traceback (most recent call last):  
File “bin2pngALL1.py”, line 11, in   
from paraview.simple import \*  
File “/home/chengben/paraview-5.10.0/lib/python3.9/site-packages/paraview/ **init**.py”, line 259, in   
import \_paraview\_modules\_static  
ImportError: No module named \_paraview\_modules\_static

And environment in bashrc file is showed

export PATH=$PATH:/home/chengben/paraview-5.10.0/bin  
export PYTHONPATH=$PYTHONPATH:/home/chengben/paraview-5.10.0/lib/python3.9/site-packages  
export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/home/chengben/paraview-5.10.0/lib

I would appreciate if you could help me know what is my mistake and how I can solve 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: [December 13, 2023, 1:11pm UTC](https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500/2 "2023-12-13T13:11:48Z")

</div>

Please try with ParaView 5.12-RC1

---

<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: [December 13, 2023, 1:23pm UTC](https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500/3 "2023-12-13T13:23:57Z")

</div>

The `python` on Ubuntu 18.04 seems to be Python 3.6. ParaView 5.10 ships with Python 3.9. You’ll need to match the major/minor Python version to use ParaView’s Python code from outside of `pvpython`.

---

<div class="post-metadata">

### Author: ![Magicb](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Magicb](https://discourse.paraview.org/u/Magicb)
#### Post date: [December 15, 2023, 2:53am UTC](https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500/5 "2023-12-15T02:53:31Z")

</div>

Thank you. I follow Ben’s advise and it works.

---

<div class="post-metadata">

### Author: ![Magicb](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Magicb](https://discourse.paraview.org/u/Magicb)
#### Post date: [December 15, 2023, 2:56am UTC](https://discourse.paraview.org/t/error-no-module-named-paraview-modules-static-when-use-python/13500/6 "2023-12-15T02:56:16Z")

</div>

Thanks, I just change my ParaView version to the old one to use my Python2 and it works.
