Skip to content

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

Open

Description

@lafredi

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

Activity

  1. lafredi commented on Oct 22, 2018

    @lafredi
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions