Edgewall Software

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12652 closed defect (cantfix)

trac-admin upgrade (from 1.0) error: 'Environment' object has no attribute 'get_db_cnx' — at Version 1

Reported by: strk@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

I have a trac 1.0 test deploy which I'm trying to upgrade to 1.2 but it fails at the trac-admin upgrade step:

[strk@cdb:/var/www/trac] sudo easy_install --upgrade Trac==1.0
[strk@cdb:/var/www/trac] trac-admin /var/www/trac upgrade
Database is up to date, no upgrade necessary.
[strk@cdb:/var/www/trac] sudo easy_install --upgrade Trac==1.2
[strk@cdb:/var/www/trac] trac-admin /var/www/trac upgrade
Error: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Change History (1)

comment:1 by Jun Omae, 7 years ago

Description: modified (diff)
Resolution: cantfix
Status: newclosed

InstallationIssue. I believe installed plugins lead the issue. Please check whether installed plugins are supporting Trac 1.2.x before upgrading to Trac 1.2.

If you don't use any plugins, please reopen this ticket and post trac.log with DEBUG level while trac-admin $ENV upgrade.

Note: See TracTickets for help on using tickets.