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: python error #2

Open
sylvainfaivre opened this issue Aug 28, 2024 · 1 comment
Open

Flask: python error #2

sylvainfaivre opened this issue Aug 28, 2024 · 1 comment

Comments

@sylvainfaivre
Copy link

❯ docker run flask
Traceback (most recent call last):
  File "/var/www/app/app.py", line 1, in <module>
    from flask import Flask, Request, Response, make_response
  File "/usr/local/lib/python3.10/dist-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
  File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 30, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.10/dist-packages/werkzeug/urls.py)

@sylvainfaivre
Copy link
Author

Dependancy problem explained in https://stackoverflow.com/questions/77213053/why-did-flask-start-failing-with-importerror-cannot-import-name-url-quote-fr

Fixed by setting a hard requirement for werkzeug module, see linked PR.

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

1 participant