X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.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?
Content-Language: it
To: Russell VT <russellvt@gmail.com>
References: <f5b1r26m7a2.fsf@ecclerig.inf.ed.ac.uk>
 <67c4a4f1-3189-e85a-0719-c05a1096a0d6@gmail.com>
 <87k0fykrqm.fsf@Rainer.invalid>
 <CANV2+nWPJE83rryNzJwwVNsKYbzvJnKV9GZ93ERzD95Zpb7QJg@mail.gmail.com>
 <2839cd60-8219-4b9a-b967-9519a36d247e@gmail.com>
 <CANV2+nW3r877DAvgGuwy1HHWk0q4f-XDpKcvOq5k2g3s=yU8sQ@mail.gmail.com>
From: Marco Atzeri <marco.atzeri@gmail.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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
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@nexgo.de
>     <mailto:Stromeko@nexgo.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

