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

Dan Eloff dan.eloff at gmail.com
Wed Jan 18 15:25:27 EST 2006


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
>



More information about the Mod_python mailing list