From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id BE8433858C60 for ; Thu, 23 Dec 2021 08:29:06 +0000 (GMT) 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 Received: by mail-ot1-x32c.google.com with SMTP id w19-20020a056830061300b0058f1dd48932so5500459oti.11 for ; Thu, 23 Dec 2021 00:29:06 -0800 (PST) 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: <67c4a4f1-3189-e85a-0719-c05a1096a0d6@gmail.com> <87k0fykrqm.fsf@Rainer.invalid> <2839cd60-8219-4b9a-b967-9519a36d247e@gmail.com> In-Reply-To: <2839cd60-8219-4b9a-b967-9519a36d247e@gmail.com> From: Russell VT Date: Thu, 23 Dec 2021 01:28:48 -0700 Message-ID: Subject: Re: python3.9 failing? To: Marco Atzeri Cc: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2021 08:29:08 -0000 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 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