# Issues with running pvpython

**URL:** https://discourse.paraview.org/t/issues-with-running-pvpython/7900
**Category:** ParaView Support
**Tags:** vtk, python
**Created:** [September 1, 2021, 8:26am UTC](https://discourse.paraview.org/t/issues-with-running-pvpython/7900 "2021-09-01T08:26:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![harikaushik10](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@harikaushik10](https://discourse.paraview.org/u/harikaushik10)
#### Post date: [September 1, 2021, 8:26am UTC](https://discourse.paraview.org/t/issues-with-running-pvpython/7900/1 "2021-09-01T08:26:54Z")

</div>

Ubuntu Version - 18.04  
Python Version - 2.7.17  
Python3 Version - 3.6.9  
VTK version -

I’m trying to use pvpython to run a python script to write out .pvd and .vtu files, however pvpython opens with the 2.7.17 version and this causes the “import vtk” in my script to segmentation fault (core dumped). I have the following strategies to mitigate my problem, but however would need some support to do them:

1. Import vtk using “from paraview import vtk” command, However this leads to less classes inside vtk module of paraview. So I could update the vtk module inside the paraview directory to include the classes that I need (vtkXMLUnstructuredGridWriter etc.)
2. Install a higher version of Paraview like 5.8 so that it natively uses python3 as the interpretor for pvpython.
3. Change the native python interpreter of pvpython as python3.

Kindly guide  
Regards  
Kaushik

---

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [September 1, 2021, 8:50am UTC](https://discourse.paraview.org/t/issues-with-running-pvpython/7900/2 "2021-09-01T08:50:36Z")

</div>

Have you tried to download and unpack [ParaView-5.9.1-MPI-Linux-Python3.8-64bit.tar.gz](https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.9&type=binary&os=Linux&downloadFile=ParaView-5.9.1-MPI-Linux-Python3.8-64bit.tar.gz) from [https://www.paraview.org/download/](https://www.paraview.org/download/) and then use that version?

---

<div class="post-metadata">

### Author: ![harikaushik10](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@harikaushik10](https://discourse.paraview.org/u/harikaushik10)
#### Post date: [September 1, 2021, 9:13am UTC](https://discourse.paraview.org/t/issues-with-running-pvpython/7900/3 "2021-09-01T09:13:57Z")

</div>

Yes, but when I call pvpython it doesnt execute.

---

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [September 1, 2021, 9:27am UTC](https://discourse.paraview.org/t/issues-with-running-pvpython/7900/4 "2021-09-01T09:27:54Z")

</div>

You’ll have to run it like

```nohighlight
/wherever/you/installed/it/ParaView-5.9.1-MPI-Linux-Python3.8-64bit/bin/pvpython

```

or add `/wherever/you/installed/it/ParaView-5.9.1-MPI-Linux-Python3.8-64bit/bin` to your search path.

---

<div class="post-metadata">

### Author: ![harikaushik10](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@harikaushik10](https://discourse.paraview.org/u/harikaushik10)
#### Post date: [September 1, 2021, 9:34am UTC](https://discourse.paraview.org/t/issues-with-running-pvpython/7900/5 "2021-09-01T09:34:26Z")

</div>

Sorry but could you elaborate on “search path”. I’m kind of new to Linux environment.  
Thanks again.
