#4545 closed defect (fixed)
Error while displaying an error (iterable argument required)
| Reported by: | Emmanuel Blot | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Using the trunk [4575].
Context: Trac is attempting to load the th:RevtreePlugin. For some reason, Trac fails to load it, and I suppose is trying to render the error when the following traceback occurs:
Traceback (most recent call last):
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/api.py", line 329, in send_error
'text/html')
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/chrome.py", line 552, in render_template
return stream.render(method, doctype=doctype)
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 141, in render
output = u''.join(list(generator))
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/output.py", line 203, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/output.py", line 491, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/output.py", line 439, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 202, in _ensure
for event in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 202, in _ensure
for event in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/chrome.py", line 580, in _strip_accesskeys
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 202, in _ensure
for event in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/chrome.py", line 569, in _generate
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/filters.py", line 147, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 1149, in _match
content = list(content)
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/filters.py", line 147, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 1123, in _match
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 1112, in _strip
kind, data, pos = stream.next()
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 946, in _eval
for event in substream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 925, in _eval
result = data.evaluate(ctxt)
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/eval.py", line 102, in evaluate
{'data': data})
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/templates/error.html", line 51, in <Expression u""\\n" in v and ["`%s`[[br]]" % line for line in v.split("\\n")] or "`%s`" % v">
</py:for>
TypeError: iterable argument required
I'm not sure whether it is a 'genshi' or Trac issue. Sorry if I'm wrong.
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
| Milestone: | → 0.11 |
|---|---|
| Owner: | changed from to |
| Severity: | major → normal |
| Status: | new → assigned |
comment:2 by , 19 years ago
Yes, [4576] fixed the problem. Thanks a lot. Genshi release is not reported in the system info table - I'm not sure whether it should be, as I'm not using an egg file for it.
follow-up: 4 comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Ok, I see. You don't necessarily need to build an egg, but with setuptools, you could do at least python setup.py develop and the Trac system information would then be able to report the right version number, including the SVN revision info (e.g. 0.4dev-r467).
comment:4 by , 19 years ago
Replying to cboos:
Ok, I see. You don't necessarily need to build an egg, but with setuptools, you could do at least
python setup.py develop
Yeah, for the sake of debugging, I'll do that. Thanks.



One value in the
env.systeminfois probably set toNone.Try out r4576, this will show one empty value in the system info table, and this is possibly a second thing to fix, so I'm not closing the ticket right away.