[GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

Anna Petrášová kratochanna at gmail.com
Thu Sep 13 13:30:42 PDT 2018


On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler <neteler at osgeo.org> wrote:

> On Tue, Sep 4, 2018 at 12:39 AM Anna Petrášová <kratochanna at gmail.com>
> wrote:
> >
> > are you sure you did make distclean?
>
> You are right, solved with that.
>
> Here a few more issues: At wxGUI startup:
>
> ##################################################
> # seen in the terminal:
>
>     from grass.pygrass.vector import VectorTopo
>   File
> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py",
> line 7, in <module>
>     import grass.lib.vector as libvect
>   File
> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py",
> line 5863
>     PORT_LONG_MAX = 2147483647L
>                               ^
> SyntaxError: invalid syntax
>
>

regarding this issue, make sure you compile GRASS with Python 3. I get this
if I compile it with Python2 and then open it with Python 3.

Anna

>
>
> Markus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180913/5b7e6d64/attachment.html>


More information about the grass-dev mailing list