X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDBBF3857025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1617370052; bh=bY7A1sEgk/E3K4HeN0YxMiq+fipx6Ovp9un2Gidbwko=; h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Y/yYVFLCl2ZSgZ+hKsUBtlGfdlG9DQypxWeH0f/jsxW4wzolKgidGxU1BDKI2Tmh8 wY+e4uH+TkCzVmS+srudn/mX7UDcVXTHObwznuKSBMSLOn6UXA6dUuYX1fceBBUJ6q G8l3G9axAB/j9bzcA4LT4ohU9kSf+aplJe6cPl5c= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AF74A385801D X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com 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 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Oleksandr Gavenko via Cygwin Reply-To: Oleksandr Gavenko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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/ -- 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