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

Flask-Security-Too holds back flask from upgrading #915

Open
GustaafL opened this issue Nov 28, 2023 · 1 comment
Open

Flask-Security-Too holds back flask from upgrading #915

GustaafL opened this issue Nov 28, 2023 · 1 comment

Comments

@GustaafL
Copy link
Contributor

When trying to upgrade Flask the flask security package throws errors.

from flexmeasures.data.models.user import (
  File "/home/user/flexmeasures-venv/flexmeasures/flexmeasures/data/models/user.py", line 5, in <module>
    from flask_security import UserMixin, RoleMixin
  File "/home/user/flexmeasures-venv/lib/python3.10/site-packages/flask_security/__init__.py", line 14, in <module>
    from .changeable import admin_change_password
  File "/home/user/flexmeasures-venv/lib/python3.10/site-packages/flask_security/changeable.py", line 15, in <module>
    from flask_login import COOKIE_NAME as REMEMBER_COOKIE_NAME
  File "/home/user/flexmeasures-venv/lib/python3.10/site-packages/flask_login/__init__.py", line 12, in <module>
    from .login_manager import LoginManager
  File "/home/user/flexmeasures-venv/lib/python3.10/site-packages/flask_login/login_manager.py", line 33, in <module>
    from .utils import _create_identifier
  File "/home/user/flexmeasures-venv/lib/python3.10/site-packages/flask_login/utils.py", line 14, in <module>
    from werkzeug.urls import url_decode
ImportError: cannot import name 'url_decode' from 'werkzeug.urls' (/home/user/flexmeasures-venv/lib/python3.10/site-packages/werkzeug/urls.py)
@nhoening
Copy link
Contributor

Is this when going to 2.3?
Maybe stopping to constrain werkzeug would help. See one line further down.

@Flix6x Flix6x mentioned this issue Dec 19, 2023
2 tasks
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

No branches or pull requests

2 participants