Python does not work after patch the server

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5.8
  • Red Hat Enterprise Linux 5.9

Issue

  • After applying yum upgrade to python, python-2.4.3-46.el5 was replaced by python-2.4.3-56.el5.
  • Now web pages fail, and errors are logged into httpd error logs.

Resolution

  • This is a known issue, this errata fixes the problem.

Diagnostic Steps

  • Below errors from /etc/httpd/logs/error_log, when tried to access the web page:

[Tue Mar 05 17:41:54 2013] [error] make_obcallback: could not import mod_python.apache.\n Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 29, in ? import cgi File "/usr/lib/python2.4/cgi.py", line 40, in ? import mimetools File "/usr/lib/python2.4/mimetools.py", line 6, in ? import tempfile File "/usr/lib/python2.4/tempfile.py", line 33, in ? from random import Random as _Random File "/usr/lib/python2.4/random.py", line 46, in ? from os import urandom as _urandom ImportError: cannot import name urandom [Tue Mar 05 17:41:54 2013] [error] make_obcallback: Python path being used "['/usr/lib/python2.4/site-packages/modwind-0.9.5-py2.4.egg', '/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']". [Tue Mar 05 17:41:54 2013] [error] get_interpreter: no interpreter callback found.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments