Is mercurial ready for Python 3?
Manuel Jacob
me at manueljacob.de
Fri May 15 17:19:51 UTC 2020
Repeating it here for people not subscribed to the bug. Can you try
whether the error goes away with a6e12d477595?
On 2020-05-15 17:40, Nathan wrote:
> Looks like this is
> https://bz.mercurial-scm.org/show_bug.cgi?id=6268
>
> And it’s an issue with how mercurial delays imports to runtime.
>
> On Fri, May 15, 2020 at 9:36 AM Detlev Offenbach
> <detlev at die-offenbachs.de>
> wrote:
>
>> 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_______________________________________________
>> Mercurial mailing list
>> Mercurial at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list