Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lafredi opened this issue Oct 22, 2018 · 1 comment
Open

Comments

@lafredi
Copy link

lafredi commented Oct 22, 2018

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
Copy link
Author

lafredi commented Oct 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant