You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
Traceback (most recent call last):
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/run.py", line 2, in
from app import create_app
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/app/init.py", line 1, in
from flask import Flask
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/.venv/lib/python3.9/site-packages/flask/init.py", line 14, in
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/.venv/lib/python3.9/site-packages/jinja2/init.py)
make: *** [run] Error 1
Yeah, change the requirement.txt to
Flask>=2.2.2
py-cpuinfo==7.0.0
psutil==5.8.0
gunicorn==20.1.0
black==20.8b1
flake8==3.9.0
pytest==6.2.2
fix the issue
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am getting this error message
Traceback (most recent call last):
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/run.py", line 2, in
from app import create_app
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/app/init.py", line 1, in
from flask import Flask
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/.venv/lib/python3.9/site-packages/flask/init.py", line 14, in
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/.venv/lib/python3.9/site-packages/jinja2/init.py)
make: *** [run] Error 1
and this is what I have in my requirement file
Flask==2.1.0
py-cpuinfo==7.0.0
psutil==5.8.0
gunicorn==20.1.0
black==20.8b1
flake8==3.9.0
pytest==7.1.2
The text was updated successfully, but these errors were encountered: