[GRASS-user] Building grass version grass-7.8.5

Moritz Lennert mlennert at club.worldonline.be
Sat Mar 27 03:24:18 PDT 2021


Actually, the trailing comma after **kwargs is a feature introduced in recent Python 3 versions. It was recently introduced into our code through Black [1].

So, make sure you have Python 3.6+ installed on your system and that this is the Python version called during compilation.

Moritz

[1] https://github.com/OSGeo/grass/pull/1382

Am 27. März 2021 11:07:02 MEZ schrieb Moritz Lennert <mlennert at club.worldonline.be>:
>
>
>Am 26. März 2021 23:13:18 MEZ schrieb Stephen Kirby <thinjogger at gmail.com>:
>>Thanks Veronica for that good information.  I've made some progress by
>>ensuring I had the libs it needs ready (GDAL, etc.).  Now it is giving me a
>>Python error :
>>
>> File
>>"/home/me/grass/dist.x86_64-pc-linux-gnu/etc/python/grass/script/core.py",
>>line 305,
>>**options,
>>SyntaxError: invalid syntax
>>
>>I am not a Python user so this is throwing me.  I assume I need to install
>>a Python (Python3?) module, via "pip install ..." I suppose.  Can someone
>>tell me which module can fix this?
>>
>>For reference, the whole Python block of code containing the offending
>>line, from core.py is:
>>def make_command(
>> prog,
>> flags="",
>> overwrite=False,
>> quiet=False,
>> verbose=False,
>> superquiet=False,
>> errors=None,
>> **options,
>>);
>
>
>AFAICT there should not be a comma after **options. This would explain the syntax error.
>
>Moritz
>_______________________________________________
>grass-user mailing list
>grass-user at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list