TracHours causes internal error after migration from SQLite to PostgreSQL
|Reported by:||Owned by:|
Description (last modified by )
When I enable TracHours on a Trac that I migrated from sqlite to postgresql, I get and IndexError: list index out of range error every time I try to view a ticket.
The traceback is
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 219, in dispatch data, content_type) File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 690, in render_template stream |= self._filter_stream(req, method, filename, stream, data) File "/usr/lib64/python2.4/site-packages/genshi/core.py", line 128, in __or__ return Stream(_ensure(function(self)), serializer=self.serializer) File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 777, in inner data) File "/usr/lib/python2.4/site-packages/TracHoursPlugin-0.2.-py2.4.egg/trachours/hours.py", line 244, in filter_stream stream = handler(req, stream, data) File "/usr/lib/python2.4/site-packages/TracHoursPlugin-0.2.-py2.4.egg/trachours/hours.py", line 1017, in filter_ticket totalhours = [ field for field in data['fields'] if field['name'] == 'totalhours' ]
From reading elsewhere, it appears that this might have something to do with sequences in Postgresql not being updated properly in the migration. However, I thought I'd report it here because others seems might be having the same problem.
Change History (7)
comment:5 Changed 6 years ago by
|Summary:||TracHours causes internal error after → TracHours causes internal error after migration from SQLite to PostgreSQL|