paraview-python: Could not import vtkCommonComputationalGeometry

I try to run a python script ( 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


I get the following error message:

    > Traceback (most recent call last):
    > File "", 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 is but it does not work.

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


I removed vtk with apt but it is still here.

Do you know how I could run my script?

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.

It works fine! Thank you very much!

1 Like