Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#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 Christian Boos, 18 years ago

Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Severity: majornormal
Status: newassigned

One value in the env.systeminfo is probably set to None.

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.

comment:2 by Emmanuel Blot, 18 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.

comment:3 by Christian Boos, 18 years ago

Resolution: fixed
Status: assignedclosed

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).

in reply to:  3 comment:4 by Emmanuel Blot, 18 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.