Opened 8 years ago
Closed 8 years ago
#52685 closed defect (fixed)
IndexError: pop from empty list
Reported by: | Klaus59 | Owned by: | admin@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | server/hosting | Version: | |
Keywords: | Cc: | neverpanic (Clemens Lang), raimue (Rainer Müller) | |
Port: |
Description
Zum Reproduzieren
Während der Ausführung von GET auf /attachment/ticket/52684/
hat Trac einen internen Fehler gemeldet.
(Bitte geben Sie hier weitere Details an)
Anfrageparameter:
{u'action': u'new', 'path': u'52684/', 'realm': u'ticket'}
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0
Systeminformationen
Systeminformation nicht verfügbar
Aktive Plugins
Plugininformation nicht verfügbar
Python-Zurückverfolgungsinformationen
Traceback (most recent call last): File "/var/www/trac/virtualenv/lib/python2.7/site-packages/trac/web/main.py", line 562, in _dispatch_request dispatcher.dispatch(req) File "/var/www/trac/virtualenv/lib/python2.7/site-packages/trac/web/main.py", line 269, in dispatch iterable=chrome.use_chunked_encoding) File "/var/www/trac/virtualenv/lib/python2.7/site-packages/trac/web/chrome.py", line 1115, in render_template encoding='utf-8') File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 184, in render return encode(generator, method=method, encoding=encoding, out=out) File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 58, in encode for chunk in iterator: File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 350, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 829, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 669, in __call__ for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 774, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/usr/lib/python2.7/dist-packages/genshi/output.py", line 594, in __call__ for ev in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/var/www/trac/virtualenv/lib/python2.7/site-packages/trac/web/chrome.py", line 1321, in _strip_accesskeys for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/var/www/trac/virtualenv/lib/python2.7/site-packages/trac/web/chrome.py", line 1310, in _generate for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/filters/transform.py", line 706, in _unmark for mark, event in stream: File "/usr/lib/python2.7/dist-packages/genshi/filters/transform.py", line 1101, in __call__ for mark, event in stream: File "/usr/lib/python2.7/dist-packages/genshi/filters/transform.py", line 118, in __iter__ event = self.stream.next() File "/usr/lib/python2.7/dist-packages/genshi/filters/transform.py", line 734, in __call__ for mark, event in stream: File "/usr/lib/python2.7/dist-packages/genshi/filters/transform.py", line 702, in _mark for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 618, in _include for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/usr/lib/python2.7/dist-packages/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/usr/lib/python2.7/dist-packages/genshi/template/markup.py", line 326, in _match for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 558, in _flatten for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/path.py", line 588, in _generate subevent = next() File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 618, in _include for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/template/markup.py", line 315, in _strip event = next() File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 558, in _flatten for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/path.py", line 588, in _generate subevent = next() File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 618, in _include for event in stream: File "/usr/lib/python2.7/dist-packages/genshi/template/markup.py", line 315, in _strip event = next() File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 558, in _flatten for kind, data, pos in stream: File "/usr/lib/python2.7/dist-packages/genshi/filters/i18n.py", line 178, in _generate for event in msgbuf.translate(gettext(msgbuf.format())): File "/usr/lib/python2.7/dist-packages/genshi/filters/i18n.py", line 1051, in translate events = self.events[order].pop(0) IndexError: pop from empty list
Attachments (1)
Change History (6)
comment:1 Changed 8 years ago by larryv (Lawrence Velázquez)
Cc: | neverpanic raimue added |
---|---|
Component: | ports → server/hosting |
Owner: | changed from macports-tickets@… to admin@… |
Version: | 2.3.4 |
Changed 8 years ago by neverpanic (Clemens Lang)
comment:2 Changed 8 years ago by neverpanic (Clemens Lang)
That URL works fine for me. I cannot reproduce the problem.
comment:3 Changed 8 years ago by neverpanic (Clemens Lang)
Problem found, it happens when the German locale is selected. Workaround: Set Trac to english in https://trac.macports.org/prefs/language. I'll look into the details.
comment:4 Changed 8 years ago by neverpanic (Clemens Lang)
See
- https://trac.edgewall.org/wiki/TracFaq?version=21#Q:WhydoIseeIndexError:popfromemptylistwhentryingtoaddanattachment
- https://trac.edgewall.org/ticket/11184
- https://genshi.edgewall.org/ticket/566
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775746
So it seems this bug affects us because Debian hasn't backported the fix into their current stable version, which we use as the source for genshi. I'll switch to a separate newer genshi installation with the fix.
comment:5 Changed 8 years ago by neverpanic (Clemens Lang)
Resolution: | → fixed |
---|---|
Status: | new → closed |
There is no new Genshi release with the fix. The latest releases are currently 0.6.1 and 0.7, both of which suffer from the problem.
I downgraded to Genshi 0.6.0, which solves the issue. Thank you for the report.
dummy file to test attaching files