[vtkusers] py2exe and VTK

Gib Bogle g.bogle at auckland.ac.nz
Tue Mar 16 01:37:41 EDT 2010


This is probably more of a Python issue than a VTK issue, and I have posted 
queries to PyQt and py2exe boards, but this board is much more active, and 
someone here might have some ideas.

My Windows application uses PyQt and VTK.  When I try to build an executable 
with py2exe, the following modules appear to be missing:

'libvtkCommonPython', 'libvtkFilteringPython', 'libvtkGenericFilteringPython', 
'libvtkGeovisPython', 'libvtkGraphicsPython', 'libvtkHybridPython', 
'libvtkIOPython', 'libvtkImagingPython', 'libvtkInfovisPython', 
'libvtkParallelPython', 'libvtkRenderingPython', 'libvtkViewsPython', 
'libvtkVolumeRenderingPython', 'libvtkWidgetsPython'

What's surprising is that all the relevant VTK dlls are successfully copied to 
dist.  Also surprising is the fact that the program executes without errors, 
although it fails to display the VTK scene.

Has anyone had success in using py2exe to build an executable that uses VTK 
libraries?

Thanks
Gib



More information about the vtkusers mailing list