httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Diener" <eddie...@tropicsoft.com>
Subject [users@httpd] Bug in mod_python install
Date Sun, 25 Apr 2004 05:04:12 GMT
Mod_python's postinstall script assumes that the Apache key in the Windows
registry is in HKLM. However if one installs Apache Web Server on Windows
and chooses to install for the current user, the entry is under HKCU.
Because of this an exception is thrown in the script when attempting to open
HKLM/Apache Group/Apache and the postinstall script never finishes.

An obvious workaround is to momentarily duplicate the Apache registry
entries which are under HKCU to HKLM in order to allow mod_python to finish
installing itself successfully.

Here is the exception trace:

Traceback (most recent call last):
File "H:\UTILIT~1\Python23\Scripts\win32_postinstall.py", line 86, in ?
apachediroptions = getApacheDirOptions()
File "H:\UTILIT~1\Python23\Scripts\win32_postinstall.py", line 45, in
getApacheDirOptions
apachekey = regkey(win32con.HKEY_LOCAL_MACHINE, "Software").childkey("Apache
Group").childkey("Apache")
File "H:\UTILIT~1\Python23\Scripts\win32_postinstall.py", line 34, in
childkey
return regkey(self.key, subkeyname)
File "H:\UTILIT~1\Python23\Scripts\win32_postinstall.py", line 32, in
__init__
self.key = win32api.RegOpenKey(parent, subkeyname)
pywintypes.error: (2, 'RegOpenKeyEx', 'The system cannot find the file
specified.')
Exception exceptions.AttributeError: "regkey instance has no attribute
'key'" in <bound method regkey.__del__ of <__main__.regkey instance at
0x011C8468>> ignored
*** run_installscript: internal error 0xFFFFFFFF ***




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message