Modify

Opened 15 years ago

Closed 15 years ago

#6178 closed defect (wontfix)

Type Error

Reported by: reiter@… Owned by: Filipe Correia
Priority: normal Component: Page2DocbookPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I get these strange errors, and I have no idea how to fix them.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/web/api.py", line 367, in send_error
    'text/html')
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/web/chrome.py", line 742, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "build/bdist.linux-i686/egg/genshi/output.py", line 61, in encode
    for chunk in iterator:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "build/bdist.linux-i686/egg/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/web/chrome.py", line 796, in _generate
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298, in _match
    ctxt, start=idx + 1, **vars):
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 245, in _match
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval
    for event in substream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate
    subevent = stream.next()
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 234, in _strip
    event = stream.next()
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 520, in _eval
    result = _eval_expr(data, ctxt, **vars)
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/templates/error.html", line 171, in <Expression u'shorten_line(repr(value))'>
    <td><code>${shorten_line(repr(value))}</code></td>
  File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/resource.py", line 111, in __repr__
    return '<Resource %r>' % (', '.join(reversed(path)))
TypeError: sequence item 0: expected string, NoneType found

I installed Page2Docbook 0.6.3. I also have some other plugins installed, some of them written myself (but they don't seem to be involved here).

Attachments (0)

Change History (7)

comment:1 Changed 15 years ago by Filipe Correia

Will keep you posted, but probably will be able to look into this only next month.

comment:2 Changed 15 years ago by Filipe Correia

Btw, does this happen with all of your wiki pages or only with some of them?

comment:3 Changed 15 years ago by anonymous

There two cases:

  1. The above error message appears
  2. The page loads and loads and loads and does not finish loading.

comment:4 in reply to:  3 Changed 15 years ago by Filipe Correia

Replying to anonymous:

There two cases:

  1. The above error message appears
  2. The page loads and loads and loads and does not finish loading.

And does this happens for the same wikipage interchangeably, at different times?

comment:5 Changed 15 years ago by reiter@…

Yes. The StartingPage always produces such a timeout problem. Another page always produces the error message.

comment:6 in reply to:  5 Changed 15 years ago by Filipe Correia

Replying to reiter@cl.uni-heidelberg.de:

Yes. The StartingPage always produces such a timeout problem. Another page always produces the error message.

Could you please provide an example of a wiki page that produces the error? I am not being able to reproduce the same error here.

comment:7 Changed 15 years ago by reiter@…

Resolution: wontfix
Status: newclosed

I've tracked down the problem to something related to the Webserver or mod_python.

The problem occurs with all trac-environment on the server, but if I use the same environment with tracd, everything works fine. So it's apparently not a defect of the plugin. I'll close the ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Filipe Correia.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.