delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/12/23/03:29:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BE8433858C60
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=QpHN2NTROK+SYX11zOF+sSNYSNhHE7v9ya8v3dDbTLg=;
b=BABeuIinngivj/GLKWQu3enBVfg0ODXTmsxRg/xkUiaQ2dZnElOMksAHnZU3SRltP+
0rjRN/7lhNSi1UC1SNejokMezC8s+I2ncy7SnxEuZYQZ3cC6hFBqizCfRZrbliptwiMC
V/abwBE44wsBu3NUsPsqy8JChGX1zVnU2VKyPEFEp+qONr8NnC3ycRzIUt7VkXFYzGE/
CdeSHOsakSKoRcK4Ak3MrPFocXlt+Rrj8Fqp2SIAwa88C71PuU/VNVw10gFGMJRMdize
hiF68ht/Lb2sHjRiCid/f0CAceEViqFKhrIdI3OAIDaPD2v6Y04iruMaTKLex/oH0b67
TMAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=QpHN2NTROK+SYX11zOF+sSNYSNhHE7v9ya8v3dDbTLg=;
b=KnpxyHa8DvDQ2cNrNuM+zXyCTnmixlunJtup0PuTaS6PyAlwOD12u4yO+0QF92TcGh
GXcBPe0sMMrbcT4Jves9avvoeYIxxb4avRRpJlNOT1N1I08aLK1yzDBODYywFANkCSCM
bx5XcmsZBTjvDvmk779giJgY003sOVti7xXEtzjGxdwaB7xvM6oGtl0rqWINRY9V2aAQ
jAsDqgRuZ4R8DqSzXfwXVuZnOOquyK3k66/cyMSn4qmXXLUcQPnk7VJwYMN0eXDGIl5O
AqWHQk8zoB253IsbTK9oAsg869Yam8DkLpfejctLvCpOnuMNAOAk2raIC67PsLeZjc6J
1wrg==
X-Gm-Message-State: AOAM530eimjmJNnxqW45w9pncgEE2M8tdExWJ88qho0BqiMe5ppI5u9i
mI1gk1l+0KH3E7E0Drs5C5QrNb/90XoTymisMrE=
X-Google-Smtp-Source: ABdhPJzi+CAcPHMlzjO6Z7KNmICOiC5AatmP6jH8HB0wE6X8E32tKu649KpHq0R00rivcDAwebbf+nxhdt02DPuiVH4=
X-Received: by 2002:a9d:4a8:: with SMTP id 37mr819557otm.83.1640248146069;
Thu, 23 Dec 2021 00:29:06 -0800 (PST)
MIME-Version: 1.0
References: <f5b1r26m7a2 DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk>
<67c4a4f1-3189-e85a-0719-c05a1096a0d6 AT gmail DOT com>
<87k0fykrqm DOT fsf AT Rainer DOT invalid>
<CANV2+nWPJE83rryNzJwwVNsKYbzvJnKV9GZ93ERzD95Zpb7QJg AT mail DOT gmail DOT com>
<2839cd60-8219-4b9a-b967-9519a36d247e AT gmail DOT com>
In-Reply-To: <2839cd60-8219-4b9a-b967-9519a36d247e@gmail.com>
From: Russell VT <russellvt AT gmail DOT com>
Date: Thu, 23 Dec 2021 01:28:48 -0700
Message-ID: <CANV2+nW3r877DAvgGuwy1HHWk0q4f-XDpKcvOq5k2g3s=yU8sQ@mail.gmail.com>
Subject: Re: python3.9 failing?
To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Thu, Dec 23, 2021 at 12:52 AM Marco Atzeri <marco DOT atzeri AT gmail DOT com>
wrote:

> On 23.12.2021 06:50, Russell VT wrote:
> > On Tue, Dec 21, 2021 at 6:34 AM Achim Gratz <Stromeko AT nexgo DOT de> wrote:
> >
> >> Marco Atzeri writes:
> >>> Without Python 3.9  installed python3 should link by default to the
> >>> next in the line (likely 3.8)
> >>
> >> While python3 still defaults to python38 alternatives should probably
> >> prioritize 38 over 39?
> >
> >
> > That's how I "fixed" mercurial on my own installation, as it was
> > complaining about missing the "parsers" module, from inside the Python
> 3.9
> > libraries, IIRC.
>
> Thanks for the report.
> It is caused by:
>
> $ head /usr/bin/hg -n 20
> #!/usr/bin/python3
>                   ^^ default 3.9
> ....
>
> libdir = '../lib/python3.8/site-packages'
>                         ^^ but really need 3.8
>

Thanks... python3 defaults to whatever you have "alternatives" set to...
looks like python's libdir doesn't quite obey those alternatives, though?


> No surprise is not working.
>
> A simple workaround is:
>

Simpler (and more-complete) workaround is:

% /usr/sbin/alternatives.exe --set python3 /usr/bin/python3.8
% /usr/sbin/alternatives.exe --set python /usr/bin/python3.8
% /usr/sbin/alternatives.exe --display python3
python3 - status is manual.
 link currently points to /usr/bin/python3.8
/usr/bin/python3.8 - priority 38
/usr/bin/python3.6 - priority 36
/usr/bin/python3.7 - priority 37
/usr/bin/python3.9 - priority 39
Current `best' version is /usr/bin/python3.9.


Read: that way, when you can't figure out why the "next python upgrade"
isn't working, you only need to go to the very first stop you should be
looking (ie /etc/alternatives), and not some random link that may or may
not always be the first one in your path.

Cheers -
RVT

-- 
Russell M. Van Tassell <russellvt AT gmail DOT com>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019