[mod_python] Bug in Windows installation

Gregory (Grisha) Trubetskoy grisha at modpython.org
Mon Apr 26 22:47:47 EST 2004


On Mon, 26 Apr 2004, David Fraser wrote:

> Hi
>
> Thanks for posting this, I created the Windows installer script and one
> of my colleagues noticed this too, so we prepared a modified version.
> I have attached the modified win32_postinstall.py script ; and I have a
> rebuilt installer at
> http://davidf.sjsoft.com/files/mod_python-3.1.3-1.win32-py2.3.exe
> This also contains a fix for the attachment filetype problem.
> Please test and let me know if this fixes your problem

David - if you could get 3 +1's for this new installer on the
python-dev at httpd list, we should be able to put it out on the main
download page.

>
> PS Grisha, is there time now to start getting this stuff into CVS, as it
> would be better management-wise? :-)

I was planning on spending some quality mod_python time towards the end of
this week :-)

Grisha


>
> Eddie Diener wrote:
>
> > 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 in order to
> > start Apache manually from the Console Window, 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 temporarily duplicate the Apache registry keys from
> > HKCU to HKLM and add the ServerRoot key value, poinitng it to the root
> > directory where Apache is installed. The installing mod_python works OK.
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Mod_python mailing list
> >Mod_python at modpython.org
> >http://mailman.modpython.org/mailman/listinfo/mod_python
> >
> >
>
>


More information about the Mod_python mailing list