[GRASS-dev] forcing a Python version/install when compiling GRASS
Vaclav Petras
wenzeslaus at gmail.com
Fri Feb 20 08:13:51 PST 2015
On Fri, Feb 20, 2015 at 9:26 AM, Markus Neteler <neteler at osgeo.org> wrote:
> 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.
>
> I refer to this:
$ echo "echo Hello." > test.sh
$ chmod u+x test.sh
$ alias echo='echo "MESSAGE: "'
$ echo Hello
MESSAGE: Hello
$ ./test.sh
Hello.
> 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?
>
> No, but I guess that especially GUI is not Python 3 ready as well as
wxPython.
Vaclav
> Markus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150220/ccade288/attachment-0001.html>
More information about the grass-dev
mailing list