[GRASS-dev] forcing a Python version/install when compiling GRASS

Markus Neteler neteler at osgeo.org
Fri Feb 20 06:26:22 PST 2015


On Fri, Feb 20, 2015 at 2:51 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
>
> On Fri, Feb 20, 2015 at 8:25 AM, Markus Neteler <neteler at osgeo.org> wrote:
>>
>> [neteler at pgis_north ]$ alias python=python3.4
>>
>> [neteler at pgis_north ]$ python --version
>> Python 3.4.1
>
> I thought alias works just for command line but the processes, e.g. scripts,
> does not get them.

Combined attempt:

[neteler at pgis_north ]$ alias python=python3.4
[neteler at pgis_north ]$ export GRASS_PYTHON=python3.4
[neteler at pgis_north ]$ grass71
Cleaning up temporary files...
Starting GRASS GIS...
...

GRASS 7.1.svn (nc_spm_08_grass7):~ > echo $GRASS_PYTHON
python3.4


GRASS 7.1.svn (nc_spm_08_grass7):~ > v.rast.stats
  File "/home/neteler/software/grass71/dist.x86_64-unknown-linux-gnu/gui/wxpython/gui_core/forms.py",
line 2375
    raise gcmd.GException, _("Unable to parse command '%s'") % ' '.join(cmd)
                         ^
SyntaxError: invalid syntax

Did you refer to this problem, Vaclav?

Markus


More information about the grass-dev mailing list