<class 'django.core.exceptions.ImproperlyConfigured'>
Python 2.5.1: /home/speechra/local/python2.5/bin/python2.5
Sat Jul 4 20:32:51 2009

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/speechra/public_html/build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x7f0c088806d0>)
  556         """Runs the handler, flushes the streams, and ends the request."""
  557         try:
  558             protocolStatus, appStatus = self.server.handler(self)
  559         except:
  560             traceback.print_exc(file=self.stderr)
 /home/speechra/public_html/build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object at 0x7f0c09099d50>, req=<flup.server.fcgi_base.Request object at 0x7f0c088806d0>)
 1110         try:
 1111             try:
 1112                 result = self.application(environ, start_response)
 1113                 try:
 1114                     for data in result:
 /home/speechra/local/python2.5/lib/python2.5/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x7f0c0907cbd0>, environ={'DOCUMENT_ROOT': '/home/speechra/public_html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'www.speechrate.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x7f0c09080d70>)
  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 at 0x7f0c0907cbd0>, self.load_middleware = <bound method WSGIHandler.load_middleware of <dj...dlers.wsgi.WSGIHandler object at 0x7f0c0907cbd0>>
 /home/speechra/local/python2.5/lib/python2.5/site-packages/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object at 0x7f0c0907cbd0>)
   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/s...n2.5/site-packages/django/middleware/common.pyc'>, builtin __import__ = <built-in function __import__>, mw_module = 'django.contrib.sessions.middleware'
 /home/speechra/local/python2.5/lib/python2.5/site-packages/django/contrib/sessions/middleware.py in ()
    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/speechra/local/python2.5/lib/python2.5/site-packages/django/contrib/sessions/models.py in ()
    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/speechra/local/python2.5/lib/python2.5/site-packages/django/db/__init__.py in ()
    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/speechra/local/python2.5/lib/python2.5/site-packages/django/db/backends/postgresql/base.py in ()
   10 except ImportError, e:
   11     from django.core.exceptions import ImproperlyConfigured
   12     raise ImproperlyConfigured, "Error loading psycopg module: %s" % e
   13 
   14 DatabaseError = Database.DatabaseError
ImproperlyConfigured = None, e = None

<class 'django.core.exceptions.ImproperlyConfigured'>: Error loading psycopg module: libpq.so.3: cannot open shared object file: No such file or directory