amotl opened a new issue, #27204: URL: https://github.com/apache/superset/issues/27204
### Bug description Hi there, we are running integration tests with Apache Superset and CrateDB on behalf of our [cratedb-examples](https://github.com/crate/cratedb-examples) repository. Two days ago, the corresponding CI job started failing with the error message `AttributeError: module 'flask.json' has no attribute 'JSONEncoder'`. The error happens when invoking `superset db upgrade`, and only on Apache Superset 2.x. - https://github.com/crate/cratedb-examples/issues/313 It baffles us that the error is apparently happening out of the blue, without any obvious things being changed. Everything worked well until two days ago. With kind regards, Andreas. ### How to reproduce the bug Invoke `superset db upgrade` on the most recent Apache Superset 2.x, specifically [Apache Superset 2.1.3](https://pypi.org/project/apache-superset/2.1.3/). ### Screenshots/recordings _No response_ ### Superset version master / latest-dev ### Python version 3.11 ### Node version Not applicable ### Browser Not applicable ### Additional context ```python Traceback (most recent call last): File "/path/to/bin/superset", line 5, in <module> from superset.cli.main import superset File "/path/to/lib/python3.11/site-packages/superset/__init__.py", line 21, in <module> from superset.app import create_app File "/path/to/lib/python3.11/site-packages/superset/app.py", line 23, in <module> from superset.initialization import SupersetAppInitializer File "/path/to/lib/python3.11/site-packages/superset/initialization/__init__.py", line 27, in <module> from flask_appbuilder import expose, IndexView File "/path/to/lib/python3.11/site-packages/flask_appbuilder/__init__.py", line 5, in <module> from .api import ModelRestApi # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/path/to/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 38, in <module> from ..baseviews import AbstractViewApi File "/path/to/lib/python3.11/site-packages/flask_appbuilder/baseviews.py", line 22, in <module> from .forms import GeneralModelConverter File "/path/to/lib/python3.11/site-packages/flask_appbuilder/forms.py", line 3, in <module> from flask_wtf import FlaskForm File "/path/to/lib/python3.11/site-packages/flask_wtf/__init__.py", line 4, in <module> from .recaptcha import Recaptcha File "/path/to/lib/python3.11/site-packages/flask_wtf/recaptcha/__init__.py", line 1, in <module> from .fields import RecaptchaField File "/path/to/lib/python3.11/site-packages/flask_wtf/recaptcha/fields.py", line 3, in <module> from . import widgets File "/path/to/lib/python3.11/site-packages/flask_wtf/recaptcha/widgets.py", line 6, in <module> JSONEncoder = json.JSONEncoder ^^^^^^^^^^^^^^^^ AttributeError: module 'flask.json' has no attribute 'JSONEncoder' ``` ### Checklist - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem. - [X] I have searched the GitHub issue tracker and didn't find a similar bug report. - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org