[mod_python] Re: Now we're getting somewhere. Where does mod_python install these files?

Nicolas Lehuen nicolas.lehuen at gmail.com
Wed Jan 18 15:54:35 EST 2006


It isn't broken for 2.4.2, I run it on a daily basis both on a
development machine and a production server.

What distribution are you using ? I'm using the ActiveState build for Win32.

Regards,
Nicolas

2006/1/18, Dan Eloff <dan.eloff at gmail.com>:
> And rolling back to python 2.4 fixed the problem immediately. I don't
> know if python 2.4.2 is broken, or just if mod_python is broken for
> 2.4.2.
>
> -Dan
>
> On 1/18/06, Dan Eloff <dan.eloff at gmail.com> wrote:
> > Actually it appears this is python's import behaviour. I compared this
> > behaviour to the working mod_python on another PC, and here's the
> > difference (both have a similar python path)
> >
> > Working (2.4):
> > >>> sys.path
> > ['', 'C:\\Windows\\system32\\python24.zip', 'C:\\Program
> > Files\\Python', 'C:\\Program Files\\Python\\DLLs', 'C:\\Program
> > Files\\Python\\lib', 'C:\\Program Files\\Python\\lib\\plat-win',
> > 'C:\\Program Files\\Python\\lib\\lib-tk',
> > 'C:\\Program Files\\Python\\lib\\site-packages']
> >
> > Not Working (2.4.2):
> > >>> sys.path
> > ['', 'C:\\Program Files\\Python\\python24.zip', 'C:\\Program
> > Files\\Python\\DLLs', 'C:\\Program Files\\Python\\lib', 'C:\\Program
> > Files\\Python\\lib\\plat-win',
> > 'C:\\Program Files\\Python\\lib\\lib-tk', 'C:\\Program Files\\Python',
> >  'C:\\Program Files\\Python\\lib\\site-packages']
> >
> >
> > The working one searches for mod_python in:
> > C:\Windows\system32\python24.zip
> > C:\Program Files\Python\Lib
> > C:\Program Files\Python\DLLs
> > C:\Program Files\Python\Lib\lib-tk
> > C:\Program Files\Apache Group\Apache2
> > C:\Program Files\Apache Group\Apache2\bin
> > C:\Program Files\Python
> > C:\Program Files\Python\lib\site-packages - SUCCESS
> >
> > The broken one searches for mod_python in:
> > C:\Program Files\Python\python24.zip
> > C:\Program Files\Apache Group\Apache2\DLLs
> > C:\Program Files\Apache Group\Apache2\lib
> > C:\Program Files\Apache Group\Apache2\lib\plat-win
> > C:\Program Files\Apache Group\Apache2\lib\lib-tk
> > C:\Program Files\Apache Group\Apache2\bin - GIVES UP
> >
> > Clearly python has gone beserk, replacing instances of C:\Program
> > Files\Python with Apache's directory, and not even searching
> > everything. The first thing I'm going to try is roll back to python
> > 2.4.
> >
> > -Dan
> >
>
> _______________________________________________
> 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