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

Issue with Jinja2 > 3.0.3 #33

Open
sti2dSinBastia opened this issue Apr 5, 2022 · 4 comments
Open

Issue with Jinja2 > 3.0.3 #33

sti2dSinBastia opened this issue Apr 5, 2022 · 4 comments

Comments

@sti2dSinBastia
Copy link

Hello,
With new version of Jinja2 the Python modules Markup and Escape should be imported from MarkupSafe (https://jinja.palletsprojects.com/en/3.1.x/changes/#version-3-1-1)

Actually it raise an exception :

File "/var/www/site_mbt/flask-app-v2/src/__init__.py", line 11, in <module>
    from flask_jsglue import JSGlue
  File "/var/www/site_mbt/flask-app-v2/venv/lib/python3.8/site-packages/flask_jsglue.py", line 2, in <module>
    from jinja2 import Markup
ImportError: cannot import name 'Markup' from 'jinja2' (/var/www/site_mbt/flask-app-v2/venv/lib/python3.8/site-packages/jinja2/__init__.py)

Thank you for your great job.

@ideacco
Copy link

ideacco commented Apr 22, 2022

Yes, I have the same problem.

@paulmis
Copy link

paulmis commented May 23, 2022

You can install Flask-JSGlue2 >=0.3.3

@havok2063
Copy link

@paulmis Does that work? I tried it but get a missing template error when trying to use it. jinja2.exceptions.TemplateNotFound: jsglue/js_bridge.js. Looking at the pip install, I don't see where it properly installs the js_bridge.js template file.

@jfprieur
Copy link

jfprieur commented Aug 2, 2022

You can install Flask-JSGlue2 >=0.3.3

This does not fix the error for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants