Trouble running pywin32-214.win-amd64-py3.1 on 64-bit Windows 7

Mark Hammond skippy.hammond at gmail.com
Fri Feb 19 23:37:56 EST 2010


On 20/02/2010 5:35 AM, Steven Cohen wrote:
> Hello,
>
> I downloaded pywin32-214.win-amd64-py3.1, and it installs just fine
> (except that it prints a traceback when it tells me the postinstall
> script completed), but then when I try to execute Pythonwin.exe, I get
> the following error popup:
>
> The application can not locate win32ui.pyd (or Python) (126)
> The specified module could not be found
>
> However, the file win32ui.pyd is right there in the same directory from
> which I am executing Pythonwin.exe.  Can anyone help me figure out what
> I am doing wrong here?

The pywin32 post-install script seems to break with the current Python 
3.1 builds, and as a result, the pywin32 DLLs were probably not copied 
correctly.

Try re-executing the post install script by:

* Start a command-prompt by right-clicking on the shortcut and selecting 
'Run as Administrator'.

* Execute '\python31\python.exe \python31\scripts\pywin32_postinstall.py 
-install' (changing the paths as necessary).

It should succeed as it is running from a console, and you might find 
that fixes things.

HTH,

Mark



More information about the Python-list mailing list