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

docker ImportError: cannot import name '_plain_int' from 'werkzeug._internal' (/usr/lib/python3.9/site-packages/werkzeug/_internal.py) and seek advice #406

Open
wujackwill opened this issue Apr 16, 2024 · 0 comments

Comments

@wujackwill
Copy link

I was building the docker image trying to use the offline mode. But when the building was done, the docker showed me the log ImportError: cannot import name '_plain_int' from 'werkzeug._internal' (/usr/lib/python3.9/site-packages/werkzeug/_internal.py)

it turned out to be a version issue of werkzeug.

  1. just add these lines to requirements.txt
protobuf
werkzeug==0.16.1
flask-wtf
  1. run the command docker build -t cheet .
  2. modify the line image: cheat.sh in the docker-compose.yml to ,in this case, image: cheet

it worked.

However, since curl cannot be used offline and the localhost:8002 still shows me the hint that i'm using offline mode without Internet., so I'm wondering if there is a better way to use the docker version of the cheat.sh offline.

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