You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
just add these lines to requirements.txt
protobuf
werkzeug==0.16.1
flask-wtf
run the command docker build -t cheet .
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.
The text was updated successfully, but these errors were encountered:
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.
requirements.txt
docker build -t cheet .
image: cheat.sh
in thedocker-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.The text was updated successfully, but these errors were encountered: