Docker build image error

ERROR: flask-appbuilder 4.1.4 has requirement SQLAlchemy<1.5, but you’ll have sqlalchemy 2.0.1 which is incompatible.
ERROR: flask-caching 2.0.2 has requirement cachelib<0.10.0,>=0.9.0, but you’ll have cachelib 0.10.2 which is incompatible.
Installing collected packages: charset-normalizer, requests, packaging, backcall, traitlets, matplotlib-inline, executing, pure-eval, asttokens, stack-data, ptyprocess, pexpect, parso, jedi, wcwidth, prompt-toolkit, decorator, pygments, pickleshare, ipython, markupsafe, jinja2, pytz, babel, json5, pyzmq, python-dateutil, tornado, zipp, importlib-metadata, platformdirs, jupyter-core, jupyter-client, importlib-resources, attrs, pkgutil-resolve-name, pyrsistent, jsonschema, fastjsonschema, nbformat, sniffio, anyio, Send2Trash, prometheus-client, pandocfilters, soupsieve, beautifulsoup4, defusedxml, webencodings, tinycss2, nbclient, mistune, jupyterlab-pygments, bleach, nbconvert, pycparser, cffi, argon2-cffi-bindings, argon2-cffi, websocket-client, terminado, jupyter-server, jupyterlab-server, ipython-genutils, notebook-shim, nest-asyncio, debugpy, psutil, ipykernel, nbclassic, notebook, tomli, jupyterlab, py4j, pyspark, PyYAML, jmespath, botocore, s3transfer, boto3, numpy, pandas, dnspython, pymongo, configupdater, itsdangerous, werkzeug, click, flask, WTForms, flask-wtf, uc-micro-py, linkify-it-py, lockfile, docutils, python-daemon, exceptiongroup, cattrs, mdurl, markdown-it-py, text-unidecode, python-slugify, python-nvd3, pathspec, setproctitle, email-validator, apispec, greenlet, typing-extensions, sqlalchemy, sqlalchemy-utils, flask-login, prison, marshmallow, marshmallow-enum, Flask-Babel, pyjwt, Flask-JWT-Extended, colorama, Flask-SQLAlchemy, marshmallow-sqlalchemy, flask-appbuilder, markdown, sqlparse, apache-airflow-providers-common-sql, apache-airflow-providers-sqlite, cryptography, graphviz, apache-airflow-providers-imap, mdit-py-plugins, sqlalchemy-jsonfield, tabulate, argcomplete, marshmallow-oneofschema, termcolor, colorlog, clickclick, inflection, swagger-ui-bundle, connexion, Mako, alembic, wrapt, deprecated, unicodecsv, dill, requests-toolbelt, apache-airflow-providers-http, lazy-object-proxy, rfc3986, h11, httpcore, httpx, cron-descriptor, gunicorn, apache-airflow-providers-ftp, pytzdata, pendulum, croniter, cachelib, flask-session, rich, pluggy, blinker, flask-caching, tenacity, apache-airflow, finance-complaint
Attempting uninstall: requests
Found existing installation: requests 2.22.0
Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /usr
Can’t uninstall ‘requests’. No files were found to uninstall.
Running setup.py develop for finance-complaint
Successfully installed Flask-Babel-2.0.0 Flask-JWT-Extended-4.4.4 Flask-SQLAlchemy-2.5.1 Mako-1.2.4 PyYAML-6.0 Send2Trash-1.8.0 WTForms-3.0.1 alembic-1.9.2 anyio-3.6.2 apache-airflow-2.4.3 apache-airflow-providers-common-sql-1.3.3 apache-airflow-providers-ftp-3.3.0 apache-airflow-providers-http-4.1.1 apache-airflow-providers-imap-3.1.1 apache-airflow-providers-sqlite-3.3.1 apispec-3.3.2 argcomplete-2.0.0 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 asttokens-2.2.1 attrs-22.2.0 babel-2.11.0 backcall-0.2.0 beautifulsoup4-4.11.2 bleach-6.0.0 blinker-1.5 boto3-1.24.82 botocore-1.27.96 cachelib-0.10.2 cattrs-22.2.0 cffi-1.15.1 charset-normalizer-2.1.1 click-8.1.3 clickclick-20.10.2 colorama-0.4.6 colorlog-4.8.0 configupdater-3.1.1 connexion-2.14.2 cron-descriptor-1.2.35 croniter-1.3.8 cryptography-39.0.0 debugpy-1.6.6 decorator-5.1.1 defusedxml-0.7.1 deprecated-1.2.13 dill-0.3.6 dnspython-2.3.0 docutils-0.19 email-validator-1.3.1 exceptiongroup-1.1.0 executing-1.2.0 fastjsonschema-2.16.2 finance-complaint flask-2.2.2 flask-appbuilder-4.1.4 flask-caching-2.0.2 flask-login-0.6.2 flask-session-0.4.0 flask-wtf-1.1.1 graphviz-0.20.1 greenlet-2.0.2 gunicorn-20.1.0 h11-0.14.0 httpcore-0.16.3 httpx-0.23.3 importlib-metadata-6.0.0 importlib-resources-5.10.2 inflection-0.5.1 ipykernel-6.15.0 ipython-8.9.0 ipython-genutils-0.2.0 itsdangerous-2.1.2 jedi-0.18.2 jinja2-3.1.2 jmespath-1.0.1 json5-0.9.11 jsonschema-4.17.3 jupyter-client-8.0.2 jupyter-core-5.2.0 jupyter-server-1.23.5 jupyterlab-3.4.7 jupyterlab-pygments-0.2.2 jupyterlab-server-2.19.0 lazy-object-proxy-1.9.0 linkify-it-py-2.0.0 lockfile-0.12.2 markdown-3.4.1 markdown-it-py-2.1.0 markupsafe-2.1.2 marshmallow-3.19.0 marshmallow-enum-1.5.1 marshmallow-oneofschema-3.0.1 marshmallow-sqlalchemy-0.26.1 matplotlib-inline-0.1.6 mdit-py-plugins-0.3.3 mdurl-0.1.2 mistune-2.0.4 nbclassic-0.5.1 nbclient-0.7.2 nbconvert-7.2.9 nbformat-5.7.3 nest-asyncio-1.5.6 notebook-6.5.2 notebook-shim-0.2.2 numpy-1.24.1 packaging-23.0 pandas-1.3.5 pandocfilters-1.5.0 parso-0.8.3 pathspec-0.9.0 pendulum-2.1.2 pexpect-4.8.0 pickleshare-0.7.5 pkgutil-resolve-name-1.3.10 platformdirs-2.6.2 pluggy-1.0.0 prison-0.2.1 prometheus-client-0.16.0 prompt-toolkit-3.0.36 psutil-5.9.4 ptyprocess-0.7.0 pure-eval-0.2.2 py4j-0.10.9.3 pycparser-2.21 pygments-2.14.0 pyjwt-2.6.0 pymongo-4.3.3 pyrsistent-0.19.3 pyspark-3.2.1 python-daemon-2.3.2 python-dateutil-2.8.2 python-nvd3-0.15.0 python-slugify-8.0.0 pytz-2022.7.1 pytzdata-2020.1 pyzmq-25.0.0 requests-2.28.1 requests-toolbelt-0.10.1 rfc3986-1.5.0 rich-13.3.1 s3transfer-0.6.0 setproctitle-1.3.2 sniffio-1.3.0 soupsieve-2.3.2.post1 sqlalchemy-2.0.1 sqlalchemy-jsonfield-1.0.1.post0 sqlalchemy-utils-0.39.0 sqlparse-0.4.3 stack-data-0.6.2 swagger-ui-bundle-0.0.9 tabulate-0.9.0 tenacity-8.1.0 termcolor-2.2.0 terminado-0.17.1 text-unidecode-1.3 tinycss2-1.2.1 tomli-2.0.1 tornado-6.2 traitlets-5.9.0 typing-extensions-4.4.0 uc-micro-py-1.0.1 unicodecsv-0.14.1 wcwidth-0.2.6 webencodings-0.5.1 websocket-client-1.5.0 werkzeug-2.2.2 wrapt-1.14.1 zipp-3.12.0
Removing intermediate container 0bb641884b78
—> 6e3d369ffb89
Step 14/18 : RUN airflow db init
—> Running in e82a523a263e
Traceback (most recent call last):
File “/usr/local/bin/airflow”, line 5, in
from airflow.main import main
File “/usr/local/lib/python3.8/dist-packages/airflow/init.py”, line 46, in
settings.initialize()
File “/usr/local/lib/python3.8/dist-packages/airflow/settings.py”, line 573, in initialize
configure_orm()
File “/usr/local/lib/python3.8/dist-packages/airflow/settings.py”, line 276, in configure_orm
engine = create_engine(SQL_ALCHEMY_CONN, connect_args=connect_args, **engine_args)
File “”, line 2, in create_engine
File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/deprecations.py”, line 277, in warned
return fn(*args, **kwargs) # type: ignore[no-any-return]
File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/create.py”, line 693, in create_engine
raise TypeError(
TypeError: Invalid argument(s) ‘encoding’ sent to create_engine(), using configuration SQLiteDialect_pysqlite/QueuePool/Engine. Please check that the keyword arguments are appropriate for this combination of components.
The command ‘/bin/sh -c airflow db init’ returned a non-zero code: 1

Exited with code exit status 1
CircleCI received exit code 1