Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python 3.11.0b4 - py launcher fails when running a script with a shebang line #94772

Closed
Labels
@pfmoore

Description

@pfmoore

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.exe

Note 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

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp