Hi,
I´m with problem to create a executable program in
python.
I´m using py2exe but i don´t know if it´s
right.
My setup.py:
from distutils.core import setupimport
py2exefrom glob import glob
setup( # The first three
parameters are not required, if at least a # 'version' is
given, then a versioninfo resource is built from # them
and added to the executables. version =
"2.0", description = "programa
InVesalius", name = "InVesalius",
# targets to
build console =
["C:\\promed2.0\\python\\MyMainModule.py"],
data_files=[("icons",
glob("C:\\promed2.0\\icons\\*.*")),
("docs",glob("C:\\promed2.0\\docs\\*.*")),
("config",
["C:\\promed2.0\\setup.cfg"])
],packages = ['vtk-windows',
'vtk-windows.vtk',
'vtk-windows.vtk.gtk',
'vtk-windows.vtk.qt',
'vtk-windows.vtk.tk',
'vtk-windows.vtk.util',
'vtk-windows.vtk.wx', 'vtk-windows.vtk.test'],
)
When i run in prompt "python setup.py py2exe",
appear in the end this:
###
The following modules appear to be missing[
'_imaging_gif','libVTKCommonPython', 'libVTKContribPython',
'libVTKGraphicsPython', 'libVTKImagingPython', 'libVTKPatentedPython',
libvtkCommonPython', 'libvtkFilteringPython', 'libvtkGraphicsPython',
'libvtkHybridPython', 'libvtkIOPython',
'libvtkImagingPython', 'libvtkParallelPython', 'libvtkPatentedPython',
'libvtkRenderingPython', 'numarray.array', 'numarray.dot', 'numarray.fromfile',
'numarray.size', 'numarray.zeros', 'vtk.vtkActor2D', 'vtk.vtkDCMParser',
'vtk.vtkImageClip', 'vtk.vtkImageFlip', 'vtk.vtkImageImport',
'vtk.vtkImageMagnify', 'vtk.vtkImageMapper', 'vtk.vtkImagePermute',
'vtk.vtkImageReader', 'vtk.vtkImageResample',
'vtk.vtkImageReslice', 'vtk.vtkImageShiftScale', 'vtk.vtkImageThreshold',
'vtk.vtkImageViewer', 'vtk.vtkImageWriter', 'vtk.vtkRenderWindow',
'vtk.vtkRenderer', 'vtk.vtkTextMapper', 'vtk.vtkTextProperty',
'vtk.vtkTransform']
###
My PYTHONPATH =
C:\Python23;C:\promed2.0\vtk-windows;C:\promed2.0\python
My dir:
##
promed2.0/
setup.cfg
setup.py icons/
docs/
python/
MyMainModule.py
vtk-window/
vtkpython.py
vtkpythontk.py
vtk.pth
vtkCommon.dll
vtkCommonPython.dll
vtkCommonTCL.dll
...
vtk/
###
OS: win 2K
Python ver: 2.3.5py2exe ver:
0.5.4
How can i solve this problem?
Thanks
Glauco
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/4/2005
--
http://mail.python.org/mailman/listinfo/python-list