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

[Bug]: Freshly installed Meltano unusable due to werkzeug update #6469

Closed
edgarrmondragon opened this issue Jul 24, 2022 · 5 comments · Fixed by #6470
Closed

[Bug]: Freshly installed Meltano unusable due to werkzeug update #6469

edgarrmondragon opened this issue Jul 24, 2022 · 5 comments · Fixed by #6470
Assignees
Labels
kind/Bug Something isn't working valuestream/Meltano

Comments

@edgarrmondragon
Copy link
Collaborator

Meltano Version

2.3.0

Python Version

NA

Bug scope

CLI (options, error messages, logging, etc.)

Operating System

Any

Description

On a freshly installed Meltano, any CLI command fails due to an import error in the flask-login dependency.

Code

$ meltano --version
Traceback (most recent call last):
  File "/opt/pipx_bin/meltano", line 5, in <module>
    from meltano.cli import main
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/meltano/cli/__init__.py", line 20, in <module>
    from . import (  # isort:skip # noqa: F401, WPS235
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/meltano/cli/user.py", line 5, in <module>
    from meltano.api.app import create_app
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/meltano/api/app.py", line 13, in <module>
    from meltano.api.security.auth import HTTP_READONLY_CODE
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/meltano/api/security/__init__.py", line 1, in <module>
    from flask_login import user_logged_in
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/flask_login/__init__.py", line 12, in <module>
    from .login_manager import LoginManager
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/flask_login/login_manager.py", line 35, in <module>
    from .utils import _create_identifier
  File "/opt/pipx/venvs/meltano/lib/python3.8/site-packages/flask_login/utils.py", line 14, in <module>
    from werkzeug.routing import parse_rule
ImportError: cannot import name 'parse_rule' from 'werkzeug.routing' (/opt/pipx/venvs/meltano/lib/python3.8/site-packages/werkzeug/routing/__init__.py)
Error: Process completed with exit code 1.
@edgarrmondragon
Copy link
Collaborator Author

@edgarrmondragon
Copy link
Collaborator Author

One temporary solution is to pin werkzeug to <=2.1.3 and release a patch version of Meltano, while the flask-login issue is sorted out.

@edgarrmondragon
Copy link
Collaborator Author

@davidism
Copy link

Flask-Login 0.6.2 was released.

@edgarrmondragon
Copy link
Collaborator Author

Flask-Login 0.6.2 was released.

awesome, thank you so much @davidism!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/Bug Something isn't working valuestream/Meltano
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants