[vtkusers] vtk4/python win32 installation

David Gobbi dgobbi at irus.rri.ca
Fri Feb 15 18:45:37 EST 2002


Hi Elvis,

Just try try loading vtkCommonPython into python by itself
and see if you get a more detailed error description:

>>> from vtkCommonPython import *

Perhaps it will tell you that the dll "vtkCommon.dll" could not
be found, which would be because LD_LIBRARY_PATH doesn't mean
anything on Win32.

Try PATH=c:\Program Files\vtk40\lib\vtk instead (Windows looks
for both .exe files and .dll files under the PATH).

Cheers,

 - David

--
  David Gobbi, MSc                       dgobbi at irus.rri.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Fri, 15 Feb 2002, Chen, Elvis wrote:

> Greetings,
>
> Can someone please help in in vtk4/python installation
> on a wintel machine.  From public.kitware.com/vtk, I
> downloaded vtk40Core.exe/vtk40Cpp.exe/vtk40Python.exe
> and installed them.  I also downloaded python 2.1.2
> (which I assumed is the version that vtk40
> pre-compiled version binds to) and installed it
> accordingly.  I set the following 2 environment
> variables:
>
> LD_LIBRARY_PATH c:\Program Files\vtk40\lib\vtk
> PYTHONPATH c:\Program Files\vtk40\lib\vtk;c:\Program
> Files\vtk\Wrapping\Python
>
> However, when I try to import vtk library into python
> using:
>
> from vtkpython import *
>
> I get the following message:
>
> Import Error: No module named vtkCommonPython
>
> Due to the lack of documentation, can someone please
> tell me what am I missing in my setup?
>
> thanks in advance,
>
> ______________________________________________________________________
> Web-hosting solutions for home and business! http://website.yahoo.ca
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list