# Running a python code\_TTK

**URL:** https://discourse.paraview.org/t/running-a-python-code-ttk/12066
**Category:** ParaView Support
**Tags:** python
**Created:** [May 10, 2023, 9:49pm UTC](https://discourse.paraview.org/t/running-a-python-code-ttk/12066 "2023-05-10T21:49:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kokebdese](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kokebdese/32/11182_2.png) [@kokebdese](https://discourse.paraview.org/u/kokebdese)
#### Post date: [May 10, 2023, 9:49pm UTC](https://discourse.paraview.org/t/running-a-python-code-ttk/12066/1 "2023-05-10T21:49:23Z")

</div>

Hi,  
As stated in the [Topology toolkit website](https://topology-tool-kit.github.io/examples/imageProcessing/#python-code), following the procedure I tried to run the Image processing example using python from the ttk-data directory. However, I got an error saying " ModuleNotFoundError: No module named ‘paraview’" Any help? Thanks

 ![imageprocessing](https://discourse.paraview.org/uploads/default/original/2X/d/ddea642ffa66b784dd0c0f37d80cdc051597ee0e.png)  
 ![imagepython](https://discourse.paraview.org/uploads/default/original/2X/8/882c32eccee1838be965c670d052ae0182e88a90.png)

---

<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: [May 11, 2023, 6:50am UTC](https://discourse.paraview.org/t/running-a-python-code-ttk/12066/2 "2023-05-11T06:50:07Z")

</div>

@Charles_Gueunet

---

<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: [May 11, 2023, 7:28am UTC](https://discourse.paraview.org/t/running-a-python-code-ttk/12066/3 "2023-05-11T07:28:35Z")

</div>

Hi @kokebdese ,

How do you install paraview ?

---

<div class="post-metadata">

### Author: ![kokebdese](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kokebdese/32/11182_2.png) [@kokebdese](https://discourse.paraview.org/u/kokebdese)
#### Post date: [May 11, 2023, 7:36am UTC](https://discourse.paraview.org/t/running-a-python-code-ttk/12066/4 "2023-05-11T07:36:22Z")

</div>

@mwestphal  
Hi,  
I installed from the source. BZW this works for me: `$ paraview --state=states/imageProcessing.pvsm`. But, when it comes to the python code, not. Thanks

---

<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: [May 11, 2023, 7:37am UTC](https://discourse.paraview.org/t/running-a-python-code-ttk/12066/5 "2023-05-11T07:37:31Z")

</div>

> [@kokebdese](#):
>
> I installed from the source

Please try with the binary package provided here: [https://www.paraview.org/download/](https://www.paraview.org/download/)
