| AssertionError | Python 2.3.5: /home/fweez/bin/python Wed Mar 10 06:22:16 2010 |
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/fweez/lib/python2.3/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.Server object>, self.server.handler = <function _handler> |
| /home/fweez/lib/python2.3/site-packages/trac/web/fcgi_frontend.py in _handler(_req=<trac.web._fcgi.Request object>) |
| 31 def _handler(_req): |
| 32 req = CGIRequest(_req.params, _req.stdin, _req.stdout) |
| 33 env = get_environment(req, os.environ) |
| 34 |
| 35 if not env: |
| env undefined, global get_environment = <function get_environment>, req = <trac.web.cgi_frontend.CGIRequest object>, global os = <module 'os' from '/home/fweez/lib/python2.3/os.pyc'>, os.environ = {'SHLVL': '0', 'PATH': '/usr/local/bin:/usr/bin:...cells.pdxcb.net/trac', 'RAILS_ENV': 'production'} |
| /home/fweez/lib/python2.3/site-packages/trac/web/main.py in get_environment(req=<trac.web.cgi_frontend.CGIRequest object>, options={'SHLVL': '0', 'PATH': '/usr/local/bin:/usr/bin:...cells.pdxcb.net/trac', 'RAILS_ENV': 'production'}, threaded=True) |
| 331 'or the mod_python options "TracEnv" or "TracEnvParentDir" ' \ |
| 332 'are missing. Trac requires one of these options to locate ' \ |
| 333 'the Trac environment(s).' |
| 334 |
| 335 return _open_environment(env_path, threaded) |
| global _open_environment = <function _open_environment>, env_path = '/home/fweez/pycells.pdxcb.net/trac', threaded = True |
| /home/fweez/lib/python2.3/site-packages/trac/web/main.py in _open_environment(env_path='/home/fweez/pycells.pdxcb.net/trac', threaded=True) |
| 49 try: |
| 50 if not env_path in env_cache: |
| 51 env_cache[env_path] = open_environment(env_path) |
| 52 env = env_cache[env_path] |
| 53 finally: |
| global env_cache = {}, env_path = '/home/fweez/pycells.pdxcb.net/trac', global open_environment = <function open_environment> |
| /home/fweez/lib/python2.3/site-packages/trac/env.py in open_environment(env_path='/home/fweez/pycells.pdxcb.net/trac') |
| 373 |
| 374 env = Environment(env_path) |
| 375 if env.needs_upgrade(): |
| 376 raise TracError, 'The Trac Environment needs to be upgraded. Run ' \ |
| 377 'trac-admin %s upgrade"' % env_path |
| env = <trac.env.Environment object>, env.needs_upgrade = <bound method Environment.needs_upgrade of <trac.env.Environment object>> |
| /home/fweez/lib/python2.3/site-packages/trac/env.py in needs_upgrade(self=<trac.env.Environment object>) |
| 277 def needs_upgrade(self): |
| 278 """Return whether the environment needs to be upgraded.""" |
| 279 db = self.get_db_cnx() |
| 280 for participant in self.setup_participants: |
| 281 if participant.environment_needs_upgrade(db): |
| global db = <module 'trac.db' from '/home/fweez/lib/python2.3/site-packages/trac/db.pyc'>, self = <trac.env.Environment object>, self.get_db_cnx = <bound method Environment.get_db_cnx of <trac.env.Environment object>> |
| /home/fweez/lib/python2.3/site-packages/trac/env.py in get_db_cnx(self=<trac.env.Environment object>) |
| 135 if not self.__cnx_pool: |
| 136 self.__cnx_pool = db.get_cnx_pool(self) |
| 137 return self.__cnx_pool.get_cnx() |
| 138 |
| 139 def shutdown(self): |
| self = <trac.env.Environment object>, self.__cnx_pool undefined |
| /home/fweez/lib/python2.3/site-packages/trac/db.py in get_cnx(self=<trac.db.ConnectionPool object>, timeout=None) |
| 155 break |
| 156 elif self._maxsize and self._cursize < self._maxsize: |
| 157 cnx = self._cnx_class(**self._args) |
| 158 self._cursize += 1 |
| 159 break |
| cnx undefined, self = <trac.db.ConnectionPool object>, self._cnx_class = <class 'trac.db.SQLiteConnection'>, self._args = {'path': '/home/fweez/pycells.pdxcb.net/trac/db/trac.db'} |
| /home/fweez/lib/python2.3/site-packages/trac/db.py in __init__(self=<trac.db.SQLiteConnection object>, path='/home/fweez/pycells.pdxcb.net/trac/db/trac.db', params={}) |
| 254 |
| 255 def __init__(self, path, params={}): |
| 256 assert have_pysqlite > 0 |
| 257 self.cnx = None |
| 258 if path != ':memory:': |
| global have_pysqlite = 0 |
AssertionError:
args =
()