| AssertionError | Python 2.4.4: /usr/local/bin/python Fri Jul 25 14:51:19 2008 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/local/lib/python2.4/site-packages/trac/web/_fcgi.py in run(self=<trac.web._fcgi.Request object>) |
| 565 """Runs the handler, flushes the streams, and ends the request.""" |
| 566 try: |
| 567 protocolStatus, appStatus = self.server.handler(self) |
| 568 except: |
| 569 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <trac.web._fcgi.Request object>, self.server = <trac.web._fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <trac.web._fcgi.WSGIServer object>> |
| /usr/local/lib/python2.4/site-packages/trac/web/_fcgi.py in handler(self=<trac.web._fcgi.WSGIServer object>, req=<trac.web._fcgi.Request object>) |
| 1242 self._app_lock.acquire() |
| 1243 try: |
| 1244 result = self.application(environ, start_response) |
| 1245 try: |
| 1246 for data in result: |
| result = None, self = <trac.web._fcgi.WSGIServer object>, self.application = <function dispatch_request>, environ = {'DOCUMENT_ROOT': '/var/www/sites/melange.recoil.org', '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': 'melange.recoil.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /usr/local/lib/python2.4/site-packages/trac/web/main.py in dispatch_request(environ={'DOCUMENT_ROOT': '/var/www/sites/melange.recoil.org', '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': 'melange.recoil.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 300 'missing. Trac requires one of these options ' |
| 301 'to locate the Trac environment(s).') |
| 302 env = _open_environment(env_path, run_once=environ['wsgi.run_once']) |
| 303 |
| 304 if env.base_url: |
| env undefined, global _open_environment = <function _open_environment>, env_path = '/home/data/trac', run_once undefined, environ = {'DOCUMENT_ROOT': '/var/www/sites/melange.recoil.org', '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': 'melange.recoil.org', 'HTTP_PRAGMA': 'no-cache', ...} |
| /usr/local/lib/python2.4/site-packages/trac/web/main.py in _open_environment(env_path='/home/data/trac', run_once=False) |
| 55 try: |
| 56 if not env_path in env_cache: |
| 57 env_cache[env_path] = open_environment(env_path) |
| 58 env = env_cache[env_path] |
| 59 finally: |
| global env_cache = {}, env_path = '/home/data/trac', global open_environment = <function open_environment> |
| /usr/local/lib/python2.4/site-packages/trac/env.py in open_environment(env_path='/home/data/trac') |
| 430 |
| 431 env = Environment(env_path) |
| 432 if env.needs_upgrade(): |
| 433 raise TracError, 'The Trac Environment needs to be upgraded. Run ' \ |
| 434 'trac-admin %s upgrade"' % env_path |
| env = <trac.env.Environment object>, env.needs_upgrade = <bound method Environment.needs_upgrade of <trac.env.Environment object>> |
| /usr/local/lib/python2.4/site-packages/trac/env.py in needs_upgrade(self=<trac.env.Environment object>) |
| 308 def needs_upgrade(self): |
| 309 """Return whether the environment needs to be upgraded.""" |
| 310 db = self.get_db_cnx() |
| 311 for participant in self.setup_participants: |
| 312 if participant.environment_needs_upgrade(db): |
| db undefined, self = <trac.env.Environment object>, self.get_db_cnx = <bound method Environment.get_db_cnx of <trac.env.Environment object>> |
| /usr/local/lib/python2.4/site-packages/trac/env.py in get_db_cnx(self=<trac.env.Environment object>) |
| 180 def get_db_cnx(self): |
| 181 """Return a database connection from the connection pool.""" |
| 182 return DatabaseManager(self).get_connection() |
| 183 |
| 184 def shutdown(self): |
| global DatabaseManager = <class 'trac.db.api.DatabaseManager'>, self = <trac.env.Environment object>, ).get_connection undefined |
| /usr/local/lib/python2.4/site-packages/trac/db/api.py in get_connection(self=<trac.db.api.DatabaseManager object>) |
| 69 connector, args = self._get_connector() |
| 70 self._cnx_pool = ConnectionPool(5, connector, **args) |
| 71 return self._cnx_pool.get_cnx() |
| 72 |
| 73 def shutdown(self): |
| self = <trac.db.api.DatabaseManager object>, self._cnx_pool = <trac.db.pool.ConnectionPool object>, self._cnx_pool.get_cnx = <bound method ConnectionPool.get_cnx of <trac.db.pool.ConnectionPool object>> |
| /usr/local/lib/python2.4/site-packages/trac/db/pool.py in get_cnx(self=<trac.db.pool.ConnectionPool object>, timeout=None) |
| 73 break |
| 74 elif self._maxsize and self._cursize < self._maxsize: |
| 75 cnx = self._connector.get_connection(**self._kwargs) |
| 76 self._cursize += 1 |
| 77 break |
| cnx undefined, self = <trac.db.pool.ConnectionPool object>, self._connector = <trac.db.sqlite_backend.SQLiteConnector object>, self._connector.get_connection = <bound method SQLiteConnector.get_connection of <trac.db.sqlite_backend.SQLiteConnector object>>, self._kwargs = {'path': u'/home/data/trac/db/trac.db'} |
| /usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py in get_connection(self=<trac.db.sqlite_backend.SQLiteConnector object>, path=u'/home/data/trac/db/trac.db', params={}) |
| 105 |
| 106 def get_connection(self, path, params={}): |
| 107 return SQLiteConnection(path, params) |
| 108 |
| 109 def init_db(cls, path, params={}): |
| global SQLiteConnection = <class 'trac.db.sqlite_backend.SQLiteConnection'>, path = u'/home/data/trac/db/trac.db', params = {} |
| /usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py in __init__(self=<trac.db.sqlite_backend.SQLiteConnection object>, path=u'/home/data/trac/db/trac.db', params={}) |
| 132 |
| 133 def __init__(self, path, params={}): |
| 134 assert have_pysqlite > 0 |
| 135 self.cnx = None |
| 136 if path != ':memory:': |
| global have_pysqlite = 0 |
AssertionError:
args =
()