docker-curriculum icon indicating copy to clipboard operation
docker-curriculum copied to clipboard

ModuleNotFoundError: No module named 'markupsafe'

Open IvanZhd opened this issue 3 years ago • 2 comments

Hi, the trial to build the docker container docker build -t ivanzhd/foodtrucks-web . results in this error ModuleNotFoundError: No module named 'markupsafe'. Do you have any suggestions on how to resolve it? Thanks

IvanZhd avatar Oct 23 '21 13:10 IvanZhd

Hi, pip install markupsafe should help.

QuerQue avatar Oct 24 '21 18:10 QuerQue

That didn't work. This is what I had to do.

  1. open FoodTrucks/Dockerfile insert RUN apt-get install -y python3-markupsafe before RUN npm install
  2. save FoodTrucks/Dockerfile
  3. re-run docker build -t <your dockerhub username>/foodtrucks-web .

halpert3 avatar Jun 09 '22 19:06 halpert3