Start a new topic

Requirements error - urllib.request

I'm getting an error after Step 9 of deployment...details is given seems like the problem is due to inability of finding urllib.request! Please help to overcome the situation. What should I do now?

Step 9/12 : RUN sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSERBASE pip install

 --user --no-cache-dir -r /app/requirements.txt

 ---> Running in d668ec425da3

Collecting urllib.request (from -r /app/requirements.txt (line 1))

←[91m Could not find a version that satisfies the requirement urllib.request (f

rom -r /app/requirements.txt (line 1)) (from versions: )


←[91mNo matching distribution found for urllib.request (from -r /app/requirement

s.txt (line 1))


{"message": "The command '/bin/sh -c sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSE

RBASE pip install --user --no-cache-dir -r /app/requirements.txt' returned a

 non-zero code: 1", "details": {"message": "The command '/bin/sh -c sudo -u nobo

dy -E PYTHONUSERBASE=$PYTHONUSERBASE pip install --user --no-cache-dir -r /a

pp/requirements.txt' returned a non-zero code: 1", "code": 1}, "error": "require


{"status": "error", "message": "Requirements error"}

Best Answer

What does your requirements.txt look like?

In my requirements.txt there is only urllib.request
Login to post a comment