Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
When running a script with a "shebang" line, thepy.exe launcher in Python 3.11.0b4 fails with an error:
To reproduce, create the following script asx.py:
#!/usr/bin/env pythonimportsysprint(sys.version)print(sys.executable)
Run the script usingpy.exe built from a 3.11.0b4 checkout usingbuild.bat:
❯ .\amd64\py.exe .\x.py .\x.py': The system cannot find the file specified.ata\Local\Programs\Python\Python310\python.exeNote the truncated python executable name. This appears to be related to the use of CRLF line endings in the file - if I switch to LF line endings, I get
❯ .\amd64\py.exe .\x.pyUnable to create process using 'C:\Users\Gustav\AppData\Local\Programs\Python\Python310\python.exe .\x.py': The system cannot find the file specified.Your environment
- Launcher from 3.11.0b4, but the active Python version is 3.10.3.
- Operating system and architecture: Windows 11, 64-bit.
Metadata
Metadata
Assignees
Projects
Status
Done