openego / powerd-data

GNU Affero General Public License v3.0
1 stars 0 forks source link

limit flask-session version #192

Closed CarlosEpia closed 8 months ago

CarlosEpia commented 8 months ago

Fixes #189 . Already tested in a clean virtual env.

CarlosEpia commented 8 months ago

As discussed, the versions of Apache-airflow were limited like this: "apache-airflow>2.0,<=2.7.3", but Flask-session was again in its 0.6.0. The error got is this one: File "/home/carlos/env/test-flask2/lib/python3.8/site-packages/airflow/www/app.py", line 186, in cached_app app = create_app(config=config, testing=testing) File "/home/carlos/env/test-flask2/lib/python3.8/site-packages/airflow/www/app.py", line 177, in create_app init_airflow_session_interface(flask_app) File "/home/carlos/env/test-flask2/lib/python3.8/site-packages/airflow/www/extensions/init_session.py", line 45, in init_airflow_session_interface app.session_interface = AirflowDatabaseSessionInterface( TypeError: init() missing 4 required positional arguments: 'sequence', 'schema', 'bind_key', and 'sid_length' ^C[2024-01-22T17:08:08.925+0100] {webserver_command.py:441} INFO - Received signal: 2. Closing gunicorn.