[mod_python] Python 2.5

Honza Rameš shadow at mapik.net
Fri Sep 1 06:01:29 EDT 2006


I've solved it. The whole problem was in windows registry ]:-> there were
missing key that tells python where it is installed.

The reg file that fixes the problem looks like

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\InstallPath]
@="<path to python>"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\InstallPath\InstallGroup]
@="Python 2.5"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\Modules]

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\PythonPath]
@="<path to python>\\Lib;<path to python>\\DLLs;<path to
python>\\Lib\\lib-tk"

 On 9/1/06, Honza Rameš <shadow at mapik.net> wrote:

>  Thanks for your reply
>
> Python 2.4 works perfectly but when I change to 2.5 RC1 apache can't find
> the handler. I have tried to start python console and import
> mod_python.apache it worked (accordingly to
> http://www.modpython.org/pipermail/mod_python/2004-November/016815.html)
> and I double checked evry path and I also tried to copy python25.dll to
> several locations in PATH byt I got the same result :-( I was very supprised
> that it didn't work. If the 2.4 didn't work as well then it would seem
> that I hove done some mistake in configuration but this way I am very
> confused. I read the article you sent me before but I couldn't find any
> usable information. Is there a possbility that I haven't installed Python
> correctly? I mean I compiled it but could there be missing some files that
> would couse this problem?
> The reason I'm doing all this is because I'm trying to get Trac with SVN
> to work. There are no windows SVN bindings for python 2.4 so I tried to
> make them but Python 2.4 compiled with VS2005 does not run at all (so I'm
> using official release), Python 2.5 does but mod_python doesn't :-(
>
> Regards
>
> Honza Rames
>
>  On 8/31/06, Jim Gallacher <jpg at jgassociates.ca> wrote:
> >
> > I haven't tried 2.5 yet, but I guess we should start testing the
> > development branch against it. We're hoping to release mod_python 3.3
> > sometime in October or November. Hopefully that would be too long after
> > python 2.5 is officially out. I don't know what their timetable is but
> > currently it's just the release candidate so the lag shouldn't be too
> > great. I'd be very surprised if there was any changes that would break
> > mod_python though.
> >
> > For your particular problem though I suspect it's the usual installation
> > funkiness rather than a python 2.5 specific issue. In particular take a
> > look at the thread that started on Tuesday. See
> > http://www.modpython.org/pipermail/mod_python/2006-August/021944.html
> >
> > Jim
> >
> >
> > Honza Rameš wrote:
> > > Hi,
> > > have any of you tried to run mod_python with Python 2.5 on Windows. I
> > > cannot run Python 2.4 compiled with VS2005 it always result in an
> > error.
> > > And
> > > mod_python with Python 2.5 returns Internal server error and
> > > error.logcontains:
> > >
> > >
> > >> [Thu Aug 31 02:40:35 2006] [error] make_obcallback: could not import
> > >> mod_python.apache.\n
> > >> [Thu Aug 31 02:40:35 2006] [error] make_obcallback: Python path being
> >
> > >> used
> > >> "['C:\\\\WINDOWS\\\\system32\\\\python25.zip', '.\\\\DLLs',
> > '.\\\\lib',
> > >> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> > >> 'C:\\\\Inetpub\\\\Apache2\\\\bin']".
> > >> [Thu Aug 31 02:40:35 2006] [error] python_handler: no interpreter
> > >> callback
> > >> found.
> > >> [Thu Aug 31 02:40:35 2006] [error] [client 10.0.0.2] python_handler:
> > >> Can't
> > >> get/create interpreter.
> > >
> > >
> > > I compiled both Apache 2.2.3 and mod_python 3.2.10
> > > Thanks
> > >
> > > Honza Rames
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://mailman.modpython.org/mailman/listinfo/mod_python
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060901/bda9f5b8/attachment-0001.html


More information about the Mod_python mailing list