Skip to content
Advertisement

ModuleNotFoundError: No module named in AWS Build

I can run the project on my local MAC, but when I use the pipeline to build it. I got this error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-axjgd0da/MarkupSafe/

This project is working well, and I did not update any new lib in it. Even I redeployed to the old branch, it has the same error.

Here are the build logs:

JavaScript

Advertisement

Answer

It is a version problem.

The current version is 2.1.0, which I downgraded to Markupsafe==2.0.1. I added the “Markupsafe==2.0.1” in the requirements.txt, then I don’t have the problem anymore.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement