jakewright / tutorials

Source code from Jake Wright's YouTube tutorials
http://youtube.com/jaketvee
MIT License
589 stars 571 forks source link

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

Open lafredi opened 6 years ago

lafredi commented 6 years ago

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/ `

lafredi commented 6 years ago

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