On Sun, 2013-06-09 at 15:51 -0700, Carlos Andrés Lopez Gil wrote: > Hi, > > > I'm starting with Pyramid, I have been following the section named > "Getting Started" I did "single fail task" tutorial, > and now I am following the wiki tutorial, I did each step writen in > Installation section without any trouble and in the end > I started the application: > (py3Pyramid)tutorial > pserve development.ini --reload > Starting subprocess with file monitor > Starting server in PID 3556. > serving on http://0.0.0.0:6543 > > Now , when I try http://127.0.0.1:6543/ in the browser I get: > > Internal Server Error > The server encountered an unexpected internal server error > (generated by waitress) > > And in the console: > > (py3Pyramid)tutorial > pserve development.ini --reload > Starting subprocess with file monitor > Starting server in PID 3556. > serving on http://0.0.0.0:6543 > 2013-06-09 17:11:19,080 INFO [sqlalchemy.engine.base.Engine][Dummy-2] > BEGIN (implicit) > 2013-06-09 17:11:19,081 INFO [sqlalchemy.engine.base.Engine][Dummy-2] > SELECT models.id AS models_id, models.name AS models_name, > models.value AS models_value > FROM models > WHERE models.name = ? > LIMIT ? OFFSET ? > 2013-06-09 17:11:19,081 INFO [sqlalchemy.engine.base.Engine][Dummy-2] > ('one', 1, 0) > 2013-06-09 17:11:19,255 ERROR [waitress][Dummy-2] Exception when > serving / > Traceback (most recent call last): > File > "/Users/carlos/Python/virtualenvs/py3Pyramid/lib/python3.2/site-packages/pyramid-1.4.2-py3.2.egg/pyramid/mako_templating.py", > line 232, in __call__ > result = template.render_unicode(**system) > File > "/Users/carlos/Python/virtualenvs/py3Pyramid/lib/python3.2/site-packages/Mako-0.8.1-py3.2.egg/mako/template.py", > line 452, in render_unicode > as_unicode=True) > File > "/Users/carlos/Python/virtualenvs/py3Pyramid/lib/python3.2/site-packages/Mako-0.8.1-py3.2.egg/mako/runtime.py", > line 783, in _render > **_kwargs_for_callable(callable_, data)) > File > "/Users/carlos/Python/virtualenvs/py3Pyramid/lib/python3.2/site-packages/Mako-0.8.1-py3.2.egg/mako/runtime.py", > line 815, in _render_context > _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) > File > "/Users/carlos/Python/virtualenvs/py3Pyramid/lib/python3.2/site-packages/Mako-0.8.1-py3.2.egg/mako/runtime.py", > line 841, in _exec_template > callable_(context, *args, **kwargs) > File "pyramid_debugtoolbar_panels_templates_logger_dbtmako", line > 35, in render_body > File > "/Users/carlos/Python/virtualenvs/py3Pyramid/lib/python3.2/site-packages/Mako-0.8.1-py3.2.egg/mako/filters.py", > line 29, in legacy_html_escape > s = s.replace("&", "&") > TypeError: an integer is required > > Any and all assistance you can provide is graciously appreciated!
Please do one of the following: - Use any supported version of Python other than 3.2 (this would be 3.3, 2.7, or 2.6). - Alternately, follow the set of steps to obtain a Python 3.2 compatible MarkupSafe detailed at https://github.com/Pylons/pyramid/issues/1030 - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
