cannot load UPX compressed python module
I don't know if it is py2exe specific issue or upstream(MemoryModule) issue so I create an issue here as well. I found that py2exe cannot load any UPX compressed pyd modules and returns ERROR_DLL_INIT_FAILED (I have python runtime UPX compressed and embed into exe)
forget to mention, the issue happens when bundle_files = 1. (So the pyd DLL and python runtime DLL are both loaded from memory, and pyd DLL depends on python runtime DLL) With bundle_files = 2, the problem does not exist.
Please, send me dll.
Interesting, My issue with py2exe is that I cant use it's _memimporter module inside of my custom embedded interpreter. And so I have to try to make some other workarounds that hopefully works.
My problem with this thing is that with their _memimporter and other stuff I cant quite read yet it looks like I have to manually code it to import the dll's and stuff from the zip. It would be nice if there was an example here using this project to load from a *.zip file that is much more easier to read so I can have this loading simplified a lot more.
Also I am not sure if the latest version of this has this on it or that that the original devloper of py2exe added to it:
* THeller: Added binary search in MemoryGetProcAddress function
* (#define USE_BINARY_SEARCH to enable it). This gives a very large
* speedup for libraries that exports lots of functions.
*
* These portions are Copyright (C) 2013 Thomas Heller.
If not I guess it should be added reguardless as it seems very useful to a lot of people.