Edgewall Software

Opened 13 years ago

Last modified 13 years ago

#9059 closed defect

Error in trac-admin env upgrade - AttributeError: 'Environment' object has no attribute 'env' — at Initial Version

Reported by: piotr@… Owned by:
Priority: high Milestone: 0.12
Component: admin/console Version: 0.12dev
Severity: trivial Keywords: env.py transaction
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It is now imposible to upgrade trac environment, due to the aforementioned error.

Stack trace is: 2010-02-15 16:11:15,448 Trac[console] ERROR: Exception in trac-admin command: Traceback (most recent call last):

File "build/bdist.linux-i686/egg/trac/admin/console.py", line 107, in onecmd

rv = cmd.Cmd.onecmd(self, line) or 0

File "/usr/lib/python2.6/cmd.py", line 218, in onecmd

return self.default(line)

File "build/bdist.linux-i686/egg/trac/admin/console.py", line 251, in default

return cmd_mgr.execute_command(*args)

File "build/bdist.linux-i686/egg/trac/admin/api.py", line 118, in execute_command

return f(*fargs)

File "build/bdist.linux-i686/egg/trac/env.py", line 745, in _do_upgrade

self.env.upgrade(backup=no_backup is None)

File "build/bdist.linux-i686/egg/trac/env.py", line 491, in upgrade

@with_transaction(self.env)

AttributeError: 'Environment' object has no attribute 'env'

This was probably introduced with improvement of transaction handling in changeset #9183

Change History (0)

Note: See TracTickets for help on using tickets.