On Thu, Sep 13, 2018 at 10:30 PM Anna Petrášová <[email protected]> wrote:
> On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler <[email protected]> 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
_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to