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

Update requirements.txt #175

Closed
wants to merge 1 commit into from
Closed

Update requirements.txt #175

wants to merge 1 commit into from

Conversation

abeaudin
Copy link

Werkzeug has been updated and the 3.0.0 version doesn't work properly with flask 2.2.2 and won't compile. Specifically stating the Werkzeug version in requirements.txt fixed it.

Without Werkzeug==2.2.2 in requirements.txt

Attaching to api-1, client-1
api-1 | Traceback (most recent call last):
api-1 | File "/usr/local/lib/python3.9/runpy.py", line 188, in _run_module_as_main
api-1 | mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
api-1 | File "/usr/local/lib/python3.9/runpy.py", line 147, in _get_module_details
api-1 | return _get_module_details(pkg_main_name, error)
api-1 | File "/usr/local/lib/python3.9/runpy.py", line 111, in _get_module_details
api-1 | import(pkg_name)
api-1 | File "/usr/local/lib/python3.9/site-packages/flask/init.py", line 5, in
api-1 | from .app import Flask as Flask
api-1 | File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 30, in
api-1 | from werkzeug.urls import url_quote
api-1 | ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.9/site-packages/werkzeug/urls.py)

With Werkzeug==2.2.2, the problem is fixed.

Werkzeug has been updated and the 3.0.0 version doesn't work properly with flask and won't compile. Specifically stating the Werkzeug version fixed it.
@miguelgrinberg
Copy link
Collaborator

Thanks! Instead I have change the requirements to use flask<3 and werkzeug<3.

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.

2 participants