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

Markus Neteler neteler at osgeo.org
Wed Dec 26 10:48:02 PST 2018


On Thu, Sep 13, 2018 at 10:30 PM Anna Petrášová <kratochanna at gmail.com> wrote:
> On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler <neteler at osgeo.org> wrote:
[...]
>> # 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.

BTW: I have added that here:

https://trac.osgeo.org/grass/wiki/Python3Support#Troubleshooting

Markus


More information about the grass-dev mailing list