Project

General

Profile

How to install Paraview alongside VTK?

nona - about 4 years ago -

hello! In the past, I have had Paraview and VTK living harmoniously. They are now rivals in the game of pacman. I would like to know why that is and if there is a way to have them both, because I need to use them at the same time. When I only have Paraview installed, I cannot load VTK in Python:

>>> import vtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/vtk.py", line 30, in <module>
    all_m = importlib.import_module('vtkmodules.all')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.8/site-packages/vtkmodules/all.py", line 53, in <module>
    from .vtkIONetCDF import *
ImportError: /usr/lib/python3.8/site-packages/vtkmodules/../../../libvtkIONetCDF-pv5.8.so.1: undefined symbol: nc_get_vara_schar

and I can obviously not run paraview when vtk is installed (I am running OpenRC, x86-64, Python 3.8). Thanks!


Replies (3)

RE: How to install Paraview alongside VTK? - theova - about 4 years ago -

There is an open issue on paraview: https://gitlab.kitware.com/paraview/paraview/issues/18751.

I'm neither using paraview nor VTK. Without having a closer look, I think this should be fixed upstream. Either in paraview/VTK (preferrably) or in Arch (since both packages come from Arch).

RE: How to install Paraview alongside VTK? - bill-auger - almost 4 years ago -

there is an open ticket on the bug tracker about this

https://labs.parabola.nu/issues/2166

you can click "watch" to receive emails of any updates

RE: How to install Paraview alongside VTK? - nona - almost 4 years ago -

Oh! Thanks! Because of this, I was able to find paraview-opt in the AUR repositories, which basically installs paraview in /opt. Now I have both vtk and paraview. Thanks!

    (1-3/3)