Is mercurial ready for Python 3?
Detlev Offenbach
detlev at die-offenbachs.de
Fri May 15 15:29:23 UTC 2020
How about hgweb? I have it working in a Docker container using Python2 and
gunicorn. But when I tried to switch to Python3 I first got an error message
stating that my WSGI script would be using unicode strings. I could overcome
this by prepending 'b' to make the 'faulty' string a bytes object. The message
was
mercurial.error.ProgrammingError: Mercurial only supports encoded strings: '/
etc/mercurial/hgweb.config
Thereafter it failed with a message
File "/usr/lib/python3.7/site-packages/mercurial/hgweb/hgwebdir_mod.py", line
17, in <module>
from .common import (
ImportError: cannot import name 'ErrorResponse' from 'mercurial.hgweb.common'
(/usr/lib/python3.7/site-packages/mercurial/hgweb/common.py)
Regards,
Detlev
Am Donnerstag, 14. Mai 2020, 21:34:12 CEST schrieb Gregory Szorc:
> We stopped advertising the Windows Python 3 installers because https://
> server interactions weren't working. We may publish installers for 5.4.1
> if/when fixes land. The Python 3 installers are still available at
> https://www.mercurial-scm.org/release/windows/?C=M;O=D if you want to play
> around with them (they are the 5.4 installers without "-python2" in their
> filenames).
>
> On Thu, May 14, 2020 at 9:15 AM Detlev Offenbach <detlev at die-offenbachs.de>
>
> wrote:
> > Hello,
> >
> > for a couple of days one could download a Mercurial installer for Windows
> > built for Python3. But now it is gone. I tried using Mercurial's hgweb
> > with
> > Python3 but it gave me some errors. This leads to the question show in the
> > subject.
> >
> > If it is not ready yet, when will it be? Python2 is EOL since a couple of
> > months.
> >
> > Regards,
> > Detlev
> > --
> > Detlev Offenbach
> > detlev at die-offenbachs.de
> >
> >
> > _______________________________________________
> > Mercurial mailing list
> > Mercurial at mercurial-scm.org
> > https://www.mercurial-scm.org/mailman/listinfo/mercurial
--
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hgweb.py
Type: text/x-python
Size: 205 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20200515/d1603288/attachment-0002.py>
More information about the Mercurial
mailing list