Bugs item #1028735, was opened at 2004-09-16 04:56
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1028735&group_id=78018
Category: installation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 9
Submitted By: Trent Mick (tmick)
Assigned to: Nobody/Anonymous (nobody)
Summary: install error: NameError: global name 'get_root_hkey' is not
Initial Comment:
I got this install error when installing PyWin32 b202
onto Python 2.4a3:
Creating .PTH file C:\Python24\pywin32.pth
Copied pythoncom24.dll to C:\WINNT\system32\pythoncom24.dll
Copied pywintypes24.dll to
C:\WINNT\system32\pywintypes24.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Traceback (most recent call last):
File "C:\Python24\Scripts\pywin32_postinstall.py",
line 313, in ?
install()
File "C:\Python24\Scripts\pywin32_postinstall.py",
line 210, in install
SetPyKeyVal("Help", None, None)
File "C:\Python24\Scripts\pywin32_postinstall.py",
line 97, in SetPyKeyVal
root_hkey = get_root_hkey()
NameError: global name 'get_root_hkey' is not defined
*** run_installscript: internal error 0xFFFFFFFF ***
My machine is Win2k, but I don't think that is relevant.
Is get_root_hkey() not defined by the bdist_wininst
installer? Did it used to be?
This is not affecting me (a subsequent run of
pywin32_postinstall.py manually worked) but I thought I
should report it.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2004-10-09 09:00
Message:
Logged In: YES
user_id=14198
get_root_hkey() is a new feature in 2.4 (and I use 2.4
distutils to build *all* wininst installers). I neglected
to rebuild the bdist_wininst installer with 2.4. I've
tested this and it works now. Thanks.
----------------------------------------------------------------------
Comment By: Andrew Payn Barnert (payn)
Date: 2004-09-16 11:17
Message:
Logged In: YES
user_id=96775
This is the same as bug 990048. If running the script
manually doesn't work, you can edit it (move the def of
get_root_hkey outside of the if) and either run it manually,
or re-run the installer (and tell it to not overwrite
existing files) and everything is fine.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1028735&group_id=78018
|