I am trying to build a COM application using py2exe. I am using activepython 2.3.2-232 and py2exe 0.5.0 for python 2.3. I run "python setup.py py2exe" at the command line and all builds ok with the following line at the bottom.
The following modules are missing ['pythoncom']
The following files are placed in the dist directory.
MFC42.DLL PyWinTypes23.dll _sre.pyd boxcar.exe datetime.pyd library.zip python23.dll unicodedata.pyd w9xpopen.exe win32api.pyd win32ui.pyd zlib.pyd
The executable runs fine on this machine or any machine with activepython 2.3.2-232 installed. However, when run on another machine of course it bombs with the exception can't load pythoncom. There is no pythoncom DLL in the above list.
On another machine I can take the same script and setup.py and run the same command line using activepython 2.2.1-222 and py2exe 0.3.3 for python2.2 and it compiles fine without the modules missing line and it generates the following files.
PyWinTypes22.dll _sre.pyd boxcar.exe file.txt python22.dll pythoncom22.dll win32api.pyd win32trace.pyd win32ui.pyd zlib.pyd
As you can see pythoncom22.dll included.
Am I doing anything wrong. I do not see in the command line options for py2exe anything that would help but I may be missing something. Any help would be appreciated.
Ron |