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

Unable to build docker image #78

Open
jott-zeh opened this issue Nov 17, 2024 · 4 comments
Open

Unable to build docker image #78

jott-zeh opened this issue Nov 17, 2024 · 4 comments

Comments

@jott-zeh
Copy link

jott-zeh commented Nov 17, 2024

Description
When I try to run docker build . --tag pynguin -f docker/Dockerfile the build crashes with an error.

Step 8/20 : RUN pip install poetry==$POETRY_VERSION     && poetry config virtualenvs.create false     && poetry build
 ---> Running in fb5dc9e66bca
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7a26784e6740>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/poetry/

To Reproduce
Steps to reproduce the behaviour:

  1. Clone fresh repository
  2. Switch to project folder PYNGUIN
  3. Run docker build . --tag pynguin -f docker/Dockerfile

Expected behavior
In step 8 of the Dockerfile this error should happen:

Step 8/20 : RUN pip install poetry==$POETRY_VERSION     && poetry config virtualenvs.create false     && poetry build
 ---> Running in d0260f31eecd
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x756b66d42740>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/poetry/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x756b68868ee0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/poetry/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x756b68868310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/poetry/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x756b66d43b20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/poetry/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x756b66d42ec0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/poetry/
ERROR: Could not find a version that satisfies the requirement poetry==1.8.3 (from versions: none)
ERROR: No matching distribution found for poetry==1.8.3

Software Version:

  • OS: Arch Linux
  • Docker Version: 27.3.1
  • Pynguin Version: 0.39.0
@stephanlukasczyk
Copy link
Member

I've just tried on macOS, and it worked like a charm. The error looks like pip not being able to load packages from PyPI, probably due to some network issues. I've seen such problems before, usually they disappeared, when trying the exact same some time later. Could you do that, too?

@jott-zeh
Copy link
Author

Yes I've done this a couple of times and always run into this error - maybe my system configuration causes this... Don't know yet... but when I have some time, I will analyze this more precisely.

@stephanlukasczyk
Copy link
Member

So, I realised, that I can have this issue, if I change my computer's network settings. Perhaps, that can be helpful to check your computer's network settings.

@stephanlukasczyk
Copy link
Member

Quick question: were your attempts successful in the meanwhile?

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

2 participants