[Paraview] [import error] Paraview Python on Windows

Ben Boeckel ben.boeckel at kitware.com
Fri May 1 09:12:09 EDT 2015


On Fri, May 01, 2015 at 14:32:40 +0200, Jonas Asche wrote:
> 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:

Are you running python or pvpython?

> 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/:

I assume this is working?

> 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\;

I think this is supposed to be 'bin', not 'lib\paraview-4.2' since the
DLL files live there on Windows.

> 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?

Using 'bin' seems to work here.

--Ben


More information about the ParaView mailing list