From: Werner F. B. <wer...@fr...> - 2007-01-20 17:43:30
|
Hi Robert, Please copy the list. Robert Martin wrote: > Would this also be the reason that that email.mime module does not > seem to package correctly with python 2.5? I don't know. Do you have a minimal test app with the corresponding setup.py? I haven't done work with Python 2.5 and py2exe yet, as I have not converted my app. So, just for the heck of it I downloaded the latest py2exe 0.6.6 into my test install of Python 2.5 and did a build without major problems. My config is: Win XP Pro SP 2 Python 2.5 wxPython 2.8.0.1 Building worked and I could run the exe, also it throws some exception (division zero, which is normal, it is forced in the code) and a deprecation warning. The deprecation warning is to do with the way wx is imported (from wxPython.wx import *), I enclose the changed file (import wx and corresponding changes). Werner > > On 1/20/07, *Werner F. Bruhin* <wer...@fr... > <mailto:wer...@fr...>> wrote: > > Hi, > > Please respond to the list, so that others see all this and so it goes > into the archive. > > Indy wrote: > > I tries the example you wrote, and it didn't work. It seems it > is not > > a problem generally with py2exe, but with py2exe and wx. > I doubt that there is a general problem with wx and py2exe, my app > for > one uses it and there many others out there using py2exe with > wxPython. > > It is more likely something with one of the modules you use, a problem > on how you build etc. > > - Can you run the sample included with py2exe in > py2exe/samples/simple? > - Can you build it using the setup.py provided with it and run the > exe? > > If the above work then a simple/standard wxPython app works with > py2exe, > you then need to isolate in your application what causes the problem. > > You might also want to include the following into your setup.py to > ensure that the py2exe build folders are cleaned out and rebuild with > the correct versions. > > # cleanup dist and build directory first (for new py2exe version) > if os.path.exists("dist/prog"): > shutil.rmtree("dist/prog") > > if os.path.exists("dist/lib"): > shutil.rmtree("dist/lib") > > if os.path.exists("build"): > shutil.rmtree("build") > > > See you > Werner > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net 's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > <mailto:Py2...@li...> > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > > > -- > ...Incompetent good intentions will only bring tragedy. > > -Kratos Aurion |