# Running pvpython fails: no module named paraview

**URL:** https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798
**Category:** ParaView Support
**Tags:** python
**Created:** [January 25, 2024, 7:22pm UTC](https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798 "2024-01-25T19:22:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cph](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/838e76/32.png) [@cph](https://discourse.paraview.org/u/cph)
#### Post date: [January 25, 2024, 7:22pm UTC](https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798/1 "2024-01-25T19:22:10Z")

</div>

Hi,  
I have the following problem:  
Under ParaView 5.11.2 (this installer: ParaView-5.11.2-Windows-Python3.9-msvc2017-AMD64.msi),  
pvpython fails with  
“ModuleNotFoundError: No module named ‘paraview’”  
on the line  
from paraview.simple import \*  
Is there something else I need to set up?  
Reading the documentation, I should not need any additional env variables when using pvpython  
With similar problems in this forum the recommendation was to use the binary install, but that is what I did.

---

<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 7, 2024, 1:55pm UTC](https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798/2 "2024-02-07T13:55:25Z")

</div>

Indeed, it should Just Work™. Does the `.zip` package work?

If not, I wonder if there’s something else interfering. Does `pvpython -dddd` have any useful info about the `paraview` module search?

---

<div class="post-metadata">

### Author: ![cph](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/838e76/32.png) [@cph](https://discourse.paraview.org/u/cph)
#### Post date: [February 16, 2024, 2:51pm UTC](https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798/3 "2024-02-16T14:51:36Z")

</div>

pvPython -dddd or --dddd only returns this.  
unknown option --dddd  
usage: C:/Program Files/ParaView 5.11.2/bin\vtkpython [option] … [-c cmd | -m mod | file | -] [arg] …  
Try `python -h’ for more information.  
I will try out the zip package as well.

---

<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 16, 2024, 3:29pm UTC](https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798/4 "2024-02-16T15:29:33Z")

</div>

Hrm. How about setting `PYTHONDEBUG=4` in the environment first?

---

<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 19, 2024, 11:14am UTC](https://discourse.paraview.org/t/running-pvpython-fails-no-module-named-paraview/13798/5 "2024-02-19T11:14:28Z")

</div>

Do you have a `.local` folder ?

@nicolas.vuaille @Francois_Mazen
