* Latest update seems to have broken Mercurial
@ 2021-01-30 9:41 David Monksfield
2021-01-30 13:09 ` Marco Atzeri
0 siblings, 1 reply; 3+ messages in thread
From: David Monksfield @ 2021-01-30 9:41 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Latest update seems to have broken Mercurial
2021-01-30 9:41 Latest update seems to have broken Mercurial David Monksfield
@ 2021-01-30 13:09 ` Marco Atzeri
2021-01-31 10:25 ` David Monksfield
0 siblings, 1 reply; 3+ messages in thread
From: Marco Atzeri @ 2021-01-30 13:09 UTC (permalink / raw)
To: cygwin
On 30.01.2021 10:41, David Monksfield wrote:
> 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.
>
>
> Any help or suggestions would be appreciated.
>
> Thanks,
> David
>
Hi David,
yes I am aware, current mercurial package still requires python 2.7.
You can see the situation with
-------------------------------------------
$ alternatives --display python
python - status is auto.
link currently points to /usr/bin/python3.8
/usr/bin/python3.7 - priority 37
/usr/bin/python2.7 - priority 27
/usr/bin/python3.6 - priority 36
/usr/bin/python3.8 - priority 38
Current `best' version is /usr/bin/python3.8.
-----------------------------------------
and change it with
-----------------------------------------
$ alternatives --config python
There are 4 programs which provide 'python'.
Selection Command
-----------------------------------------------
1 /usr/bin/python3.7
2 /usr/bin/python2.7
3 /usr/bin/python3.6
*+ 4 /usr/bin/python3.8
Enter to keep the current selection[+], or type selection number: 2
$ hg --version
Mercurial Distributed SCM (version 5.6)
(see https://mercurial-scm.org for more information)
...
--------------------------------------------------
see "alternatives --help"
for further info
Regards
Marco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Latest update seems to have broken Mercurial
2021-01-30 13:09 ` Marco Atzeri
@ 2021-01-31 10:25 ` David Monksfield
0 siblings, 0 replies; 3+ messages in thread
From: David Monksfield @ 2021-01-31 10:25 UTC (permalink / raw)
To: cygwin
On Sat, 30 Jan 2021 14:09:20 +0100, Marco Atzeri via Cygwin <cygwin@cygwin.com> wrote:
> On 30.01.2021 10:41, David Monksfield wrote:
> > Mercurial was working fine for me until my last Cywin update (yesterday).
> > [...]
>
> Hi David,
> yes I am aware, current mercurial package still requires python 2.7.
>
> You can see the situation with
>
> -------------------------------------------
> $ alternatives --display python
> python - status is auto.
> link currently points to /usr/bin/python3.8
> /usr/bin/python3.7 - priority 37
> /usr/bin/python2.7 - priority 27
> /usr/bin/python3.6 - priority 36
> /usr/bin/python3.8 - priority 38
> Current `best' version is /usr/bin/python3.8.
> -----------------------------------------
>
> and change it with
>
> -----------------------------------------
> $ alternatives --config python
Brilliant, thanks - that worked!
I'll make sure I change the python default back to 3.8 once the Mercurial package has been updated.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-31 10:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-30 9:41 Latest update seems to have broken Mercurial David Monksfield
2021-01-30 13:09 ` Marco Atzeri
2021-01-31 10:25 ` David Monksfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).