[python-win32] pywintypes24.dll necessary??

Tim Roberts timr at probo.com
Fri Jun 23 18:59:22 CEST 2006

On Thu, 22 Jun 2006 08:49:35 -0600, Dean Allen Provins
<dprovins at tridentexploration.ca> wrote:

>The user's requirement was for a batch program to process hundreds of files - so
>I wrote one on Linux, and ported it to WinXP Professional.  It is a command line
>driven routine that works very well on Linux, but is hampered (as I discovered)
>by the MS treatment of DOS windows (no copy/paste allowed - as far as I can tell).
>It works fine, EXCEPT the python mainline (batch.py) suggests that it will NOT
>execute unless file 'pywintypes24.dll' is in the same directory.  A dialog pops
>up to say that the application can't execute because a required component (the
>DLL) can't be found, but then it starts up with the message:
>"import testing -> failed:  DLL load failed:  The specified module could not be

Are you using py2exe to run this on a machine that does not already have
Python?  If not, then pywintypes24.dll should be in \Windows\System32,
and the default pywin32 installation should have put it there.

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the Python-win32 mailing list