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/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/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} |
| /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) |