Mail Archives: cygwin/2021/04/02/09:27:37
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 <gavenkoa AT gmail DOT com>, http://defun.work/
|
Message-ID: | <vriuy2e0yfyf.fsf@gavenkoa.example.com>
|
References: | <CANV2+nVF4QyWL1LVkD38=u4gJVqFN_GpC6y965TQuoscxH=0SQ AT mail DOT gmail DOT com>
|
| <CAB8Xom93f9eDswLiCPxUxXuw9Dq0SK6BPooeBy5BFBxWsK75PQ AT mail DOT gmail DOT com>
|
| <fb364670-8757-ce44-0197-d848d5ad9077 AT cornell DOT edu>
|
| <CANV2+nXVtgkYSALuNzMqcN_jGtwh55JLDdKM0LiV+1pkJ4EuNA AT mail DOT gmail DOT com>
|
| <f5229574-5704-fba1-16e5-22b4dc4a94d4 AT gmail DOT com>
|
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 <cygwin.cygwin.com>
|
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>
|
From: | Oleksandr Gavenko via Cygwin <cygwin AT cygwin DOT com>
|
Reply-To: | Oleksandr Gavenko <gavenkoa AT gmail DOT com>
|
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com>
|
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 <module>
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 <module>
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 <module>
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 <module>
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
- Raw text -