New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxException: Unmatched '"' #86

sqlalchemy-bot opened this Issue Jun 5, 2008 · 3 comments


None yet
1 participant

sqlalchemy-bot commented Jun 5, 2008

Migrated issue, originally created by Anonymous

If I put the following in my template, I get a SyntaxException: <% somethingText = """ %>

Is this normal? Am I doing something wrong maybe? I'm using Mako 0.2.0 under mod_python. Here is part of the stacktrace:

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 70, in get_template
return self.__load(srcfile, uri)

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 112, in __load
self.__collection[uri] = Template(uri=uri, filename=posixpath.normpath(filename), lookup=self, module_filename=(self.modulename_callable is not None and self.modulename_callable(filename, uri) or None), **self.template_args)

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 82, in init
_compile_module_file(self, file(filename).read(), filename, path)

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 217, in _compile_module_file
node = lexer.parse()

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 160, in parse
if self.match_python_block():

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 274, in match_python_block
(text, end) = self.parse_until_text(r'%>')

File "e:\python\lib\site-packages\mako-0.2.0-py2.5.egg\mako\", line 79, in parse_until_text
raise exceptions.SyntaxException("Unmatched '%s'" %, **self.exception_kwargs)

Thank you.


This comment has been minimized.

sqlalchemy-bot commented Jun 6, 2008

Michael Bayer (@zzzeek) wrote:

yeah, this all comes from #20. This ticket is 95% a dupe of that one (though its a slightly different symptom, so I'll leave it open).


This comment has been minimized.

sqlalchemy-bot commented Feb 2, 2012

Michael Bayer (@zzzeek) wrote:



This comment has been minimized.

sqlalchemy-bot commented Feb 2, 2012

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment