Title: `python:3.11.5-slim` seems to break poetry installation · Issue #862 · docker-library/python · GitHub
Open Graph Title: `python:3.11.5-slim` seems to break poetry installation · Issue #862 · docker-library/python
X Title: `python:3.11.5-slim` seems to break poetry installation · Issue #862 · docker-library/python
Description: I noticed today that our CI if failing to install poetry. I could isolate the issue being related to the python:3.11.5-slim image: Working Example: 3114.Dockerfile FROM python:3.11.4-slim RUN apt-get upgrade && apt-get update && apt-get ...
Open Graph Description: I noticed today that our CI if failing to install poetry. I could isolate the issue being related to the python:3.11.5-slim image: Working Example: 3114.Dockerfile FROM python:3.11.4-slim RUN apt-g...
X Description: I noticed today that our CI if failing to install poetry. I could isolate the issue being related to the python:3.11.5-slim image: Working Example: 3114.Dockerfile FROM python:3.11.4-slim RUN apt-g...
Opengraph URL: https://github.com/docker-library/python/issues/862
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`python:3.11.5-slim` seems to break poetry installation","articleBody":"I noticed today that our CI if failing to install `poetry`. I could isolate the issue being related to the `python:3.11.5-slim` image:\r\n\r\n## Working Example: `3114.Dockerfile`\r\n\r\n```Dockerfile\r\nFROM python:3.11.4-slim\r\n\r\nRUN apt-get upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get install -y curl python3-dev libpq-dev gcc\r\n# Install Poetry\r\nENV POETRY_NO_INTERACTION=1 \\\r\n POETRY_VIRTUALENVS_IN_PROJECT=1 \\\r\n POETRY_VIRTUALENVS_CREATE=1 \\\r\n POETRY_VERSION=1.6.1\r\nRUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python -\r\n```\r\n\r\n```shell\r\ndocker build . -f 3114.Dockerfile\r\n```\r\n\r\n```\r\n[+] Building 15.7s (7/7) FINISHED \r\n =\u003e [internal] load build definition from 3114.Dockerfile 0.0s\r\n =\u003e =\u003e transferring dockerfile: 423B 0.0s\r\n =\u003e [internal] load .dockerignore 0.0s\r\n =\u003e =\u003e transferring context: 72B 0.0s\r\n =\u003e [internal] load metadata for docker.io/library/python:3.11.4-slim 1.3s\r\n =\u003e [1/3] FROM docker.io/library/python:3.11.4-slim@sha256:17d62d681d9ecef20aae6c6605e9cf83b0ba3dc247013e2f43e1b5a045ad4901 0.0s\r\n =\u003e CACHED [2/3] RUN apt-get upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get install -y curl python3-dev libpq-dev gcc 0.0s\r\n =\u003e [3/3] RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python - 13.8s\r\n =\u003e exporting to image 0.5s\r\n =\u003e =\u003e exporting layers 0.5s\r\n =\u003e =\u003e writing image sha256:059ed17a0f156ad39fb26611741d6c464399b6b4191ac8e1d6e66accee639041 \r\n```\r\n\r\n## Breaking Example: `3115.Dockerfile`\r\n\r\n```Dockerfile\r\nFROM python:3.11.5-slim\r\n\r\nRUN apt-get upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get install -y curl python3-dev libpq-dev gcc\r\n# Install Poetry\r\nENV POETRY_NO_INTERACTION=1 \\\r\n POETRY_VIRTUALENVS_IN_PROJECT=1 \\\r\n POETRY_VIRTUALENVS_CREATE=1 \\\r\n POETRY_VERSION=1.6.1\r\nRUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python -\r\n```\r\n\r\n```shell\r\ndocker build . -f 3115.Dockerfile\r\n```\r\n\r\n```\r\n[+] Building 19.8s (6/6) FINISHED \r\n =\u003e [internal] load build definition from 3115.Dockerfile 0.0s\r\n =\u003e =\u003e transferring dockerfile: 423B 0.0s\r\n =\u003e [internal] load .dockerignore 0.0s\r\n =\u003e =\u003e transferring context: 72B 0.0s\r\n =\u003e [internal] load metadata for docker.io/library/python:3.11.5-slim 0.7s\r\n =\u003e [1/3] FROM docker.io/library/python:3.11.5-slim@sha256:c4992301d47a4f1d3e73c034494c080132f9a4090703babfcfa3317f7ba54461 0.0s\r\n =\u003e CACHED [2/3] RUN apt-get upgrade \u0026\u0026 apt-get update \u0026\u0026 apt-get install -y curl python3-dev libpq-dev gcc 0.0s\r\n =\u003e ERROR [3/3] RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python - 19.0s\r\n------ \r\n \u003e [3/3] RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python -: \r\n#0 18.95 Retrieving Poetry metadata \r\n#0 18.95 \r\n#0 18.95 # Welcome to Poetry! \r\n#0 18.95 \r\n#0 18.95 This will download and install the latest version of Poetry,\r\n#0 18.95 a dependency and package manager for Python.\r\n#0 18.95 \r\n#0 18.95 It will add the `poetry` command to Poetry's bin directory, located at:\r\n#0 18.95 \r\n#0 18.95 /opt/poetry/bin\r\n#0 18.95 \r\n#0 18.95 You can uninstall at any time by executing this script with the --uninstall option,\r\n#0 18.95 and these changes will be reverted.\r\n#0 18.95 \r\n#0 18.95 Installing Poetry (1.6.1)\r\n#0 18.95 Installing Poetry (1.6.1): Creating environment\r\n#0 18.95 Installing Poetry (1.6.1): Installing Poetry\r\n#0 18.95 Installing Poetry (1.6.1): An error occurred. Removing partial environment.\r\n#0 18.95 Poetry installation failed.\r\n#0 18.95 See /poetry-installer-error-4uad51ii.log for error logs.\r\n------\r\nERROR: failed to solve: executor failed running [/bin/sh -c curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python -]: exit code: 1\r\n\r\n```\r\n\r\nError Log:\r\n\r\n```\r\nWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.\r\nWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")': /simple/poetry/\r\nWARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")': /simple/poetry/\r\nWARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")': /simple/poetry/\r\nWARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")': /simple/poetry/\r\nWARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")': /simple/poetry/\r\nCould not fetch URL https://pypi.org/simple/poetry/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/poetry/ (Caused by SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")) - skipping\r\nERROR: Could not find a version that satisfies the requirement poetry==1.6.1 (from versions: none)\r\nERROR: No matching distribution found for poetry==1.6.1\r\nWARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.\r\nCould not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(\"Can't connect to HTTPS URL because the SSL module is not available.\")) - skipping\r\n\r\nTraceback:\r\n\r\n File \"\u003cstdin\u003e\", line 923, in main\r\n File \"\u003cstdin\u003e\", line 560, in run\r\n File \"\u003cstdin\u003e\", line 582, in install\r\n File \"\u003cstdin\u003e\", line 685, in install_poetry\r\n File \"\u003cstdin\u003e\", line 375, in pip\r\n File \"\u003cstdin\u003e\", line 372, in python\r\n File \"\u003cstdin\u003e\", line 365, in run\r\n```\r\n\r\n## My Environment\r\nOperating System: MacOS Ventura 13.4.1 (c) (22F770820d)\r\nCPU: Apple M1 Pro\r\n\r\nDocker: 4.17.0 (99724)\r\n\r\n## Temporary solution\r\n\r\nPin image version to `python:3.11.4-slim`","author":{"url":"https://github.com/flxdot","@type":"Person","name":"flxdot"},"datePublished":"2023-08-29T08:36:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/862/python/issues/862"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05ce4fac-1500-66bb-3c4c-c8ddfab0a01b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA6A:14541C:2DDBA28:4175851:6A590A96 |
| html-safe-nonce | 3c9953174efa742ed1ddc67c8878cc12a3bed3952f09b489fde9c65db69f8217 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTZBOjE0NTQxQzoyRERCQTI4OjQxNzU4NTE6NkE1OTBBOTYiLCJ2aXNpdG9yX2lkIjoiNTgwMTEyMjA0ODI3ODg1ODM5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e68cfbf0ddb501e31767721eba5011986fc982f74c9bb918b2ec814d0f64c376 |
| hovercard-subject-tag | issue:1871170168 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-library/python/862/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2b064b6a7982d425350aa7b3b6f3bd8ec541452e4439fd74ae3f86db5edb89b/docker-library/python/issues/862 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2b064b6a7982d425350aa7b3b6f3bd8ec541452e4439fd74ae3f86db5edb89b/docker-library/python/issues/862 |
| og:image:alt | I noticed today that our CI if failing to install poetry. I could isolate the issue being related to the python:3.11.5-slim image: Working Example: 3114.Dockerfile FROM python:3.11.4-slim RUN apt-g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flxdot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb8ea312922ccce63e833964f9606d971cffb2d5b6c10a62c4a7dcc48d826e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-library/python git https://github.com/docker-library/python.git |
| octolytics-dimension-user_id | 7739233 |
| octolytics-dimension-user_login | docker-library |
| octolytics-dimension-repository_id | 21054928 |
| octolytics-dimension-repository_nwo | docker-library/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21054928 |
| octolytics-dimension-repository_network_root_nwo | docker-library/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 886a6c6fbce3d3caad5b3b995ef09ff6ca23f10e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width