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

Closed
dnick971 opened this issue May 8, 2014 · 2 comments
Closed

markupsafe error #327

dnick971 opened this issue May 8, 2014 · 2 comments

Comments

@dnick971
Copy link

@dnick971 dnick971 commented May 8, 2014

python version : 3.2.3
system : debian 7

Hi,

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/init.py", line 69
def new(cls, base=u'', encoding=None, errors='strict'):
^
SyntaxError: invalid syntax

How can i deal with it?

@berkerpeksag
Copy link
Contributor

@berkerpeksag berkerpeksag commented May 8, 2014

Jinja2 2.7 only supports Python 3.3+. See http://jinja.pocoo.org/docs/intro/#experimental-python-3-support

Loading

@dnick971
Copy link
Author

@dnick971 dnick971 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.

Loading

@mitsuhiko mitsuhiko closed this Jun 6, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants