From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id AF74A385801D for ; Fri, 2 Apr 2021 13:27:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AF74A385801D Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lSJpe-0006pK-S1 for cygwin@cygwin.com; Fri, 02 Apr 2021 15:27:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: Oleksandr Gavenko Subject: Re: Cygwin now on Python 3? What about Mercurial? Date: Fri, 02 Apr 2021 16:27:20 +0300 Organization: Oleksandr Gavenko , http://defun.work/ Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (cygwin) Cancel-Lock: sha1:9HKCY/yrgJFnJFT2B81zdHa5cZk= X-Spam-Status: No, score=3.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_OTHER_BAD_TLD, NML_ADSP_CUSTOM_MED, PDS_OTHER_BAD_TLD, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2021 13:27:30 -0000 On 2021-03-07, Marco Atzeri via Cygwin wrote: > Mercurial has been just updated to version 5.7 > https://cygwin.com/packages/summary/mercurial.html > > and it now depends on python3.8 Just updated: $ grep mercurial /var/log/setup.log.full Installing file cygfile:///usr/lib/python3.8/site-packages/mercurial-5.7-py3.8.egg-info and had a problem: $ hg status Traceback (most recent call last): File "/usr/bin/hg", line 59, in dispatch.run() File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 157, in __getattr__ self._load() File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 97, in _load _origimport, head, globals, locals, None, level File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 44, in _hgextimport return importfunc(name, globals, *args, **kwargs) File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 21, in from .i18n import _ File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 257, in _demandimport _origimport, name, globals, locals, level=level File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 44, in _hgextimport return importfunc(name, globals, *args, **kwargs) File "/usr/lib/python3.8/site-packages/mercurial/i18n.py", line 15, in from .pycompat import getattr File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 257, in _demandimport _origimport, name, globals, locals, level=level File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 44, in _hgextimport return importfunc(name, globals, *args, **kwargs) File "/usr/lib/python3.8/site-packages/mercurial/pycompat.py", line 38, in from .thirdparty.concurrent import futures File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 257, in _demandimport _origimport, name, globals, locals, level=level File "/usr/lib/python3.8/site-packages/hgdemandimport/demandimportpy2.py", line 44, in _hgextimport return importfunc(name, globals, *args, **kwargs) ImportError: No module named concurrent Fixed with: bash# update-alternatives --config python There are 3 programs which provide 'python'. Selection Command ----------------------------------------------- + 1 /usr/bin/python2.7 2 /usr/bin/python3.6 * 3 /usr/bin/python3.8 Enter to keep the current selection[+], or type selection number: 3 That would be avoided (or problem delayed until impacted another utility) if /usr/bin/hg had shebang /usr/bin/python3 instead of /usr/bin/python. Thx for stabilizing Mercurial! -- http://defun.work/