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] Dockerfile section of tutorial #382

Open
oseba opened this issue Dec 13, 2023 · 0 comments
Open

[BUG] Dockerfile section of tutorial #382

oseba opened this issue Dec 13, 2023 · 0 comments
Labels

Comments

@oseba
Copy link

oseba commented Dec 13, 2023

The bug :
If we follow the instructions, we end with the following error when we try the command docker run -p 8888:5000 yourusername/catnip

Traceback (most recent call last): File "./app.py", line 1, in <module> from flask import Flask, render_template File "/usr/local/lib/python3.8/site-packages/flask/__init__.py", line 7, in <module> from .app import Flask as Flask File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 28, in <module> from . import cli File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 18, in <module> from .helpers import get_debug_flag File "/usr/local/lib/python3.8/site-packages/flask/helpers.py", line 16, in <module> from werkzeug.urls import url_quote ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.8/site-packages/werkzeug/urls.py)

To reproduce the error, one may simply follow the tutorial and execute the concerned command above.
We have this error, because the installed version of "Werkzeug" is not compatible with the lastest version Flask.
To fix this problem, we may add the following line in "the requirements.txt" of the project https://github.com/prakhar1989/docker-curriculum.git :
Werkzeug==2.2.2 this version works fine with flash. (Didn't check which latest version we can use but this one works)

  • OS: Ubuntu 22.04.3 LTS
  • Docker Version 20.10.22

Thank you
Best Regards
OS

@oseba oseba added the bug label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant