Skip to content

limit flask-session version - #192

Merged
CarlosEpia merged 1 commit into
devfrom
fixes/#189-limit-versions-flask-session
Feb 1, 2024
Merged

CarlosEpia merged 1 commit into
devfrom
fixes/#189-limit-versions-flask-session

Conversation

@CarlosEpia

@CarlosEpia CarlosEpia commented Jan 22, 2024 •

Copy link
Copy Markdown

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

@CarlosEpia

Copy link
Copy Markdown
Author

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.

@iuljan iuljan left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works fine. Checked it on a clean SH run as well! Thanks

@iuljan iuljan mentioned this pull request Jan 30, 2024
22 of 30 tasks
@CarlosEpia
CarlosEpia merged commit bad9f70 into dev Feb 1, 2024
@CarlosEpia
CarlosEpia deleted the fixes/#189-limit-versions-flask-session branch April 18, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Last version (0.6.0) of flask-session crashes airflow

2 participants