Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 212, in handler
    return ModPythonHandler()(req)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 190, in __call__
    response = self.get_response(request)

  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 169, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())

  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 214, in handle_uncaught_exception
    if resolver.urlconf_module is None:

  File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 274, in _get_urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)

  File "/usr/lib/python2.4/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)

  File "/var/www/sense.us/mpr/qcew/urls.py", line 2, in ?
    from qcew.mpr.views import *

  File "/var/www/sense.us/mpr/qcew/mpr/views.py", line 10, in ?
    from django.shortcuts import render_to_response, get_object_or_404

  File "/usr/lib/python2.4/site-packages/django/shortcuts/__init__.py", line 10, in ?
    from django.db.models.manager import Manager

  File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 78, in ?
    connection = connections[DEFAULT_DB_ALIAS]

  File "/usr/lib/python2.4/site-packages/django/db/utils.py", line 93, in __getitem__
    backend = load_backend(db['ENGINE'])

  File "/usr/lib/python2.4/site-packages/django/db/utils.py", line 33, in load_backend
    return import_module('.base', backend_name)

  File "/usr/lib/python2.4/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)

  File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py", line 11, in ?
    import MySQLdb as Database

  File "/usr/lib/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-i686.egg/MySQLdb/__init__.py", line 19, in ?

  File "/usr/lib/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-i686.egg/_mysql.py", line 7, in ?

  File "/usr/lib/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-i686.egg/_mysql.py", line 4, in __bootstrap__

  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 881, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(

  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1351, in get_resource_filename
    self._extract_resource(manager, self._eager_to_zip(name))

  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1372, in _extract_resource
    real_path = manager.get_cache_path(

  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 962, in get_cache_path
    self.extraction_error()

  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 928, in extraction_error
    raise err

ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python egg
cache:

  [Errno 17] File exists: '/dev/null'

The Python egg cache directory is currently set to:

  /dev/null/.python-eggs

Perhaps your account does not have write access to this directory?  You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.