Upon updating to python-2.4.3-46.el5_8.2.i386, mod_python fails to load. Restarting httpd did not help. Downgrading to python-2.4.3-46.el5.i386 and restarting httpd fixed the issue. I suspect something to do with the fix for CVE-2012-1150, but that's just a guess.<br />
<br />
FWIW, `python -c 'import cgi'` works even with the failing python (and `python -c 'import mod_python.apache'` fails as it normally would, with "ImportError: No module named _apache").<br />
<br />
[Sat Jun 30 12:01:19 2012] [error] make_obcallback: could not import mod_python.apache.\n<br />
Traceback (most recent call last):<br />
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 29, in ?<br />
import cgi<br />
File "/usr/lib/python2.4/cgi.py", line 40, in ?<br />
import mimetools<br />
File "/usr/lib/python2.4/mimetools.py", line 6, in ?<br />
import tempfile<br />
File "/usr/lib/python2.4/tempfile.py", line 33, in ?<br />
from random import Random as _Random<br />
File "/usr/lib/python2.4/random.py", line 46, in ?<br />
from os import urandom as _urandom<br />
ImportError: cannot import name urandom<br />
[Sat Jun 30 12:01:19 2012] [error] make_obcallback: Python path being used "['/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0']".<br />
[Sat Jun 30 12:01:19 2012] [error] get_interpreter: no interpreter callback found.<br />
[Sat Jun 30 12:01:19 2012] [error] [client 98.217.125.25] python_handler: Can't get/create interpreter.
↧