Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I prefer to think that God is not dead, just drunk" -- John Huston


devel / comp.lang.python / Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

SubjectAuthor
o Re: Python 3.12.1,Barry

1
Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

<mailman.28.1703250817.2892.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24663&group=comp.lang.python#24663

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!paganini.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: Python 3.12.1,
Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more
Date: Fri, 22 Dec 2023 13:13:18 +0000
Lines: 46
Message-ID: <mailman.28.1703250817.2892.python-list@python.org>
References: <f53edfe0-d67b-45a8-8604-a3d89734af58@web.de>
<24204D60-E530-4766-9A5F-1211CB9A0882@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de wacM09xdWh9rLgQgEw+wJwMr4ZOxF7A+qytbydlVl9zw==
Cancel-Lock: sha1:QNcTg7eCk7XMqCLgMhhh9V9j9F4= sha256:L+HjesaOG5k/9dBqJXmtQAYX8ea5ctTkxmxdikjSbwk=
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'message:': 0.03;
'python?': 0.03; 'entering': 0.05; 'gui': 0.05; 'subject:Windows':
0.07; 'users,': 0.07; 'python.': 0.08; 'cc:addr:python-list':
0.09; 'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:Python': 0.12; 'cc:no real name:2**0': 0.14;
'url:mailman': 0.15; 'barry': 0.16; 'contrary': 0.16; 'from:addr
:barrys-emacs.org': 0.16; 'kann': 0.16; 'message-id:@barrys-
emacs.org': 0.16; 'subject:usr': 0.16; '\xef\xbb\xbfhello,': 0.16;
'wrote:': 0.16; 'python': 0.16; 'it?': 0.19; 'cc:addr:python.org':
0.20; 'machine': 0.22; "i've": 0.22; 'install': 0.23; 'installed':
0.23; 'lines': 0.23; 'run': 0.23; 'url-ip:188.166.95.178/32':
0.25; 'url-ip:188.166.95/24': 0.25; 'url:listinfo': 0.25;
'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25; 'seems': 0.26;
'space': 0.26; "isn't": 0.27; 'computer': 0.29; 'error': 0.29;
'dec': 0.31; 'url-ip:188/8': 0.31; 'das': 0.32; 'end.': 0.32;
'python-list': 0.32; 'window': 0.32; 'but': 0.32; 'there': 0.33;
'script': 0.33; 'windows': 0.34; 'same': 0.34; 'header:In-Reply-
To:1': 0.34; 'using': 0.37; "it's": 0.37; 'file': 0.38; 'could':
0.38; 'two': 0.39; 'double': 0.40; 'something': 0.40; 'should':
0.40; 'between': 0.63; 'everything': 0.63; 'types': 0.67;
'worked': 0.67; 'received:217': 0.67; 'older': 0.70; 'name,':
0.75; 'clicking': 0.76; 'die': 0.76; 'explorer': 0.84; 'nicht':
0.84; 'subject:bin': 0.84; 'subject:more': 0.95
In-Reply-To: <f53edfe0-d67b-45a8-8604-a3d89734af58@web.de>
X-Mailer: iPad Mail (21C62)
X-GND-Sasl: barry@barrys-emacs.org
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <24204D60-E530-4766-9A5F-1211CB9A0882@barrys-emacs.org>
X-Mailman-Original-References: <f53edfe0-d67b-45a8-8604-a3d89734af58@web.de>
 by: Barry - Fri, 22 Dec 2023 13:13 UTC

> On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list <python-list@python.org> wrote:
>
> Hello,
>
> I always install Python on Windows in the same manner:
>
> - Python is not on the path,
> - it is installed for all users,
> - the Python Launcher is installed for all users,
> - the file types .py, .pyw etc. are associated with Python.
>
> My shebang line is usually "#!/usr/bin/env python3".
>
> This has always worked well. I could run Python scripts in a console
> window entering just the script name, by double clicking in the explorer
> or using WIN+r; the two last variants for GUI or for scripts with
> something like "input('Leave with Enter')" at the end.
>
> Now I've got a new computer with Windows 11 and I've installed Python
> 3.12.1. On my older machine it's Windows 10 and Python 3.11.5. Reading
> the Python documentation it seems my shebang lines should work as before
> - but they don't. The error message:
>
> "Unable to create process using 'C:\usr\bin\env\python
> "C:\Eigen\Src\launcher_versuche.py" ': Das System kann die angegebene
> Datei nicht finden."
>
> Without the "env" in the shebang line and only without it everything
> works as expected - but that's contrary to the documentation, isn't it?

This suggests a typo in the shebang line. Is there a space between env and python?

Barry

>
> Thank you for information,
> Sibylle
> --
> https://mail.python.org/mailman/listinfo/python-list
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor