[MacPorts] #52685: IndexError: pop from empty list
#52685: IndexError: pop from empty list ---------------------+-------------------------------- Reporter: Klaus59 | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: ---------------------+-------------------------------- ==== 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/52685> MacPorts <https://www.macports.org/> Ports system for OS X
#52685: IndexError: pop from empty list -----------------------------+--------------------- Reporter: Klaus59 | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Changes (by larryv): * cc: neverpanic, raimue (added) * owner: macports-tickets@… => admin@… * version: 2.3.4 => * component: ports => server/hosting -- Ticket URL: <https://trac.macports.org/ticket/52685#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#52685: IndexError: pop from empty list -----------------------------+--------------------- Reporter: Klaus59 | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Changes (by neverpanic): * Attachment "file" added. dummy file to test attaching files -- Ticket URL: <https://trac.macports.org/ticket/52685> MacPorts <https://www.macports.org/> Ports system for OS X
#52685: IndexError: pop from empty list -----------------------------+--------------------- Reporter: Klaus59 | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Comment (by neverpanic): That URL works fine for me. I cannot reproduce the problem. -- Ticket URL: <https://trac.macports.org/ticket/52685#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#52685: IndexError: pop from empty list -----------------------------+--------------------- Reporter: Klaus59 | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Comment (by neverpanic): 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. -- Ticket URL: <https://trac.macports.org/ticket/52685#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#52685: IndexError: pop from empty list -----------------------------+--------------------- Reporter: Klaus59 | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Comment (by neverpanic): See - https://trac.edgewall.org/wiki/TracFaq?version=21#Q:WhydoIseeIndexError:popf... - 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. -- Ticket URL: <https://trac.macports.org/ticket/52685#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#52685: IndexError: pop from empty list -----------------------------+--------------------- Reporter: Klaus59 | Owner: admin@… Type: defect | Status: closed Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: fixed | Keywords: Port: | -----------------------------+--------------------- Changes (by neverpanic): * status: new => closed * resolution: => fixed Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/52685#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts