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

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 D62FA3858C60
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=message-id:date:mime-version:user-agent:subject:content-language:to
:cc:references:from:in-reply-to:content-transfer-encoding;
bh=vA5mQOLAxMdB1Z1bvUevYSttY+6Px/2dwHJT/tY2coc=;
b=MVAVIxE48ZTuJTUD0tgdrVacRKtsFQZ6BxtTIPb0PzZxkwqgLYjbrvx4SXwwIwD5TW
dq5+s5Kwd9lr3XKJzg/FL83VIzaZfdO2MR9+I8eKCTpZQ1bPug4AEw2FzcCcv8n8NynJ
n4ostfROFml5kfvlU57gacKBaW+ZFLgRWAxlM/UmCh51MIndajLDEjDBaUPzsftwpX3Q
55FqtU17sbWyIN1M9UydG63ISkLLJaenbpqu+LVPszjBtTNDa8SjuBPKe7PdDwJ67+Yu
4DW/ok8V2DgFaNqcUXTRZQrU1mYNjO9apNY8PX2LujZ9htrOdpHhqYxu6nF3X9jPc3Mt
+KaQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:cc:references:from:in-reply-to
:content-transfer-encoding;
bh=vA5mQOLAxMdB1Z1bvUevYSttY+6Px/2dwHJT/tY2coc=;
b=aIzW69nd+N4Q6nd4CHKY7bVhUnP0zDaWx8FpOXUTA7zlGk97Sg+LtJG9KJt3KiGn2v
NhDauxLDVR1STREkg12cMTGdfQ9qHAbcM0FlwW+Lg1DgqwIW9sfrjLJqDlDDPK+fLGU3
lMPTVauaHsakV/pbF/bPbPGaKULPnpkOzPiydcqFHGtvMgi3+gYoJyr1A4vI6DbML4LQ
NIREzFSt0ABdKnaFsiGOYWOgnN1rWTOcsYz7lI2LV1aEzW9HbuMJcJbT14BLu3ZZUbPw
YXKL6xblbV5CCE+g/s7xrSiPd4dgt9SOoivbc1CXQGzxOzJ69vGXaSyVpi6Sa5cIiROa
mi0A==
X-Gm-Message-State: AOAM533UK/k7FNJGaw5w1lFt/7YxDQDeAytFUhfSdbzHRgf7n9MgcEuJ
c5vr/lVxJuGPAXqv4NPMTxc=
X-Google-Smtp-Source: ABdhPJyGVQitmI9nX6tZw/ZG04Loz0efNJKPJ2qSiXFTCw+BC66EE6JL3lUeN253HgT+aDH8egSu5g==
X-Received: by 2002:a05:600c:ac4:: with SMTP id c4mr884436wmr.81.1640249455875;
Thu, 23 Dec 2021 00:50:55 -0800 (PST)
Message-ID: <c35bf2df-a0c4-4fc1-a217-867df103a97a@gmail.com>
Date: Thu, 23 Dec 2021 09:50:54 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Subject: Re: python3.9 failing?
To: Russell VT <russellvt AT gmail DOT com>
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>
<CANV2+nW3r877DAvgGuwy1HHWk0q4f-XDpKcvOq5k2g3s=yU8sQ AT mail DOT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
In-Reply-To: <CANV2+nW3r877DAvgGuwy1HHWk0q4f-XDpKcvOq5k2g3s=yU8sQ@mail.gmail.com>
X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
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-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1BN8pcrZ031009

On 23.12.2021 09:28, Russell VT wrote:
> On Thu, Dec 23, 2021 at 12:52 AM Marco Atzeri > 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
>     <mailto: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?

not in this case as Mercurial is not version agnostic
and it is setting its own specific "libdir"

$ cygcheck -l mercurial | grep "usr/lib" | head
/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py
/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy3.py
..

>     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

my workaround solve the specific hg issue,  until its repacking.

Alternatives can not support two different programs that need different 
version


> Cheers -
> RVT

Regards
Marco




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