Bugs item #990048, was opened at 2004-07-13 03:18
Message generated for change (Comment added) made by payn
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=990048&group_id=78018
Category: installation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kerim Borchaev (warkid)
Assigned to: Nobody/Anonymous (nobody)
Summary: pywin32-202.win32-py2.4.exe: Postinstall script failure.
Initial Comment:
This is how it fails:
Creating .PTH file C:\Python24\pywin32.pth
Copied pythoncom24.dll to C:\WINDOWS\System32
\pythoncom24.dll
Copied pywintypes24.dll to C:\WINDOWS\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 ***
#####################################
I've uninstalled previous version of pywin32 and Python
before installing pywin32-202.
I'm using Python2.4a1
----------------------------------------------------------------------
Comment By: Andi Payn (payn)
Date: 2004-09-08 15:12
Message:
Logged In: YES
user_id=96775
Until a new version comes our, here's what you can do:
1. Run an install through until it fails.
2. Go to your C:\Python24\Scripts directory, and get rid of
pywin32_postinstall.{pyc,pyo} if present.
3. Edit the pywin32_postinstall.py file in that directory to
unindent the definition for get_root_hkey.
4. Run the installer again, and tell it to never replace
existing files.
The installer will now use the hacked postinstall script,
which will succeed, so it will proceed to the next step and
install everything (Start Menu items, Explorer integration,
etc.) properly.
----------------------------------------------------------------------
Comment By: Tony Meyer (anadelonbrin)
Date: 2004-08-02 15:56
Message:
Logged In: YES
user_id=552329
FWIW, Mark knows about this problem (it resulted because the
latest pywin32 came out before 2.4a1, so Mark couldn't test
it properly). I believe he said on the mailing list that
he's fixed the problem already, so it should be resolved in
the next build.
----------------------------------------------------------------------
Comment By: Jason R. Coombs (jaraco)
Date: 2004-08-02 10:29
Message:
Logged In: YES
user_id=599869
I received the same error. I was installing to a Windows XP
SP1 with no version of Python ever installed.
----------------------------------------------------------------------
Comment By: Jaros³aw Zabie³³o (zbiru)
Date: 2004-07-22 12:02
Message:
Logged In: YES
user_id=309001
I uninstalled previous version of Python, PythonWin and all
pythonic stuff. The same problem appears for Windows 2003
Server:
Creating .PTH file C:\opt\Python24\pywin32.pth
Copied pythoncom24.dll to C:\WINDOWS\system32\pythoncom24.dll
Copied pywintypes24.dll to C:\WINDOWS\system32\pywintypes24.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Traceback (most recent call last):
File "C:\opt\Python24\Scripts\pywin32_postinstall.py",
line 313, in ?
install()
File "C:\opt\Python24\Scripts\pywin32_postinstall.py",
line 210, in install
SetPyKeyVal("Help", None, None)
File "C:\opt\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 ***
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=990048&group_id=78018
|