Skip to content

Macro Rendering Error

TemplateSyntaxError: expected token 'end of print statement', got ':'

Traceback (most recent call last):
  File "/opt/buildhome/python3.7/lib/python3.7/site-packages/mkdocs_macros/plugin.py", line 339, in render
    md_template = self.env.from_string(markdown)
  File "/opt/buildhome/python3.7/lib/python3.7/site-packages/jinja2/environment.py", line 941, in from_string
    return cls.from_code(self, self.compile(source), globals, None)
  File "/opt/buildhome/python3.7/lib/python3.7/site-packages/jinja2/environment.py", line 638, in compile
    self.handle_exception(source=source_hint)
  File "/opt/buildhome/python3.7/lib/python3.7/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/opt/buildhome/python3.7/lib/python3.7/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "<unknown>", line 15, in template
jinja2.exceptions.TemplateSyntaxError: expected token 'end of print statement', got ':'

Last update: January 5, 2021
Does this page need fixing? Edit me on GitHub