[vtkusers] vtk40, w2k, python21, "Import Error: No module named vtkCommonPython"

Tom Parker tapadmin at swbell.net
Wed Aug 14 13:07:40 EDT 2002


Hello,

I've gotten this working on my machine by doing the following.

1. I've installed vtk using this scheme.

c:\python21 - python 2.1

c:\vtk40\vtk - source
c:\vtk40\lib - cmake generated makefiles with tcl and python wrappers turned
on and shared library generation on

2. I set PYTHONPATH = c:\vtk40\vtk\wrapping\python

3. I copied the release version of the vtk*.dll files from
c:\vtk40\lib\bin\release to c:\python21\dlls. Just putting
c:\vtk40\lib\bin\release in the path wasn't enough for python to find the
vtk imports.

No luck yet with debug dlls, I'm sure my lack of understanding of python/c++
interaction is the problem there.

Regards,
Tom

The only thing I don't have working yet is
> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Jason Ruiter
> Sent: Wednesday, August 14, 2002 10:42 AM
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] vtk40, w2k, python21, "Import Error: No module named
> vtkCommonPython"
>
>
> Greetings,
>
> I've seen this question before, but haven't seen an answer:
>
> I've installed the vtk40core, tcl, and python exe's from the kitware
> site.  I've also installed python2.1.  I set PYTHONPATH to
> c:\vtk40\wrapping\python.
>
> In python, I:
>
> import vtkpython
>
> I consistently get this error:
>
> Import Error: No module named vtkCommonPython
>
> I've putting c:\vtk40\lib\vtk in both PATH and PYTHONPATH.  I've tried
> copying the contents of c:\vtk40\lib\vtk to c:\vtk40\wrapping\python,
> but nothing seems to work.
>
> If anyone have any pointers, I'd appreciate it.
>
> Thanks
> Jason
>
>
> --
> Jason Ruiter
> Research Computer Engineer, Emerging Technologies Group
> Altarum Institute
>
> --
>
> _______________________________________________
> 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