quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory (Grisha) Trubetskoy" <gri...@apache.org>
Subject Re: mod_python bug
Date Sun, 25 Apr 2004 19:56:33 GMT

Thanks Eddie, we'll take a look at it.

Grisha

On Sun, 25 Apr 2004, Eddie Diener wrote:

> I posted a bug on the gmane.comp.apache.user NG but then when I saw your
> e-mail address I decided to also send it directly to you:
>
> 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.
>
> 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 ***
>
> A workaround is to duplicate the keys for Apache in HKLM that are in HKCU
> and also add a KeyValue of ServerRoot pointing to the place where the Apache
> directory is installed.
>

Mime
View raw message