delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/30/04:55:52

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E23543870917
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dmbrain.co.uk
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=goc-cygwin AT m DOT gmane-mx DOT org
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: David Monksfield <dmdm AT dmbrain DOT co DOT uk>
Subject: Latest update seems to have broken Mercurial
Date: Sat, 30 Jan 2021 09:41:58 +0000
Message-ID: <r4aa1glq5g3oglh1otl083qf6v9d0igo75@4ax.com>
Mime-Version: 1.0
X-Newsreader: Forte Agent 4.2/32.1117
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_COUK, KAM_DMARC_STATUS, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
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>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Mercurial was working fine for me until my last Cywin update (yesterday).
I have Mercurial 5.5.1-1. I don't know enough about python to unpick this,
but it looks suspicious that there is a mixture of python2.7 and python3.8
in the traceback.

I now get this:

$ hg status
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    dispatch.run()
  File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 22, in <module>
    from .i18n import _
  File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "/usr/lib/python2.7/site-packages/mercurial/i18n.py", line 112, in <module>
    if _plain():
  File "/usr/lib/python2.7/site-packages/mercurial/i18n.py", line 104, in _plain
    b'HGPLAIN' not in encoding.environ
  File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "/usr/lib/python2.7/site-packages/mercurial/encoding.py", line 40, in <module>
    charencode = policy.importmod('charencode')
  File "/usr/lib/python2.7/site-packages/mercurial/policy.py", line 116, in importmod
    mod = _importfrom(pn, mn)
  File "/usr/lib/python2.7/site-packages/mercurial/policy.py", line 67, in _importfrom
    pkg = __import__(pkgname, globals(), fakelocals, [modname], level=1)
  File "/usr/lib/python3.8/importlib/util.py", line 286, in create_module
    return self.loader.create_module(spec)
ImportError: dynamic module does not define module export function (PyInit_parsers)

Any help or suggestions would be appreciated.

Thanks,
David

--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019