[Paraview] Using python IDLE 3.6 with VTK and paraview.simple

Amine Aboufirass Amine.Aboufirass at deltares.nl
Thu Jul 20 09:03:12 EDT 2017


Dear all,

I would like to use paraview.simple with python 3.6 and IDLE. Currently when I import the library this is what I get:

>>> import paraview.simple
Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
  File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\vtk\vtkCommonCore.py", line 5, in <module>
    from .vtkCommonCorePython import *
ImportError: dynamic module does not define module export function (PyInit_vtkCommonCorePython)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<pyshell#72>", line 1, in <module>
    import paraview.simple
  File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\simple.py", line 43, in <module>
    from paraview import servermanager
  File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\servermanager.py", line 53, in <module>
    from paraview import vtk
  File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\vtk\__init__.py", line 7, in <module>
    from paraview.vtk.vtkCommonCore import *
  File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\vtk\vtkCommonCore.py", line 9, in <module>
    from vtkCommonCorePython import *
ImportError: dynamic module does not define module export function (PyInit_vtkCommonCorePython)

It appears that the module is defined but it has trouble with some of the VTK submodules. I tried to import VTK on its own but since the modules inside make use of the old print statement (no parentheses) there is not a way to do this free from error. How do I get this stuff to import properly?

Thanks,

Amine Aboufirass
DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170720/3cf4465e/attachment.html>


More information about the ParaView mailing list