Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit flask-session version #192

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

CarlosEpia
Copy link

@CarlosEpia CarlosEpia commented Jan 22, 2024

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

@CarlosEpia
Copy link
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.

Copy link

@nailend nailend left a comment

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

@nailend nailend mentioned this pull request Jan 30, 2024
30 tasks
@CarlosEpia CarlosEpia merged commit bad9f70 into dev Feb 1, 2024
2 checks passed
@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