Title: Action failed after configuring poetry on Windows · Issue #407 · actions/setup-python · GitHub
Open Graph Title: Action failed after configuring poetry on Windows · Issue #407 · actions/setup-python
X Title: Action failed after configuring poetry on Windows · Issue #407 · actions/setup-python
Description: Description: After configuring poetry on Windows, action failed with Error: Unexpected token # in JSON. Action version: v3.1 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Tools version: 3.7, 3.8, 3.9, 3.10 Repro steps: h...
Open Graph Description: Description: After configuring poetry on Windows, action failed with Error: Unexpected token # in JSON. Action version: v3.1 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Tools ver...
X Description: Description: After configuring poetry on Windows, action failed with Error: Unexpected token # in JSON. Action version: v3.1 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Tools ver...
Opengraph URL: https://github.com/actions/setup-python/issues/407
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Action failed after configuring poetry on Windows","articleBody":"\u003c!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 ---\u003e\r\n\u003c!--- Before opening up a new bug report, please make sure to check for similar existing issues --\u003e\r\n\r\n**Description:**\r\nAfter configuring poetry on Windows, action failed with Error: Unexpected token # in JSON.\r\n\r\n**Action version:**\r\nv3.1\r\n\r\n**Platform:**\r\n- [ ] Ubuntu\r\n- [ ] macOS\r\n- [x] Windows\r\n\r\n**Runner type:**\r\n- [x] Hosted\r\n- [ ] Self-hosted\r\n\r\n**Tools version:**\r\n3.7, 3.8, 3.9, 3.10\r\n\r\n**Repro steps:** \r\n\u003chttps://github.com/he0119/action-test/blob/main/.github/workflows/python.yml\u003e\r\n\r\nConfiguring poetry before setup-python\r\n\r\n```yml\r\n - name: Install poetry\r\n run: pipx install poetry --pip-args=--pre\r\n - run: poetry config virtualenvs.prefer-active-python true\r\n - uses: actions/setup-python@v3\r\n with:\r\n python-version: ${{ matrix.python-version }}\r\n cache: 'poetry'\r\n```\r\n\r\n**Expected behavior:**\r\nrun without error.\r\n\r\n**Actual behavior:**\r\n\u003chttps://github.com/he0119/action-test/runs/6602490267?check_suite_focus=true#step:5:19\u003e\r\n```log\r\nRun actions/setup-python@v3\r\nSuccessfully setup CPython (3.10.4)\r\n\"C:\\Program Files (x8[6](https://github.com/he0119/action-test/runs/6602218881?check_suite_focus=true#step:5:7))\\pipx_bin\\poetry.exe\" config --list\r\ncache-dir = \"C:\\\\Users\\\\runneradmin\\\\AppData\\\\Local\\\\pypoetry\\\\Cache\"\r\nexperimental.new-installer = true\r\ninstaller.max-workers = null\r\ninstaller.parallel = true\r\nvirtualenvs.create = true\r\nvirtualenvs.in-project = null\r\nvirtualenvs.options.always-copy = false\r\nvirtualenvs.options.system-site-packages = false\r\nvirtualenvs.path = \"{cache-dir}\\\\virtualenvs\" # C:\\Users\\runneradmin\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\r\nvirtualenvs.prefer-active-python = true\r\nError: Unexpected token # in JSON at position 28\r\n```","author":{"url":"https://github.com/he0119","@type":"Person","name":"he0119"},"datePublished":"2022-05-26T00:39:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/407/setup-python/issues/407"}
| 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:520ddf76-5778-8374-3ea2-9cb764583688 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C24:21AFAE:12C1C0:191B52:6A52C118 |
| html-safe-nonce | 5a4704adf45a7448a0e45a2eef1bca1b4ce81463aa7b305231bfd2ef7db3c252 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzI0OjIxQUZBRToxMkMxQzA6MTkxQjUyOjZBNTJDMTE4IiwidmlzaXRvcl9pZCI6IjE3MTY0MTMwOTM4NDI2OTg1MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2bdbfd9db66f2c8c81853a4f05b5714bba8d24862935929fad906d634e14f4e0 |
| hovercard-subject-tag | issue:1248948051 |
| 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/407/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7595bbb3babf23f320d276847da807e9079656f280e0a3d683bb80efc1a7697/actions/setup-python/issues/407 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7595bbb3babf23f320d276847da807e9079656f280e0a3d683bb80efc1a7697/actions/setup-python/issues/407 |
| og:image:alt | Description: After configuring poetry on Windows, action failed with Error: Unexpected token # in JSON. Action version: v3.1 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Tools ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | he0119 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width