Windows Installer: close failed in file object destructor
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
When running through pywin32-216.win-amd64-py2.7.exe on Windows Server 2008 R2, I got the following message on the 'Finish' screen of the Installation Wizard ...
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
... does this negatively impact the installation at all?
Installation Wizard Error
We got the same problem here.
Some more details:
- Windows 2008 R2 Datacenter SP1
- Python 2.7.2 64bit
- PyWin32 pywin32-216.win-amd64-py2.7.exe
What we also noticed:
- in the Datacenter edition with SP1 it works as user, even with admin privileges but it won't work when installed as the user Administrator (i.e. showing the error messages in the OP's report)
- it worked in Windows Server 2008 R2 Standard even as user Administrator
Could the fix in [1] be related to this problem?
[1] http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/rev/a64d8ac23e61
There is another open bug on this, so I'm closing this as a duplicate. To ensure the post install process completes, you can just run "python scripts\pywin32_postinstall.py -install" at any time. Also, the change you mention should be the fix for this problem - it is just that a new release is yet to be made with that patch in place.