Title: Error: Version X with arch x64 not found · Issue #162 · actions/setup-python · GitHub
Open Graph Title: Error: Version X with arch x64 not found · Issue #162 · actions/setup-python
X Title: Error: Version X with arch x64 not found · Issue #162 · actions/setup-python
Description: Describe the bug I am attempting to use setup-python with a self-hosted runner running on an ec2 instance. I am using this ami ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20201112. I have followed the instructions here. I am g...
Open Graph Description: Describe the bug I am attempting to use setup-python with a self-hosted runner running on an ec2 instance. I am using this ami ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20201112. I hav...
X Description: Describe the bug I am attempting to use setup-python with a self-hosted runner running on an ec2 instance. I am using this ami ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20201112. I hav...
Opengraph URL: https://github.com/actions/setup-python/issues/162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error: Version X with arch x64 not found","articleBody":"**Describe the bug**\r\nI am attempting to use setup-python with a self-hosted runner running on an ec2 instance. I am using this ami `ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20201112`. I have followed the instructions [here](https://github.com/actions/setup-python#linux). I am getting the following output when the setup-python action is run:\r\n\r\n```\r\nRun actions/setup-python@v2\r\n with:\r\n python-version: 3.7.7\r\n token: ***\r\n env:\r\n AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache\r\nVersion 3.7.7 was not found in the local cache\r\nVersion 3.7.7 is available for downloading\r\nDownload from \"https://github.com/actions/python-versions/releases/download/3.7.7-20200609.4/python-3.7.7-linux-18.04-x64.tar.gz\"\r\nExtract downloaded archive\r\n/bin/tar xz --warning=no-unknown-keyword -C /actions-runner/_work/_temp/f7f341f3-b2b9-4eff-bff0-5b55acb3a0f1 -f /actions-runner/_work/_temp/402c2129-71c1-46e4-9263-3b04a4b9772a\r\nExecute installation script\r\nCheck if Python hostedtoolcache folder exist...\r\nCreate Python 3.7.7 folder\r\nCopy Python binaries to hostedtoolcache folder\r\nCreate additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)\r\nUpgrading PIP...\r\nLooking in links: /tmp/tmpryj40n3d\r\nRequirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/site-packages (41.2.0)\r\nRequirement already satisfied: pip in /opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/site-packages (19.2.3)\r\nCollecting pip\r\nUsing cached https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d396a433/pip-20.2.4-py2.py3-none-any.whl\r\nInstalling collected packages: pip\r\nSuccessfully installed pip-20.2.4\r\nCreate complete file\r\nError: Version 3.7.7 with arch x64 not found\r\nThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json\r\n```\r\n\r\nIt's unclear what is actually failing as it seems to be finding the 3.7.7 python version and installs it and then it fails after installing pip.\r\n\r\n**Which version of the action are you using?**\r\n\r\n- [ ] `v1`\r\n- [X] `v2`\r\n- [ ] Some other tag (such as `v2.0.1` or `master`)\r\n\r\n**Environment**\r\n- [X] self-hosted\r\n- [X] Linux\r\n- [ ] Windows\r\n- [ ] Mac\r\n\r\nIf applicable, please specify if you're using a container\r\n\r\n**Python Versions**\r\nPlease list all of the effected versions of Python (`3.8.2`, etc.)\r\nTried 3.7.7, 3.10.0-alpha.2\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Go to '...'\r\n2. Click on '....'\r\n3. Scroll down to '....'\r\n4. See error\r\n\r\n**Run/Repo Url**\r\nIf applicable, and if your repo/run is public, please include a URL so it is easier for us to investigate.\r\nNA\r\n\r\n**Screenshots**\r\n\u003cimg width=\"1710\" alt=\"Screen Shot 2020-11-13 at 5 00 32 PM\" src=\"https://user-images.githubusercontent.com/370955/99125306-c47f4600-25d1-11eb-9b8d-ef4d88b16bbf.png\"\u003e\r\n\r\n**Additional context**\r\nHere's the script that launches the runner:\r\n```\r\n#!/bin/bash -xe\r\napt-get update -y\r\napt-get upgrade -y\r\n${local.apt-get-all-packages}\r\nsudo usermod -a -G docker ubuntu\r\nsudo systemctl start docker\r\nsudo systemctl enable docker\r\nexport RUNNER_ALLOW_RUNASROOT=true\r\nexport AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache\r\nmkdir actions-runner\r\nmkdir /opt/hostedtoolcache\r\ncd actions-runner\r\ncurl -O -L https://github.com/actions/runner/releases/download/v${var.runner-version}/actions-runner-linux-x64-${var.runner-version}.tar.gz\r\ntar xzf ./actions-runner-linux-x64-${var.runner-version}.tar.gz\r\n./config.sh --url https://github.com/${var.owner}/${var.repository} --token ${var.github-registration-token} --name \"actions-runner-$(hostname)\" --unattended\r\nsudo ./svc.sh install\r\nsudo ./svc.sh start\r\n```\r\n","author":{"url":"https://github.com/kldavis4","@type":"Person","name":"kldavis4"},"datePublished":"2020-11-13T22:03:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":74},"url":"https://github.com/162/setup-python/issues/162"}
| 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:ccb5da14-080a-6043-15f6-55faa38c7321 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 894E:3C5CB:1F898A0:2B6629F:6A4EC22D |
| html-safe-nonce | d3cf762ca6e1f64a1d9082f3440615cacaa01897148074d780e65c4193275c65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTRFOjNDNUNCOjFGODk4QTA6MkI2NjI5Rjo2QTRFQzIyRCIsInZpc2l0b3JfaWQiOiI1NTQ0MTc5MDIyODE5MTQ4MzMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7cfe0971a5ca0a2d43dd1d82d62ffb698ec90956765a033885d40162dc974916 |
| hovercard-subject-tag | issue:742816747 |
| github-keyboard-shortcuts | repository,issues,actions,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/actions/setup-python/162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a79f4167c4d17ab375eb911605c7d5bdf73bb1177fc262c5bd52ef0e647fd39a/actions/setup-python/issues/162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a79f4167c4d17ab375eb911605c7d5bdf73bb1177fc262c5bd52ef0e647fd39a/actions/setup-python/issues/162 |
| og:image:alt | Describe the bug I am attempting to use setup-python with a self-hosted runner running on an ec2 instance. I am using this ami ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20201112. I hav... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kldavis4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width