[python-win32] MSI installer or zip file for pywin32?

Mark Hammond skippy.hammond at gmail.com
Thu Apr 8 03:34:24 CEST 2010


On 8/04/2010 2:35 AM, Bill Janssen wrote:
> No luck so far.  I install Python privately ("Just for me" on the Python
> installer) in C:\UpLib\1.7.9\python\, and unpack the pywin32 zip file in
> the Lib\site-packages\ subdir there.  Then I copy python26.dll and the
> two pywin32 DLLs over to C:\WINDOWS\system32\:
>
> $ cp /c/UpLib/1.7.9/python/python26.dll /c/UpLib/1.7.9/python/lib/site-packages/pywin32_system32/py*.dll /c/WINDOWS/system32/
>
> Then I boot up Python and try to load the win32api:
>
> $ python -i
> Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import win32api
> Traceback (most recent call last):
>    File "<stdin>", line 1, in<module>
> ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

This means the C runtime "assembly" isn't being found (and FWIW, this 
error is being raised by windows itself, not by Python - so it isn't a 
python config problem per-se).  It should be the case that the assembly 
used by Python itself will work and (IIRC) win32api.pyd shouldn't have a 
reference to that assembly.

However, if things work using the regular installer, I believe the 
problem will be the copying of those DLLs to system32 - that 
pythonxx.dll, the pywin32 DLLs (not .pyds) and the manifest all need to 
be in the same directory.

Sadly I'm in the middle of moving house and will not have time to look 
into this in more detail for a few days...

Cheers,

Mark


More information about the python-win32 mailing list