Actions
Task #7619
openFlask 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
Updated by Rajmund Hruška almost 2 years ago
- Is duplicate of Task #7615: Update flask-sqlalchemy added
Updated by Rajmund Hruška almost 2 years ago
- Status changed from New to Closed
Will be solved in #7619.
Updated by Pavel Kácha over 1 year ago
- Related to Support #7632: Mentat dependencies upgrade added
Updated by Jakub Judiny over 1 year ago
- Related to Task #6205: Review encapsulation of SQLAlchemy and Psycopg2 DBALs added
Updated by Jakub Judiny over 1 year ago
- Status changed from New to Resolved
- Assignee set to Jakub Judiny
All warnings except the first one are caused by dependencies (flask_sqlalchemy, flask_debugtoolbar and flask itself), so we cannot do anything but wait for the updates of these libraries.
I fixed the first warning in #7632 (revision 86325b40).
Updated by Jakub Judiny over 1 year ago
- Status changed from Resolved to In Progress
Updated by Rajmund Hruška 5 months ago
- Blocked by Task #7662: Update system dependecies added
Updated by Rajmund Hruška 4 months ago
- Assignee set to Rajmund Hruška
- Target version set to 2.13.2
Updated by Rajmund Hruška 2 months ago
- Target version changed from 2.13.2 to 2.14
Updated by Rajmund Hruška 3 days ago
- Status changed from In Progress to In Review
Actions