[Paraview] [import error] Paraview Python on Windows
Jonas Asche
asche.j at googlemail.com
Fri May 1 08:32:40 EDT 2015
Hello,
I am using ParaView-4.2.0-Linux-64bit-gl on Kubuntu 12.04. . I have some
python scripts that create pictures and it is working fine.
Now i want to use those scripts on Windows 7 64bit. I downloaded
ParaView-4.2.0-Windows-64bit
and changed PythonPath and Path variable as described in this
<http://www.paraview.org/Wiki/ParaView/Python_Scripting>article:
On Linux i have the following settings (i set them in .bashrc):
PYTHONPATH:
/sfw/paraview/ParaView-4.2.0-Linux-64bit-gl/lib/paraview-4.2:
/sfw/paraview/ParaView-4.2.0-Linux-64bit-gl/lib/paraview-4.2/site-packages/:
/sfw/paraview/ParaView-4.2.0-Linux-64bit-gl/lib/paraview-4.2:
/sfw/paraview/ParaView-4.2.0-Linux-64bit-gl/lib/paraview-4.2/site-packages/vtk/:
LD_LIBRARY_PATH:
/sfw/paraview/ParaView-4.2.0-Linux-64bit-gl/lib/paraview-4.2/:
Now i set Pythonpath in Windows to:
(python location);
P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2;
P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2\site-packages\;
P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2;
P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2\site-packages\vtk\;
And path to
P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2\;
But when i try 'from paraview.simple import *'
i get the following error:
Error: Could not import vtkCommonComputationalGeometryPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2\site-packages\paraview\
simple.py", line 39, in <module>
import servermanager
File
"P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2\site-packages\paraview\
servermanager.py", line 48, in <module>
import paraview, re, os, os.path, new, sys, atexit, vtk
File
"P:\ParaView-4.2.0-Windows-64bit\lib\paraview-4.2\site-packages\paraview\
vtk\__init__.py", line 7, in <module>
from vtkCommonCorePython import *
ImportError: DLL load failed: The modul could not be found. (German: Das
angegebene Modul wurde nicht gefunden.)
I guess i am not using the proper path (i tried a whole bunch of different
paths), can you send me a path that is working for you?
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150501/a9ff74b4/attachment.html>
More information about the ParaView
mailing list