Title: Python launcher invoked with command "py" fails to start process · Issue #99442 · python/cpython · GitHub
Open Graph Title: Python launcher invoked with command "py" fails to start process · Issue #99442 · python/cpython
X Title: Python launcher invoked with command "py" fails to start process · Issue #99442 · python/cpython
Description: Bug report When I invoke a python launcher of version 3.11.0 with "py" command, a python launcher fails to start process. Step to reproduce Install python 3.11.0 with py launcher for all users. Invoke "py" in command prompt. I expect to ...
Open Graph Description: Bug report When I invoke a python launcher of version 3.11.0 with "py" command, a python launcher fails to start process. Step to reproduce Install python 3.11.0 with py launcher for all users. Inv...
X Description: Bug report When I invoke a python launcher of version 3.11.0 with "py" command, a python launcher fails to start process. Step to reproduce Install python 3.11.0 with py launcher for all ...
Opengraph URL: https://github.com/python/cpython/issues/99442
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python launcher invoked with command \"py\" fails to start process","articleBody":"# Bug report\r\n\r\nWhen I invoke a python launcher of version 3.11.0 with `\"py\"` command, a python launcher fails to start process.\r\n\r\nStep to reproduce\r\n\r\n1. Install python 3.11.0 with py launcher for all users.\r\n2. Invoke `\"py\"` in command prompt.\r\n3. I expect to launch a python interpreter, but got a error as below\r\n \r\n ```console\r\n \u003e\"py\"\r\n Unable to create process using 'C:\\Python311\\py\"': The system cannot find the file specified.\r\n ```\r\n\r\n \u003cdetails\u003e\u003csummary\u003eDebug output when enable PYLAUNCHER_DEBUG\u003c/summary\u003e\r\n\r\n ```console\r\n \u003e\"py\"\r\n argv0: py\r\n version: 3.11.0\r\n SearchInfo.originalCmdLine: \"py\"\r\n SearchInfo.restOfCmdLine:\r\n SearchInfo.executablePath: (null)\r\n SearchInfo.scriptFile: (null)\r\n SearchInfo.executable: py\"\r\n SearchInfo.executableArgs: (null)\r\n SearchInfo.company: (null)\r\n SearchInfo.tag: (null)\r\n SearchInfo.oldStyleTag: False\r\n SearchInfo.lowPriorityTag: False\r\n SearchInfo.allowDefaults: False\r\n SearchInfo.allowExecutableOverride: False\r\n SearchInfo.windowed: False\r\n SearchInfo.list: False\r\n SearchInfo.listPaths: False\r\n SearchInfo.help: False\r\n -V:3.11 C:\\Python311\\python.exe\r\n -V:3.10 C:\\Python310\\python.exe\r\n -V:3.9 C:\\Python39\\python.exe\r\n -V:3.7 C:\\Python37\\python.exe\r\n env.company: PythonCore\r\n env.tag: 3.11\r\n # about to run: C:\\Python311\\py\"\r\n Unable to create process using 'C:\\Python311\\py\"': The system cannot find the file specified.\r\n ```\r\n\r\n \u003c/details\u003e\r\n\r\n\r\nI think this error seems to be similar to #95285. If I invoke `py` or `\"py.exe\"`, a python interpreter starts well as I expected.\r\n\r\n```console\r\n\u003epy\r\nPython 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e\r\n```\r\n\r\n```console\r\n\u003e\"py.exe\"\r\nPython 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e\r\n```\r\n\r\nIn version 3.10.8, all of `\"py\"`, `py` and `\"py.exe\"` start a python interpreter correctly.\r\n\r\n\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: 3.11.0\r\n- Operating system and architecture: Windows 10 (10.0.19045.2310)/amd64\r\n\r\n\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-99542\n* gh-99579\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kai2nenobu","@type":"Person","name":"kai2nenobu"},"datePublished":"2022-11-13T15:06:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":30},"url":"https://github.com/99442/cpython/issues/99442"}
| 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:3be75dc1-5a77-ca28-6b98-595f6f8297c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E88C:2004F6:9F1ECD:D448D4:69699184 |
| html-safe-nonce | 1fdc836c4a05a2833e4ecc388413a0befcb249166f9008b4a9b2ac5107143933 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODhDOjIwMDRGNjo5RjFFQ0Q6RDQ0OEQ0OjY5Njk5MTg0IiwidmlzaXRvcl9pZCI6IjY0NTM1NTcyOTc0MDQyODUzMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d99e4cc2f1e2bd4cffbabcdc78dc2bfbbc2ec490e965036b8373ff6334c4fad2 |
| hovercard-subject-tag | issue:1446960968 |
| 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/python/cpython/99442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67e061ff46c2a07a710244cc69463e218e7888dd92b1d97739093dc91d45fbfd/python/cpython/issues/99442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67e061ff46c2a07a710244cc69463e218e7888dd92b1d97739093dc91d45fbfd/python/cpython/issues/99442 |
| og:image:alt | Bug report When I invoke a python launcher of version 3.11.0 with "py" command, a python launcher fails to start process. Step to reproduce Install python 3.11.0 with py launcher for all users. Inv... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kai2nenobu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width