Message 254368 - Python tracker

Message254368

Author eryksun
Recipients eryksun, lac, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2015-11-09.06:01:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447048921.05.0.547011219008.issue25585@psf.upfronthosting.co.za>
In-reply-to
Content
The "DLL load failed" message is from Python, but the rest is the text for the Windows error code, ERROR_BAD_EXE_FORMAT (0x00c1) [1]. The "%1" in the string can be expanded as the first element of the Arguments array parameter of FormatMessage [2]. But currently the code in Python/dynload_win.c uses FORMAT_MESSAGE_IGNORE_INSERTS and does no post-processing to replace the "%1".

I don't know why the Windows loader reported ERROR_BAD_EXE_FORMAT instead of ERROR_MOD_NOT_FOUND. Possibly it found another version of a dependent DLL that was corrupt or for a different architecture. 

Note that the setup in this case is odd in that the package is installed in C:\Python27 instead of in the site-packages directory.

[1]: https://msdn.microsoft.com/en-us/library/ms681382#ERROR_BAD_EXE_FORMAT
[2]: https://msdn.microsoft.com/en-us/library/ms679351
History
Date User Action Args
2015-11-09 06:02:01eryksunsetrecipients: + eryksun, paul.moore, tim.golden, r.david.murray, zach.ware, steve.dower, lac
2015-11-09 06:02:01eryksunsetmessageid: <1447048921.05.0.547011219008.issue25585@psf.upfronthosting.co.za>
2015-11-09 06:02:01eryksunlinkissue25585 messages
2015-11-09 06:01:58eryksuncreate