# paraview-python: Could not import vtkCommonComputationalGeometry

**URL:** https://discourse.paraview.org/t/paraview-python-could-not-import-vtkcommoncomputationalgeometry/805
**Category:** ParaView Support
**Tags:** python
**Created:** [October 28, 2018, 4:35pm UTC](https://discourse.paraview.org/t/paraview-python-could-not-import-vtkcommoncomputationalgeometry/805 "2018-10-28T16:35:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cdoucet](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/779978/32.png) [@cdoucet](https://discourse.paraview.org/u/cdoucet)
#### Post date: [October 28, 2018, 4:35pm UTC](https://discourse.paraview.org/t/paraview-python-could-not-import-vtkcommoncomputationalgeometry/805/1 "2018-10-28T16:35:58Z")

</div>

I try to run a python script (test.py) containing this line only:

```
`from paraview.simple import *`

```

I want to use the last version of paraview. So, I downloaded it from the official webpage and I uncompressed the corresponding archive into a folder, say /home/paraview.

If I do not anything more than running the script with

```
`python test.py`

```

I get the following error message:

```
    > Traceback (most recent call last):
    > File "test.py", line 2, in <module>
    > from paraview.simple import *
    > ModuleNotFoundError: No module named 'paraview

```

So, I set my PYTHONPATH like this:

```
`export PYTHONPATH=/home/paraview/lib/python2.7/site-packages:$PYTHONPATH`

```

Then, I rerun my script and I get a different error message:

```
> Error: Could not import vtkCommonComputationalGeometry
> Segmentation fault

```

I tried to set LD\_LIBRARY\_PATH:

```
`export LD_LIBRARY_PATH=/home/paraview/lib`

```

where vtkCommonComputationalGeometry.so is but it does not work.

Furthermore, if I try to locate vtkCommonComputationalGeometry, I find it in another location:

```
`/usr/lib/x86_64-linux-gnu/libvtkCommonComputationalGeometry-6.2.so`

```

I removed vtk with apt but it is still here.

Do you know how I could run my script?

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/banesullivan/32/11714_2.png) [@banesullivan](https://discourse.paraview.org/u/banesullivan)
#### Post date: [October 28, 2018, 5:47pm UTC](https://discourse.paraview.org/t/paraview-python-could-not-import-vtkcommoncomputationalgeometry/805/2 "2018-10-28T17:47:38Z")

</div>

There are a number of libraries you will need to add to your path in order to use `paraview` in your standard Python environment. I haven’t had much luck doing that in that past…

If you downloaded the prebuilt ParaView, then there should be a **pvpython** executable that you should use as your Python interpreter. This is usually under the `bin/` directory.

---

<div class="post-metadata">

### Author: ![cdoucet](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/779978/32.png) [@cdoucet](https://discourse.paraview.org/u/cdoucet)
#### Post date: [November 5, 2018, 4:31pm UTC](https://discourse.paraview.org/t/paraview-python-could-not-import-vtkcommoncomputationalgeometry/805/3 "2018-11-05T16:31:41Z")

</div>

It works fine! Thank you very much!
