jakewright/tutorials

blocking in Collecting flask (from -r requirements.txt (line 1))

Opened this issue · 1 comments

hello,

for your example, : tutorials/docker/02-docker-compose/
I am blocked in this error for one day, but I found the solution in the end ...
`$ sudo docker-compose up
Creating network "composetestv2_default" with the default driver
Building product-service
Step 1/8 : FROM python:3-onbuild

Executing 3 build triggers...

Step 1/1 : COPY requirements.txt /usr/src/app/
---> Using cache
Step 1/1 : RUN pip install --no-cache-dir -r requirements.txt
---> Running in 5401b7a925bd
Collecting flask (from -r requirements.txt (line 1))
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7e5690eb38>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/flask/ `

solution:
The problem is in the version of the python in Dockerfile
I changed FROM python: 3-onbuild to 3.4-alpine

is it works
merci