Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6707 closed defect (fixed)

Exception when upgrading via trac-admin

Reported by: haf@… Owned by: martin_s
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 5 years ago by Drops

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 5 years ago by martin_s

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 5 years ago by martin_s

  • Trac Release changed from 0.11 to 0.12

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

comment:4 Changed 5 years ago by martin_s

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

Add Comment

Modify Ticket

Action
as closed The owner will remain martin_s.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.