Database upgrade silently fails when no i18n is available
|Reported by:||dbely||Owned by:|
trac-admin </path/to/projenv> upgrade
Database is up to date, no upgrade necessary.
But actually there was an error:
2010-11-16 17:07:46,643 Trac[loader] ERROR: Skipping "announcer.api = announcer.api": Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/trac/loader.py", line 70, in _load_eggs entry.load(require=True) File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/local/lib/python2.6/dist-packages/TracAnnouncer-0.12.1.dev-py2.6.egg/announcer/api.py", line 393, in <module> domain_functions('announcer', ('_', 'tag_', 'N_', 'add_domain')) ValueError: need more than 1 value to unpack)
and the database is not upgraded. Due to the same bug an attempt to open Administration->Plugins would fail with "Internal Server Error"
The attached patch is my quick and dirty attempt to fix the problem.
Change History (6)
Changed 6 years ago by dbely
comment:1 Changed 6 years ago by dbely
- Summary changed from Database upgrade silently fails when no i10n is available to Database upgrade silently fails when no i18n is available
comment:3 Changed 4 years ago by hasienda
- Keywords i18n added
- Owner changed from doki_pen to hasienda