Opened 8 years ago

Closed 8 years ago

#7682 closed defect (fixed)

trac-admin upgrade fails on first install

Reported by: Robert Corsaro Owned by: Martin Scharrer
Priority: normal Component: WatchlistPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11


Using r8856

Line 175 in is:

            return int(valuelist[0])

and should be:

            if valuelist:
                return int(valuelist[0])
            return 0

or at least TypeError: 'NoneType' object is unsubscriptable should be caught.

19:28:17 Trac[env] INFO: tracwatchlist.db.WatchlistDataBase upgrading...
TypeError: 'NoneType' object is unsubscriptable
19:28:17 Trac[console] ERROR: Exception in trac-admin command: 
Traceback (most recent call last):
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/trac/admin/", line 107, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.6/", line 218, in onecmd
    return self.default(line)
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/trac/admin/", line 257, in default
    return cmd_mgr.execute_command(*args)
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/trac/admin/", line 123, in execute_command
    return f(*fargs)
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/trac/", line 790, in _do_upgrade
    self.env.upgrade(backup=no_backup is None)
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/trac/", line 533, in upgrade
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/trac/db/", line 77, in transaction_wrapper
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/tracwatchlist/", line 110, in upgrade_environment
    old_version = self.get_version(db)
  File "/home/doki_pen/th-announcer/lib/python2.6/site-packages/tracwatchlist/", line 176, in get_version
    return int(valuelist[0])
TypeError: 'NoneType' object is unsubscriptable

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by Martin Scharrer

Status: newassigned

Thanks for reporting this. It should be fixed in [8863]. Could you please verify this.

Please also note that the dev branch isn't fully stable at the moment. You might be required to reset all your watched resources and settings when the stable version is released. I actually have to put this on the WatchlistPlugin wiki page.

comment:2 Changed 8 years ago by Robert Corsaro

Yeah, I'll check it out. No worries, about dev stream. It's my dev environment I'm working on.

comment:3 Changed 8 years ago by Robert Corsaro

Resolution: fixed
Status: assignedclosed

Working fine now.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Martin Scharrer.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.