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

ImportError: cannot import name 'escape' from 'jinja2' #157

Open
SteffRainville opened this issue Apr 27, 2022 · 5 comments
Open

ImportError: cannot import name 'escape' from 'jinja2' #157

SteffRainville opened this issue Apr 27, 2022 · 5 comments

Comments

@SteffRainville
Copy link

pip installed excalbur-py under Python 3.10.4 in Windows 11

Had the configparser error
Upgraded to 5.2.0 as described in issue 151

Now have ImportError: cannot import name 'escape' from 'jinja2' error when trying to "excalibur initdb"

@SteffRainville
Copy link
Author

SOLUTION

Upgrade flask 1 to Flask V2

Go to this file
excalibur\venv\Lib\site-packages\excalibur\www\views.py

Change this line

from werkzeug import secure_filename
to
from werkzeug.utils import secure_filename

@giiyms
Copy link

giiyms commented May 9, 2022

How do you upgrade to flask v2?

@SteffRainville
Copy link
Author

Modify the requirements.txt file
Flask==2.1.1

@alesrosina
Copy link

You can also do

pip install flask -U

And that should work.

@sd3ntato
Copy link

sd3ntato commented May 14, 2024

hi

I applied the suggested changes with and fixed some other issues here in #183

while a was at it, I dockerized the app so we can just
docker compose up --build to start the app

it not perfect but at least can use the app

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

4 participants