httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Diener" <>
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\", line 86, in ?
apachediroptions = getApacheDirOptions()
File "H:\UTILIT~1\Python23\Scripts\", line 45, in
apachekey = regkey(win32con.HKEY_LOCAL_MACHINE, "Software").childkey("Apache
File "H:\UTILIT~1\Python23\Scripts\", line 34, in
return regkey(self.key, subkeyname)
File "H:\UTILIT~1\Python23\Scripts\", line 32, in
self.key = win32api.RegOpenKey(parent, subkeyname)
pywintypes.error: (2, 'RegOpenKeyEx', 'The system cannot find the file
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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message