chubin/cheat.sh

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

wujackwill opened this issue · 0 comments

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.