From: Jimmy R. <ji...@re...> - 2005-10-11 12:31:34
|
reiale wrote: > My py2exe distributed application works correctly under single file mode > only if wxmsw26h_vc.dll and python24.dll are included in the dist > directory. >=20 > If the wxmsw26h_vc.dll is not in the dist directory, I get the following > error message: > Traceback (most recent call last): > File "OTAVideoUplink.py", line 13, in ? > File "zipextimporter.pyo", line 78, in load_module > File "wx\__init__.pyo", line 42, in ? > File "zipextimporter.pyo", line 78, in load_module > File "wx\_core.pyo", line 4, in ? > File "zipextimporter.pyo", line 91, in load_module > ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd >=20 > My question is how to include this wxmsw26h_vc.dll and the python24.dll in > the exe? I am running the latest py2exe, python, wxpython. Shouldn't these > dlls already be found and included? Both DLLs should be found/included automatically, and if you are doing bundle=3D1 then they should both be inside the exe (which will be quite large - about 11.5MB for a wxPython Hello World). See if the attached sample builds and runs for you. If so, see if you can whittle your app/setup down until it succeeds (or if you can grow this sample until it fails). The main application I use py2exe for is a large wxPython app and it has always worked well for me. You might also try deleting your build and dist directories to see if something is getting in the way from old runs. Jimmy |