It looks like there is an error in your template, that you've missed a
end tag or something

On 10/25/05, elake <[EMAIL PROTECTED]> wrote:
>
> I have tried to go through the turorial 2 or 3 times but I have errors
> each time. I get to the
>
> tg-admin shell
> Page(pagename="FrontPage", data="Welcome to my front page")
>
> and then when I reload the page I get a 500 error that shows the output
> below. What am I doing wrong?
>
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.1.0_rc2-py2.4.egg/cherrypy/_cphttptools.py",
> line 271, in run
>     main()
>   File
> "/usr/lib/python2.4/site-packages/CherryPy-2.1.0_rc2-py2.4.egg/cherrypy/_cphttptools.py",
> line 502, in main
>     body = page_handler(*args, **cherrypy.request.paramMap)
>   File
> "/usr/lib/python2.4/site-packages/TurboGears-0.8a3-py2.4.egg/turbogears/controllers.py",
> line 122, in newfunc
>     return controllers._process_output(tg_format, output, html)
>   File
> "/usr/lib/python2.4/site-packages/TurboGears-0.8a3-py2.4.egg/turbogears/controllers.py",
> line 38, in _process_output
>     output = view.render(output, tg_format, template=template)
>   File
> "/usr/lib/python2.4/site-packages/TurboGears-0.8a3-py2.4.egg/turbogears/view.py",
> line 93, in render
>     tclass = lookupTemplate(template)
>   File
> "/usr/lib/python2.4/site-packages/TurboGears-0.8a3-py2.4.egg/turbogears/view.py",
> line 69, in lookupTemplate
>     mod = kid.load_template(tfile, name=classname)
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/__init__.py",
> line 118, in load_template
>     code = template.compile(dump_code=cache)
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/compiler.py",
> line 87, in compile
>     code = self.code
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/compiler.py",
> line 101, in code
>     self._code = py_compile(self.python, pyfile, 'exec')
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/compiler.py",
> line 108, in python
>     py = kid.parser.parse_file(self.kid_file, self.encoding)
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/parser.py",
> line 55, in parse_file
>     return parse(source, encoding, filename=filename)
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/parser.py",
> line 44, in parse
>     return parser.parse()
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/parser.py",
> line 71, in parse
>     self.proc_stream(self.module_code)
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/parser.py",
> line 126, in proc_stream
>     for (ev, item) in self.stream:
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/pull.py",
> line 152, in _track
>     for p in stream:
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/pull.py",
> line 179, in _coalesce
>     for ev, item in stream:
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/pull.py",
> line 321, in __iter__
>     for (ev, stuff) in self._expat_stream():
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/pull.py",
> line 293, in _expat_stream
>     feed(data)
>   File
> "/usr/lib/python2.4/site-packages/kid-0.7adev_r186-py2.4.egg/kid/pull.py",
> line 361, in feed
>     raise e
> ExpatError: mismatched tag: line 11, column 102
>
>


--
cheers
    elvelind grandin

Reply via email to