Project

General

Profile

Actions

Task #7619

closed

Flask Deprecation warnings

Added by Jakub Maloštik almost 2 years ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Category:
Testing
Target version:
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

Related to Mentat - Support #7632: Mentat dependencies upgradeClosedJakub Judiny02/28/2023

Actions
Related to Mentat - Task #6205: Review encapsulation of SQLAlchemy and Psycopg2 DBALsClosedRajmund Hruška01/24/2020

Actions
Is duplicate of Mentat - Task #7615: Update flask-sqlalchemyClosed11/10/2022

Actions
Blocked by Mentat - Task #7662: Update system dependeciesClosedRajmund Hruška07/03/2023

Actions
Actions

Also available in: Atom PDF