<type 'exceptions.ImportError'>
Python 2.5.2: /usr/local/bin/python
Sat Jul 4 07:24:57 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/jenee/textpress-main/build/bdist.freebsd-6.2-RELEASE-amd64/egg/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x8adc52c>)
  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/jenee/textpress-main/build/bdist.freebsd-6.2-RELEASE-amd64/egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object at 0x89a450c>, req=<flup.server.fcgi_base.Request object at 0x8adc52c>)
 1114         try:
 1115             try:
 1116                 result = self.application(environ, start_response)
 1117                 try:
 1118                     for data in result:
 /home/jenee/textpress-main/textpress/application.py in __call__(self=<textpress.application.StaticDispatcher object at 0x89a452c>, environ={'DOCUMENT_ROOT': '/opt/coolstack/lighttpd/htdocs', '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.pixellovers.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x8a84a04>)
 1074 
 1075     def __call__(self, environ, start_response):
 1076         return self.get_handler()(environ, start_response)
 1077 
 1078 
self = <textpress.application.StaticDispatcher object at 0x89a452c>, self.get_handler = <bound method StaticDispatcher.get_handler of <t...pplication.StaticDispatcher object at 0x89a452c>>, environ = {'DOCUMENT_ROOT': '/opt/coolstack/lighttpd/htdocs', '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.pixellovers.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0x8a84a04>
 /home/jenee/textpress-main/textpress/application.py in get_handler(self=<textpress.application.StaticDispatcher object at 0x89a452c>)
 1062             # websetup in.
 1063             try:
 1064                 self.application = make_textpress(self.instance_folder)
 1065             except InstanceNotInitialized:
 1066                 from textpress.websetup import WebSetup
self = <textpress.application.StaticDispatcher object at 0x89a452c>, self.application = None, global make_textpress = <function make_textpress at 0x8982d14>, self.instance_folder = '/home/jenee/blog'
 /home/jenee/textpress-main/textpress/application.py in make_textpress(instance_folder='/home/jenee/blog', bind_to_thread=False)
 1151 
 1152         # now initialize the application
 1153         app.__init__(instance_folder)
 1154     finally:
 1155         # if there was no error when setting up the TextPress instance
app = <TextPress '/home/jenee/blog' [tp_8ac244c]>, app.__init__ = <bound method TextPress.__init__ of <TextPress '/home/jenee/blog' [tp_8ac244c]>>, instance_folder = '/home/jenee/blog'
 /home/jenee/textpress-main/textpress/application.py in __init__(self=<TextPress '/home/jenee/blog' [tp_8ac244c]>, instance_folder='/home/jenee/blog')
  502         self._database_checks = [upgrade_database]
  503         self.database_engine = db.create_engine(self.cfg['database_uri'],
  504                                                 self.instance_folder)
  505 
  506         # now setup the cache system
self = <TextPress '/home/jenee/blog' [tp_8ac244c]>, self.instance_folder = '/home/jenee/blog'
 /home/jenee/textpress-main/textpress/database.py in create_engine(uri=u'postgres://jenee@localhost/blog', relative_to='/home/jenee/blog', echo=False)
   69         info.query.setdefault('charset', 'utf8')
   70 
   71     return sqlalchemy.create_engine(info, convert_unicode=True, echo=echo)
   72 
   73 
global sqlalchemy = <module 'sqlalchemy' from '/usr/local/lib/python...my-0.5.0beta2-py2.5.egg/sqlalchemy/__init__.pyc'>, sqlalchemy.create_engine = <function create_engine at 0x876e684>, info = <sqlalchemy.engine.url.URL object at 0x8ac212c>, convert_unicode undefined, builtin True = True, echo = False
 /usr/local/lib/python2.5/site-packages/SQLAlchemy-0.5.0beta2-py2.5.egg/sqlalchemy/engine/__init__.py in create_engine(*args=(<sqlalchemy.engine.url.URL object at 0x8ac212c>,), **kwargs={'convert_unicode': True, 'echo': False})
  158     strategy = kwargs.pop('strategy', default_strategy)
  159     strategy = strategies.strategies[strategy]
  160     return strategy.create(*args, **kwargs)
  161 
  162 def engine_from_config(configuration, prefix='sqlalchemy.', **kwargs):
strategy = <sqlalchemy.engine.strategies.PlainEngineStrategy object at 0x877a8ec>, strategy.create = <bound method PlainEngineStrategy.create of <sql...ategies.PlainEngineStrategy object at 0x877a8ec>>, args = (<sqlalchemy.engine.url.URL object at 0x8ac212c>,), kwargs = {'convert_unicode': True, 'echo': False}
 /usr/local/lib/python2.5/site-packages/SQLAlchemy-0.5.0beta2-py2.5.egg/sqlalchemy/engine/strategies.py in create(self=<sqlalchemy.engine.strategies.PlainEngineStrategy object at 0x877a8ec>, name_or_url=<sqlalchemy.engine.url.URL object at 0x8ac212c>, **kwargs={'echo': False})
   60                 if k in kwargs:
   61                     dbapi_args[k] = kwargs.pop(k)
   62             dbapi = dialect_cls.dbapi(**dbapi_args)
   63 
   64         dialect_args['dbapi'] = dbapi
dbapi = None, dialect_cls = <class 'sqlalchemy.databases.postgres.PGDialect'>, dialect_cls.dbapi = <bound method type.dbapi of <class 'sqlalchemy.databases.postgres.PGDialect'>>, dbapi_args = {}
 /usr/local/lib/python2.5/site-packages/SQLAlchemy-0.5.0beta2-py2.5.egg/sqlalchemy/databases/postgres.py in dbapi(cls=<class 'sqlalchemy.databases.postgres.PGDialect'>)
  323 
  324     def dbapi(cls):
  325         import psycopg2 as psycopg
  326         return psycopg
  327     dbapi = classmethod(dbapi)
psycopg2 undefined, psycopg undefined
 /home/jenee/textpress-main/textpress/pluginsystem.py in textpress_import(name='psycopg2', *args=({'PGArray': <class 'sqlalchemy.databases.postgres.PGArray'>, 'PGBigInteger': <class 'sqlalchemy.databases.postgres.PGBigInteger'>, 'PGBinary': <class 'sqlalchemy.databases.postgres.PGBinary'>, 'PGBoolean': <class 'sqlalchemy.databases.postgres.PGBoolean'>, 'PGChar': <class 'sqlalchemy.databases.postgres.PGChar'>, 'PGCidr': <class 'sqlalchemy.databases.postgres.PGCidr'>, 'PGCompiler': <class 'sqlalchemy.databases.postgres.PGCompiler'>, 'PGDate': <class 'sqlalchemy.databases.postgres.PGDate'>, 'PGDateTime': <class 'sqlalchemy.databases.postgres.PGDateTime'>, 'PGDefaultRunner': <class 'sqlalchemy.databases.postgres.PGDefaultRunner'>, ...}, None, None))
  121         if app is not None:
  122             name = 'textpress._space.%s%s' % (app.iid, name[17:])
  123     return _py_import(name, *args)
  124 
  125 
global _py_import = <built-in function __import__>, name = 'psycopg2', args = ({'PGArray': <class 'sqlalchemy.databases.postgres.PGArray'>, 'PGBigInteger': <class 'sqlalchemy.databases.postgres.PGBigInteger'>, 'PGBinary': <class 'sqlalchemy.databases.postgres.PGBinary'>, 'PGBoolean': <class 'sqlalchemy.databases.postgres.PGBoolean'>, 'PGChar': <class 'sqlalchemy.databases.postgres.PGChar'>, 'PGCidr': <class 'sqlalchemy.databases.postgres.PGCidr'>, 'PGCompiler': <class 'sqlalchemy.databases.postgres.PGCompiler'>, 'PGDate': <class 'sqlalchemy.databases.postgres.PGDate'>, 'PGDateTime': <class 'sqlalchemy.databases.postgres.PGDateTime'>, 'PGDefaultRunner': <class 'sqlalchemy.databases.postgres.PGDefaultRunner'>, ...}, None, None)
 /home/jenee/textpress-main/build/bdist.solaris-2.10-i86pc/egg/psycopg2/__init__.py in ()

<type 'exceptions.ImportError'>: cannot import name tz
      args = ('cannot import name tz',)
      message = 'cannot import name tz'