Modify

Opened 15 years ago

Closed 14 years ago

#5405 closed defect (duplicate)

Error when trying to upgrade database ("object has no attribute 'rollback'", PostgreSQL)

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: VotePlugin
Severity: blocker Keywords: psycopg2 rollback upgrade trac-admin
Cc: Trac Release: 0.11

Description

When trying to upgrade database after enabling voteplugin:

sp2043a tracproject # trac-admin . upgrade
/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/util/__init__.py:21: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/site-packages/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11', 'console_scripts', 'trac-admin')()
  File "/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/admin/console.py", line 1249, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/admin/console.py", line 104, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.6/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/admin/console.py", line 1103, in do_upgrade
    if not self.__env.needs_upgrade():
  File "/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/env.py", line 414, in needs_upgrade
    if participant.environment_needs_upgrade(db):
  File "build/bdist.linux-i686/egg/tracvote/__init__.py", line 142, in environment_needs_upgrade
  File "/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/db/util.py", line 36, in __getattr__
    return getattr(self.cursor, name)
  File "/usr/lib/python2.6/site-packages/Trac-0.11-py2.6.egg/trac/db/util.py", line 36, in __getattr__
    return getattr(self.cursor, name)
AttributeError: 'psycopg2._psycopg.cursor' object has no attribute 'rollback'

Trac 0.11, VotePlugin 0.11, Psycopg2 2.0.11

Attachments (0)

Change History (6)

comment:1 Changed 15 years ago by anonymous

Owner: changed from Alec Thomas to anonymous
Status: newassigned

comment:2 Changed 15 years ago by anonymous

Owner: changed from anonymous to Alec Thomas
Status: assignednew

comment:3 Changed 15 years ago by Tod Jiang

yes, I got same problem.

comment:6 Changed 14 years ago by Ryan J Ollos

Owner: changed from Alec Thomas to Ryan J Ollos

Reassigning ticket to new maintainer.

comment:7 Changed 14 years ago by Ryan J Ollos

Duplicate of #5245. Should be fixed with latest 0.11 version.

comment:8 Changed 14 years ago by Ryan J Ollos

Resolution: duplicate
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.