Actions
Task #7619
closedFlask Deprecation warnings
Start date:
12/14/2022
Due date:
% Done:
0%
Estimated time:
To be discussed:
Description
The warnings are:
./vagrant/lib/hawat/base.py:770: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead.
self.json_encoder = HawatJSONEncoder
/var/mentat/venv/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py:14: DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
from flask import _app_ctx_stack, abort, current_app, request
/var/mentat/venv/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py:302: DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'app_ctx' to access the current context.
queries = _app_ctx_stack.top.sqlalchemy_queries
/var/mentat/venv/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py:304: DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'app_ctx' to access the current context.
queries = _app_ctx_stack.top.sqlalchemy_queries = []
/var/mentat/venv/lib/python3.7/site-packages/flask/json/provider.py:192: DeprecationWarning: Setting 'json_encoder' on the app or a blueprint is deprecated and will be removed in Flask 2.3. Customize 'app.json' instead.
DeprecationWarning,
/var/mentat/venv/lib/python3.7/site-packages/flask/json/provider.py:230: DeprecationWarning: 'JSONEncoder' is deprecated and will be removed in Flask 2.3. Use 'Flask.json' to provide an alternate JSON implementation instead.
return json.dumps(obj, **kwargs)
/var/mentat/venv/lib/python3.7/site-packages/flask_debugtoolbar/__init__.py:5: DeprecationWarning: '_request_ctx_stack' is deprecated and will be remoevd in Flask 2.3.
from flask.globals import _request_ctx_stack
Related issues
Actions