From: Mark H. <ski...@gm...> - 2012-02-01 03:22:45
|
I'm afraid I never use bundle_files and looking at the code it is light on diagnostics for this. If you have pywin32 installed, you could try wrapping that import in a try/except block and after an exception call win32api.GetLastError() (but be sure to import win32api before the failing import). This might give me some clues as to why it is failing (although it is far from clear that will help me work out how to stop it failing) Mark On 1/02/2012 1:10 PM, Geordan Rosario wrote: > Hi, > > I am trying to create an exe file with everything bundled into it > (bundle_files=1, zipfile=None). However, when I run the exe, it errors > out with this: > > Traceback (most recent call last): > File "console.py", line 1, in<module> > from Foo import foo > File "zipextimporter.pyc", line 98, in load_module > ImportError: MemoryLoadLibrary failed loading Foo\foo.pyd > > If I comment out the zipfile line (letting it create library.zip by > default), I can see Foo/foo.pyd in the zipfile. Why is it failing to > load? Is there a way to get better debugging output? > > Note that if I set bundle_files=3 and zipfile=None, the exe works fine. > > I am using Python 2.7 and Py2exe 0.6.9 (all 32-bit). > > Thanks, > -geordan > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |