| ImproperlyConfigured | Python 2.4.3: /usr/bin/python Tue Feb 7 20:13:51 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home3/pablohof/public_html/beta/fcgi.py in run(self=<fcgi.Request object>) |
| 578 """Runs the handler, flushes the streams, and ends the request.""" |
| 579 try: |
| 580 protocolStatus, appStatus = self.server.handler(self) |
| 581 except: |
| 582 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>> |
| /home3/pablohof/public_html/beta/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
| 1264 try: |
| 1265 try: |
| 1266 result = self.application(environ, start_response) |
| 1267 try: |
| 1268 for data in result: |
| result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DOCUMENT_ROOT': '/home3/pablohof/public_html/beta', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'beta.notiuy.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /home/pablohof/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DOCUMENT_ROOT': '/home3/pablohof/public_html/beta', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'beta.notiuy.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 182 # settings weren't available. |
| 183 if self._request_middleware is None: |
| 184 self.load_middleware() |
| 185 |
| 186 dispatcher.send(signal=signals.request_started) |
| self = <django.core.handlers.wsgi.WSGIHandler object>, self.load_middleware = <bound method WSGIHandler.load_middleware of <django.core.handlers.wsgi.WSGIHandler object>> |
| /home/pablohof/django_src/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object>) |
| 27 mw_module, mw_classname = middleware_path[:dot], middleware_path[dot+1:] |
| 28 try: |
| 29 mod = __import__(mw_module, {}, {}, ['']) |
| 30 except ImportError, e: |
| 31 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e) |
| mod = <module 'django.middleware.common' from '/home/pablohof/django_src/django/middleware/common.pyc'>, builtin __import__ = <built-in function __import__>, mw_module = 'django.contrib.sessions.middleware' |
| /home/pablohof/django_src/django/contrib/sessions/middleware.py |
| 2 from django.contrib.sessions.models import Session |
| 3 from django.core.exceptions import SuspiciousOperation |
| 4 from django.utils.cache import patch_vary_headers |
| 5 import datetime |
| 6 |
| django undefined, Session undefined |
| /home/pablohof/django_src/django/contrib/sessions/models.py |
| 2 import cPickle as pickle |
| 3 from django.db import models |
| 4 from django.utils.translation import gettext_lazy as _ |
| 5 from django.conf import settings |
| 6 |
| django undefined, models undefined |
| /home/pablohof/django_src/django/db/__init__.py |
| 9 |
| 10 try: |
| 11 backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, {}, {}, ['']) |
| 12 except ImportError, e: |
| 13 # The database backend wasn't found. Display a helpful error message |
| backend undefined, builtin __import__ = <built-in function __import__>, settings = None, settings.DATABASE_ENGINE undefined |
| /home/pablohof/django_src/django/db/backends/postgresql_psycopg2/base.py |
| 10 except ImportError, e: |
| 11 from django.core.exceptions import ImproperlyConfigured |
| 12 raise ImproperlyConfigured, "Error loading psycopg2 module: %s" % e |
| 13 |
| 14 DatabaseError = Database.DatabaseError |
| ImproperlyConfigured = None, e = None |
ImproperlyConfigured: Error loading psycopg2 module: libpq.so.3: cannot open shared object file: No such file or directory
args =
('Error loading psycopg2 module: libpq.so.3: cannot open shared object file: No such file or directory',)