Skip to content

ImportError: No module named 'requests' #2

@9radiopassive0

Description

@9radiopassive0

In the section "Taking Advantage of existing images" (Page 88), the build stops in 3rd layer with the error message:

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7efbf75dfb00>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/flask

P.S. It turns out to be the issue of how docker handles pip install command. And solution is to edit docker config with appropriate DNS. But my version of docker already has the DNS configured. But still it is not working.

P.P.S Turns out it has something to do with the country I am in. I used a vpn bypass and now its working :).

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