Dan Eloff
dan.eloff at gmail.com
Wed Jan 18 11:48:21 EST 2006
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
|