[Distutils] distutils and MSVCR90.DLL

Mark Sienkiewicz sienkiew at stsci.edu
Wed Jan 5 20:12:46 CET 2011


Martin v. Löwis wrote:
>> Apparently, MSVCR90 is a newer version of the C runtime library.  I have
>> several copies of MSVCR71.DLL on my machine, but nothing named MSVCR90.DLL.
> 
> I'm pretty sure you do have this DLL: the Python installation came with
> it. Check the WinSxS folder.


You're right - I found these:

c:/Windows/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375/msvcr90.dll
c:/Windows/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e/msvcr90.dll

The modification time on the first one is March 26 2009, but the time on the second one is Jan 3 2011 15:30.  That would be around the time I was trying to install vcredist_x86.exe to fix the problem.

I still can't import the module, so if one of these DLLs is in the correct place, I can't trust the tool that tells me which DLL is missing.  In that case, how do I debug this?

>>> import calcos
Traceback (most recent call last):
...
  File "C:\Python27\lib\site-packages\calcos\cosutil.py", line 13, in <module>
    import ccos
ImportError: DLL load failed: The specified procedure could not be found.
>>>

Just to be sure, I've gone back and re-compiled it from clean source.  There is no indication of any compile errors, and it didn't make any difference.

Mark


More information about the Distutils-SIG mailing list