This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 2.6.4 Win32 linked to debug DLLs?
Type: behavior Stage:
Components: Windows Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: jonorossi, jw113, loewis
Priority: normal Keywords:

Created on 2009-12-20 00:05 by jw113, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg96655 - (view) Author: John Wells (jw113) Date: 2009-12-20 00:05
I installed 2.6.4 x86 on Win7 x64. My Python app runs fine, but I get
daily errors in the event app log:

SOURCE: SideBySide
EVENT ID: 33
MESSAGE: Activation context generation failed for
"C:\WinUtils\Python26\Lib\distutils\command\wininst-8_d.exe". Dependent
Assembly
Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0"
could not be found. Please use sxstrace.exe for detailed diagnosis. 

I'm not a developer, but Google suggests to me that the reference to
"Microsoft.VC80.DebugCRT" indicates that some part of Python 2.6.4 was
linked to the debug version of the VC++ 2005 DLLs. Apparently this
shouldn't have been done, since the debug DLLs can't be redistributed.

Or is there some other fix for this?
msg96664 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-12-20 08:12
wininst*.exe is the binary that gets patched into the zip file when you
build a windows installer out of your Python package. wininst-8_d.exe is
the debug version of that, so it's not surprising that it is linked with
the debug CRT.

What is really puzzling here is that something is trying to execute it
on your system. That should never happen.

I guess you are right that the file shouldn't have been shipped; if the
messages bother you, just delete it.
msg96665 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-12-20 08:30
I have now removed these files from my build directory, so they won't
get included in future releases.
msg96668 - (view) Author: John Wells (jw113) Date: 2009-12-20 09:29
Thanks for the quick follow-up. 

You're right -- given your explanation of what wininst-8_d.exe is, the
interesting question now is why it is running. I get two errors every
day, in the early hours of the morning. Before I delete this file, I
will see if ProcessMonitor will provide an answer.
msg134123 - (view) Author: Jonathon Rossi (jonorossi) Date: 2011-04-20 05:37
I just encountered this error with an older version (2.6.2) of python on Windows Server 2008 R2.

From looking at the logs it looks like the Customer Experience Improvement Program (CEIP) functionality is causing this problem because it has a scheduled task (Application Experience\ProgramDataUpdater) which runs every day at 12.30am, even if you are not participating in the CEIP (i.e. it is not sending the info to Microsoft). After a quick look around, it seems like the scheduled task collects program information to report to Microsoft, which must cause the side-by-side when it loads the EXE to get version information.

Based on Martin's comments I plan to just remove this file, until we work out what version of python this was fixed in and upgrade.
History
Date User Action Args
2022-04-11 14:56:55adminsetgithub: 51798
2011-04-20 05:37:09jonorossisetnosy: + jonorossi
messages: + msg134123
2009-12-20 09:29:02jw113setmessages: + msg96668
2009-12-20 08:30:54loewissetstatus: open -> closed
resolution: fixed
messages: + msg96665
2009-12-20 08:12:12loewissetnosy: + loewis
messages: + msg96664
2009-12-20 00:05:22jw113create