Error Runnning Python Flask API after creating a docker image

49 Views Asked by At

I create a docker image of my python Flask project so that I can deploy it on a ECS container. When I push my docker image from the pipeline to the container I am receiving the following error:

ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.8/site-packages/werkzeug/urls.py)

I am not using url_quote in my project files but still this issue persists.

I tried putting 'werkzeug' in my requirements.txt but still facing the same issue.

0

There are 0 best solutions below