If your installation of pywin32 on Windows 7 always end with
close failed in file object destructor:
sys.excepthook is missing
This is maybe because you are running Windows under the "Administrator" account and anything you normally run is equal to a "run as Administrator"
And paradoxically running the installation of pywin32 on Windows 7 as Administrator causes this error.
So a workaround is to create another admin account
net user Admin /add
net user Admin <type your password>
net localgroup Administrators Admin /add
and then run the pywin32 installation with
runas /user:Admin pywin32-217.win32-py2.7.exe
Log in to post a comment.