Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A complex system that works is invariably found to have evolved from a simple system that works.


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, Windows 11: shebang line #!/usr/bin/env python3 doesn't work Sibylle Koczian

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: nulla.ep...@web.de (Sibylle Koczian)
Newsgroups: comp.lang.python
Subject: Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3
doesn't work any more
Date: Tue, 23 Jan 2024 10:49:53 +0100
Lines: 26
Message-ID: <mailman.102.1706003736.15798.python-list@python.org>
References: <d59f5407-0bfd-497e-86ed-66f751a4295e@web.de>
<825F8526-3074-4CD0-AED6-CCBE284840B8@barrys-emacs.org>
<7d49686c-d17b-4993-a9b7-feed59cefa20@web.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de NkFAiN7z2cze/QdtvDflfQz8S/2GI8IgdN+GOHsRxodA==
Cancel-Lock: sha1:3JVGYGovr5OOcgRANzP7sZWhFSo= sha256:nQNaNNoOfulE13Km/a/6dpbBtHAahcNY8bt36vE+jlA=
Return-Path: <nulla.epistola@web.de>
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.082
X-Spam-Evidence: '*H*': 0.85; '*S*': 0.01; 'settings.': 0.05;
'subject:Windows': 0.07; '"python"': 0.09; '11.': 0.09; 'schrieb':
0.09; 'subject:Python': 0.12; 'barry': 0.16; 'difference,': 0.16;
'expected.': 0.16; 'from:addr:web.de': 0.16; 'message-id:@web.de':
0.16; 'python3': 0.16; 'subject:usr': 0.16; 'wrote:': 0.16;
'python': 0.16; 'to:addr:python-list': 0.20; 'machine': 0.22;
'lines': 0.23; 'received:de': 0.23; 'seems': 0.26; 'settings':
0.28; 'header:User-Agent:1': 0.30; 'seem': 0.31; "doesn't": 0.32;
'execution': 0.32; 'here,': 0.32; 'python-list': 0.32; 'but':
0.32; 'there': 0.33; 'windows': 0.34; "didn't": 0.34; 'header:In-
Reply-To:1': 0.34; 'received:192.168': 0.37; 'could': 0.38; 'two':
0.39; 'least': 0.39; 'ago': 0.39; 'seeing': 0.39; 'remember':
0.61; 'ever': 0.63; 'once': 0.63; 'saw': 0.65; 'six': 0.65;
'years': 0.65; 'matter': 0.68; 'older': 0.70; 'received:194':
0.70; 'finds': 0.76; 'forgot': 0.84; 'jargon': 0.84; 'subject: \n
': 0.84; 'subject:bin': 0.84; 'glad': 0.86; 'magic': 0.93;
'subject:more': 0.95; 'turned': 0.95
User-Agent: Mozilla Thunderbird
In-Reply-To: <825F8526-3074-4CD0-AED6-CCBE284840B8@barrys-emacs.org>
X-TOI-EXPURGATEID: 150726::1706003393-0CA7E850-BC0E66ED/0/0 CLEAN NORMAL
X-TOI-MSGID: 0dea7774-48f4-42be-a783-8d4d15271d4c
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: <7d49686c-d17b-4993-a9b7-feed59cefa20@web.de>
X-Mailman-Original-References: <d59f5407-0bfd-497e-86ed-66f751a4295e@web.de>
<825F8526-3074-4CD0-AED6-CCBE284840B8@barrys-emacs.org>
 by: Sibylle Koczian - Tue, 23 Jan 2024 09:49 UTC

Am 16.01.2024 um 23:44 schrieb Barry via Python-list:
>
>
>> On 16 Jan 2024, at 17:11, Sibylle Koczian via Python-list <python-list@python.org> wrote:
>>
>> while the new Windows 11 machine finds the Microsoft stub
>
> You can turn off the stub in windows settings. The magic windows jargon is
> “App Execution Aliases”. Once you find it in settings you can turn off
> the python and python3 aliases.
>

Thank you! That did it. These two settings were off in the older Windows
10 installation and on in the new Windows 11. Changed there and the
shebang lines with "/env" work as expected.

I didn't remember ever seeing these settings on my "old" computer, but
it seems I turned them off six years ago and completely forgot about
them. Or could that have been an older default?

"python" or "python3" in the shebang line doesn't seem to make a
difference, at least not on machines that never saw Python 2.

Very glad to know what was the matter here,
Sibylle

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor