Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #209 (closed defect: invalid)

Opened 14 years ago

Last modified 12 years ago

Comment on docs/wiki20/page3.html

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords:


Rather than seeing "our beautiful page", I received this instead:

Traceback (most recent call last):
  File "c:\python\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py", line 271, in run
  File "c:\python\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py", line 502, in main
    body = page_handler(*args, **cherrypy.request.paramMap)
  File "c:\python\lib\site-packages\TurboGears-0.8a5-py2.4.egg\turbogears\controllers.py", line 122, in newfunc
    return controllers._process_output(tg_format, output, html)
  File "c:\python\lib\site-packages\TurboGears-0.8a5-py2.4.egg\turbogears\controllers.py", line 38, in _process_output
    output = view.render(output, tg_format, template=template)
  File "c:\python\lib\site-packages\TurboGears-0.8a5-py2.4.egg\turbogears\view.py", line 93, in render
    tclass = lookupTemplate(template)
  File "c:\python\lib\site-packages\TurboGears-0.8a5-py2.4.egg\turbogears\view.py", line 69, in lookupTemplate
    mod = kid.load_template(tfile, name=classname)
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\__init__.py", line 119, in load_template
    code = template.compile(dump_code=cache, dump_source=os.environ.get('KID_OUTPUT_PY'))
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\compiler.py", line 87, in compile
    code = self.code
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\compiler.py", line 101, in code
    self._code = py_compile(self.python, pyfile, 'exec')
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\compiler.py", line 108, in python
    py = kid.parser.parse_file(self.kid_file, self.encoding)
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\parser.py", line 56, in parse_file
    return parse(source, encoding, filename=filename)
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\parser.py", line 45, in parse
    return parser.parse()
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\parser.py", line 72, in parse
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\parser.py", line 127, in proc_stream
    for (ev, item) in self.stream:
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\pull.py", line 164, in _track
    for p in stream:
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\pull.py", line 203, in _coalesce
    for ev, item in stream:
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\pull.py", line 367, in __iter__
    for (ev, stuff) in self._expat_stream():
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\pull.py", line 339, in _expat_stream
  File "c:\python\lib\site-packages\kid-0.8-py2.4.egg\kid\pull.py", line 407, in feed
    raise e
ExpatError: unbound prefix: line 2, column 9

Change History

comment:1 Changed 14 years ago by anonymous

This is not so much a defect in the product as it is in the documentation for those following along with copy and paste (it's a quickstart tutorial, it's all about speed). The text for page.kid really should consist of the entire xml document, not just the replaced body element. I simply had a poorly formed XML document, but the error message was just supremely unhelpful there (though I consider this "dump the raw traceback on malformed XML" behavior to be a defect in Kid)

comment:2 Changed 14 years ago by SuperJared <jared.kuolt@…>

  • Status changed from new to closed
  • Resolution set to invalid

I think this should be resolved by TG 0.9. The Kid traceback freakout is unacceptable; especially to newbies.

Note: See TracTickets for help on using tickets.