Hg with Python 3 and Re2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Hg with Python 3 and Re2

Charles Chamberlain
Hello,

I'm trying to run mercurial with Python3 and re2. Installing re2 with pip3 succeeds,
but then any attempt to import it fails with the following:

    File "mercurial/util.py", line 1925, in <module>
      import re2
    File "re2.pyx", line 1, in init re2 (src/re2.cpp:13681)
    NameError: basestring


There is a stack overflow question from 3 years ago that suggests it's not compatible.
Has anyone succeeded in running mercurial with python3 and re2?

Thanks very much!
Charles

_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

Re: Hg with Python 3 and Re2

Manuel Jacob
Did you try it with the fork (as described in
https://github.com/andreasvc/pyre2#installation)?

On 2020-05-27 16:57, Charles Chamberlain wrote:

> Hello,
>
> I'm trying to run mercurial with Python3 and re2. Installing re2 with
> pip3
> succeeds,
> but then any attempt to import it fails with the following:
>
>     File "mercurial/util.py", line 1925, in <module>
>       import re2
>     File "re2.pyx", line 1, in init re2 (src/re2.cpp:13681)
>     NameError: basestring
>
> There is a stack overflow question
> <https://stackoverflow.com/questions/46792200/using-re2-in-python3>
> from 3
> years ago that suggests it's not compatible.
> Has anyone succeeded in running mercurial with python3 and re2?
>
> Thanks very much!
> Charles
>
> _______________________________________________
> Mercurial mailing list
> [hidden email]
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial