Title: Docker Builds from python:3.9-slim failing due to broken setuptools`>=58` support for `use_2to3` · Issue #691 · docker-library/python · GitHub
Open Graph Title: Docker Builds from python:3.9-slim failing due to broken setuptools`>=58` support for `use_2to3` · Issue #691 · docker-library/python
X Title: Docker Builds from python:3.9-slim failing due to broken setuptools`>=58` support for `use_2to3` · Issue #691 · docker-library/python
Description: This is the output from docker build Sending build context to Docker daemon 236.3MB Step 1/15 : FROM python:3.9-slim 3.9-slim: Pulling from library/python b503b376: Pulling fs layer ac0246d0: Pulling fs layer 610c2a17: Pulling fs layer e...
Open Graph Description: This is the output from docker build Sending build context to Docker daemon 236.3MB Step 1/15 : FROM python:3.9-slim 3.9-slim: Pulling from library/python b503b376: Pulling fs layer ac0246d0: Pulli...
X Description: This is the output from docker build Sending build context to Docker daemon 236.3MB Step 1/15 : FROM python:3.9-slim 3.9-slim: Pulling from library/python b503b376: Pulling fs layer ac0246d0: Pulli...
Opengraph URL: https://github.com/docker-library/python/issues/691
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docker Builds from python:3.9-slim failing due to broken setuptools`>=58` support for `use_2to3`","articleBody":"This is the output from docker build \r\n```\r\nSending build context to Docker daemon 236.3MB\r\nStep 1/15 : FROM python:3.9-slim\r\n3.9-slim: Pulling from library/python\r\n\r\nb503b376: Pulling fs layer \r\nac0246d0: Pulling fs layer \r\n610c2a17: Pulling fs layer \r\ne6a8a46f: Pulling fs layer \r\nDigest: sha256:86b3b6af2b6254fe44de9f5c8e6e08248cdef19f3060ee5cf131ef629c375830\r\nStatus: Downloaded newer image for python:3.9-slim\r\n ---> 82941c7e2473\r\nStep 2/15 : ENV PYTHONUNBUFFERED 1\r\n ---> Running in 1991bb62cf2d\r\nRemoving intermediate container 1991bb62cf2d\r\n ---> f4b69b2edf92\r\nStep 3/15 : RUN mkdir /code\r\n ---> Running in 63dd3f2fdf15\r\nRemoving intermediate container 63dd3f2fdf15\r\n ---> 10ba58bce505\r\nStep 4/15 : WORKDIR /code\r\n ---> Running in c3a58c516e93\r\nRemoving intermediate container c3a58c516e93\r\n ---> 3b913b8a2f3e\r\nStep 5/15 : COPY application/requirements.txt /code/\r\n ---> ae9fba4fa10f\r\nStep 6/15 : RUN pip install -r requirements.txt\r\n ---> Running in bedf7a63fd76\r\nCollecting amqp==1.4.9\r\n Downloading amqp-1.4.9-py2.py3-none-any.whl (51 kB)\r\nCollecting anyjson==0.3.3\r\n Downloading anyjson-0.3.3.tar.gz (8.3 kB)\r\n ERROR: Command errored out with exit status 1:\r\n command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-ujd46kih/anyjson_bc3d3821b1ec4912838fd80f04ec3dd3/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-ujd46kih/anyjson_bc3d3821b1ec4912838fd80f04ec3dd3/setup.py'\"'\"';f = getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__) if os.path.exists(__file__) else io.StringIO('\"'\"'from setuptools import setup; setup()'\"'\"');code = f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-pip-egg-info-y6ptic74\r\n cwd: /tmp/pip-install-ujd46kih/anyjson_bc3d3821b1ec4912838fd80f04ec3dd3/\r\n Complete output (1 lines):\r\n error in anyjson setup command: use_2to3 is invalid.\r\n ----------------------------------------\r\nWARNING: Discarding https://files.pythonhosted.org/packages/c3/4d/d4089e1a3dd25b46bebdb55a992b0797cff657b4477bc32ce28038fdecbc/anyjson-0.3.3.tar.gz#sha256=37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba (from https://pypi.org/simple/anyjson/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\nERROR: Could not find a version that satisfies the requirement anyjson==0.3.3 (from versions: 0.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3, 0.3.1, 0.3.2, 0.3.3)\r\nERROR: No matching distribution found for anyjson==0.3.3\r\nWARNING: You are using pip version 21.2.4; however, version 22.0.2 is available.\r\nYou should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.\r\nThe command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1\r\n\r\nExited with code exit status 1\r\n```\r\nsetuptools>=58 breaks support for use_2to3: https://setuptools.pypa.io/en/latest/history.html#v58-0-0\r\nwhich seems to have been added in the latest changes on 3.9 https://github.com/docker-library/python/commit/87fb418b7c2465710ad308809d35a5b6e38c1c16","author":{"url":"https://github.com/patrickRobotics","@type":"Person","name":"patrickRobotics"},"datePublished":"2022-02-01T07:50:02Z","url":"https://github.com/docker-library/python/issues/691"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:fad5f955-c9c8-0ac1-69ce-f92d6d17a59a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B858:2893E9:2AE715:3B09A8:6AFE97A2 |
| html-safe-nonce | 24651b59c7d91190390c99d5b6d993c23791b162c31bfb51c9d64ae15871bedd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODU4OjI4OTNFOToyQUU3MTU6M0IwOUE4OjZBRkU5N0EyIiwidmlzaXRvcl9pZCI6IjYwMzI4NzEwNDg5OTM0Nzg1NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ddf1687fe1f7bc0de182562ea31cfcae32614d950346e11e0ad67eb79dac9920 |
| hovercard-subject-tag | issue:1120334629 |
| 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/691/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37461c63ed50e69f987a90dd48855d8d5de84837de6e04372206b860e25cb918/docker-library/python/issues/691 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37461c63ed50e69f987a90dd48855d8d5de84837de6e04372206b860e25cb918/docker-library/python/issues/691 |
| og:image:alt | This is the output from docker build Sending build context to Docker daemon 236.3MB Step 1/15 : FROM python:3.9-slim 3.9-slim: Pulling from library/python b503b376: Pulling fs layer ac0246d0: Pulli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | patrickRobotics |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width