We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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' (/usr/local/lib/python3.7/site-packages/jinja2/init.py) [2023-09-03 21:35:14 +0000] [9] [INFO] Worker exiting (pid: 9) [2023-09-03 21:35:14 +0000] [1] [INFO] Shutting down: Master [2023-09-03 21:35:14 +0000] [1] [INFO] Reason: Worker failed to boot. [2023-09-03 21:36:15 +0000] [1] [INFO] Starting gunicorn 20.1.0 [2023-09-03 21:36:15 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1) [2023-09-03 21:36:15 +0000] [1] [INFO] Using worker: gthread [2023-09-03 21:36:15 +0000] [9] [INFO] Booting worker with pid: 9 [2023-09-03 21:36:15 +0000] [9] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker worker.init_process() File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 92, in init_process super().init_process() File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 134, in init_process self.load_wsgi() File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in load return self.load_wsgiapp() File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.7/site-packages/gunicorn/util.py", line 359, in import_app mod = importlib.import_module(module) File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/project/flask_app/app.py", line 8, in from flask import Flask File "/usr/local/lib/python3.7/site-packages/flask/init.py", line 14, in from jinja2 import escape ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.7/site-packages/jinja2/init.py) [2023-09-03 21:36:15 +0000] [9] [INFO] Worker exiting (pid: 9) [2023-09-03 21:36:15 +0000] [1] [INFO] Shutting down: Master [2023-09-03 21:36:15 +0000] [1] [INFO] Reason: Worker failed to boot.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.7/site-packages/jinja2/init.py)
[2023-09-03 21:35:14 +0000] [9] [INFO] Worker exiting (pid: 9)
[2023-09-03 21:35:14 +0000] [1] [INFO] Shutting down: Master
[2023-09-03 21:35:14 +0000] [1] [INFO] Reason: Worker failed to boot.
[2023-09-03 21:36:15 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-09-03 21:36:15 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
[2023-09-03 21:36:15 +0000] [1] [INFO] Using worker: gthread
[2023-09-03 21:36:15 +0000] [9] [INFO] Booting worker with pid: 9
[2023-09-03 21:36:15 +0000] [9] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 92, in init_process
super().init_process()
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.7/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/project/flask_app/app.py", line 8, in
from flask import Flask
File "/usr/local/lib/python3.7/site-packages/flask/init.py", line 14, in
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.7/site-packages/jinja2/init.py)
[2023-09-03 21:36:15 +0000] [9] [INFO] Worker exiting (pid: 9)
[2023-09-03 21:36:15 +0000] [1] [INFO] Shutting down: Master
[2023-09-03 21:36:15 +0000] [1] [INFO] Reason: Worker failed to boot.
The text was updated successfully, but these errors were encountered: