Again: gadfly + py2exe HELP really needed

Marcus Stojek stojek at part-gmbh.de
Mon May 27 16:16:49 EDT 2002


On Sun, 26 May 2002 09:21:53 GMT, "Max" <nospam at nospam.nospam> wrote:

Hi,
I had a similar problem some time ago. In the build_exe.py of py2exe I
found the following lines:

## Hmm. These are module which are automatically available
## when wxPython is imported.
## Maybe when wxPythin is detected, these should go into mf.excludes?
"wxPython": ["miscc", "windowsc", "streamsc", "gdic", "sizersc",
"controls2c","printfwc", "framesc", "stattoolc", "misc2c",
"controlsc","windows2c", "eventsc", "windows3c", "clip_dndc", "mdic",
 "imagec", "cmndlgsc", "filesysc"],

although I am not really understanding what's  going on here I wrote a
setup file for py2exe:

setup.cfg:
[py2exe]
optimize=2
excludes=
windowsc,miscc,streamsc,gdic,sizersc,controls2c,printfwc,framesc,stattoolc,misc2c,controlsc,windows2c,eventsc,windows3c,clip_dndc,mdic,imagec,cmndlgsc,filesysc

et voila, all warnings dissapeared and the exe file worked. From
reading the docs I would have guessed that the program should work
even with the warnings (That's why they are called warnings and not
errors, so maybe you have a different problem on top.) Did you try the
installer ? I think there is a debug option somewhere that might tell
you more. Did you check your code for things like:

exec "from "+ modulename +" import *"?


A second thing is the os.path warning. In my case found the
corresponding import line in the file vtkpython.py where it was used
for an testing function that I bluntly deleted. In my code I use

import os
and os.path.something....

this works fine. I have absolutely no idea why import os.path doesn't.

Again, as I am a Newbie don't rely on my posting, but it worked for
me.

Marcus

>
>copying C:\Python22\lib\site-packages\gadfly\kjbuckets.pyd ->
>dist\SMPNotaMain
>warning: py2exe:
>***************************************************************
>**********
>warning: py2exe: * The following modules were not found:
>warning: py2exe: *   cmndlgsc
>warning: py2exe: *   imagec
>warning: py2exe: *   clip_dndc
>warning: py2exe: *   windows3c
>warning: py2exe: *   filesysc
>warning: py2exe: *   eventsc
>warning: py2exe: *   windows2c
>warning: py2exe: *   controlsc
>warning: py2exe: *   ic
>warning: py2exe: *   misc2c
>warning: py2exe: *   controls2c
>warning: py2exe: *   os.path
>warning: py2exe: *   windowsc
>warning: py2exe: *   stattoolc
>warning: py2exe: *   mdic
>warning: py2exe: *   gdic
>warning: py2exe: *   sizersc
>warning: py2exe: *   printfwc
>warning: py2exe: *   streamsc
>warning: py2exe: *   miscc
>warning: py2exe: *   framesc
>warning: py2exe:
>***************************************************************
>**********




More information about the Python-list mailing list