Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#6707 closed defect (fixed)

Exception when upgrading via trac-admin

Reported by: haf@… Owned by: Martin Scharrer
Priority: normal Component: WatchlistPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Installed the plugin on trac 11.5 with Py 2.6. When running trac-admin upgrade, I get the following exception:

Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11.5', 'console_scripts', 'trac-admin')()
  File "/usr/lib/python2.6/dist-packages/trac/admin/console.py", line 1314, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.6/dist-packages/trac/admin/console.py", line 133, 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/dist-packages/trac/admin/console.py", line 1154, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "/usr/lib/python2.6/dist-packages/trac/env.py", line 457, in upgrade
    participant.upgrade_environment(db)
  File "build/bdist.linux-x86_64/egg/tracwatchlist/plugin.py", line 644, in upgrade_environment
TypeError: %d format: a number is required, not NoneType

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by Ivan

I just comment the line 644 in plugin.py and run trac-admin upgrade again. It works for me now. I used Trac 0.12dev.

comment:2 Changed 15 years ago by Martin Scharrer

Resolution: fixed
Status: newclosed

(In [7979]) tracwatchlist/plugin.py:: Made DB update info robust to fix #6707.

comment:3 Changed 15 years ago by Martin Scharrer

Trac Release: 0.110.12

This should be fixed now for good. It might have been already fixed by the changes made for #6238.

comment:4 Changed 15 years ago by Martin Scharrer

(In [7980]) tracwatchlist/plugin.py:: Backported changes made in #7979: made DB update info more robust to fix #6707.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Martin Scharrer.
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.