[Paraview] Problem importing vtk inside pvpython

Ganesh Vijayakumar ganesh.iitm at gmail.com
Thu May 5 11:40:07 EDT 2016


Hello,

  I'm having trouble importing vtk inside pvpython while it imports just
fine inside python. I installed paraview-python with paraview-5.0.1 using
debian stretch. Any ideas on why this might be the case?

ganesh at tesla:~$ pvpython
Python 2.7.10 (default, Jul  1 2015, 10:54:53)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/vtk/__init__.py", line 39, in
<module>
    from vtkCommonCore import *
  File "/usr/lib/python2.7/dist-packages/vtk/vtkCommonCore.py", line 1, in
<module>
    from vtkCommonCorePython import *
TypeError: value must be a class or type
>>>
>>>
Segmentation fault
ganesh at tesla:~$ python
Python 2.7.10 (default, Jul  1 2015, 10:54:53)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
>>>

ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160505/fd5e39a2/attachment.html>


More information about the ParaView mailing list