Skip to content
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

markupsafe error #327

dnick971 opened this issue May 8, 2014 · 2 comments


Copy link

commented May 8, 2014

python version : 3.2.3
system : debian 7


I have installed Jinja2 (for dependancy requirement of Ipython) from the debian repository which install markupsafe. When i try to use Ipython notebook or import jinja2 in python3 or markupsafe an exception is raised :

import jinja2
File "/usr/local/lib/python3.2/dist-packages/MarkupSafe-0.21-py3.2-linux-x86_64.egg/markupsafe/", line 69
def new(cls, base=u'', encoding=None, errors='strict'):
SyntaxError: invalid syntax

How can i deal with it?


This comment has been minimized.

Copy link

commented May 8, 2014

Jinja2 2.7 only supports Python 3.3+. See


This comment has been minimized.

Copy link

commented May 8, 2014

I had already installed jinja 2.6. The problem came from the markupsafe version (0.21) which don't support anymore python 3.2. With the 0.15 version it works.
Thank you.

@mitsuhiko mitsuhiko closed this Jun 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.