Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at the end of install on Win 7 #498

Closed
ghost opened this issue Aug 31, 2010 · 2 comments
Closed

Error at the end of install on Win 7 #498

ghost opened this issue Aug 31, 2010 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 31, 2010

A colleague and I both got this error on Win 64-bit in the last dialog of the installer:

close failed in file object destructor:
Error in sys.excepthook:

Original exception was:

I was able find this thread which describe the same problem:
http://python-forum.com/pythonforum/viewtopic.php?f=15&t=17163&start=0&sid=84e05d8a7c989bb8a3f36ea0a868c28a

When I run pywin32_postinstall.py manually, this is what I get:

C:\Python27\Scripts>pywin32_postinstall.py -install
Copied pythoncom27.dll to C:\Windows\system32\pythoncom27.dll
Copied pywintypes27.dll to C:\Windows\system32\pywintypes27.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\2.7\Help[None]=None
-> Software\Python\PythonCore\2.7\Help\Pythonwin Reference[None]='C:\\Python27\
Lib\\site-packages\\PyWin32.chm'
Pythonwin has been registered in context menu
Can't install shortcuts - u'C:\\Users\\SND\\AppData\\Roaming\\Microsoft\\Windows
\\Start Menu\\Programs\\Python 2.7' is not a folder
The pywin32 extensions were successfully installed.

PyWin32 appears to be installed and operational despite the error. The Python 2.7 program group icons are also registered despite the warning in the output above.

Reported by: tnili

Original Ticket: pywin32/bugs/498

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@mhammond
Copy link
Owner

mhammond commented Jan 3, 2019

This is an error which I've seen a few times during testing but have never been able to work out why. I don't think it's related to UAC but don't know what the issue is. I'll close a few dupes of this to reference this issue.

@Avasam
Copy link
Collaborator

Avasam commented Jul 28, 2024

Given the sheer amount of installation issues duplication and old history, I'd like to consolidate the current state of these issues. So I'll close and reference back any issue that only has comments showing the issue:

  • from before November 10th, 2019 (pywin32<226)
  • using .exe installers
  • using Python < 3.8

Please also try https://github.com/mhammond/pywin32#troubleshooting before opening a new issue, or let us, and others, know here if it did fix your issue.

If you're having this issue with Jupyter Notebooks, refer to #1409 instead.
If you're having this issue using the Microsoft Store distribution of Python, refer to #1383 instead.
If you're having this issue with the Anaconda distribution of Python, refer to #1865 instead.

If this specific issue can be replicated on the latest pywin32, non-EOL python, installing from PyPI, and it doesn't seem related to any of the 3 above, then we can re-open it.

@Avasam Avasam closed this as completed Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants