[GRASS-user] grass7.9.dev not finding wxPython

Markus Neteler neteler at osgeo.org
Wed Aug 14 13:51:10 PDT 2019


On Wed, Aug 14, 2019 at 10:34 PM Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Wed, 14 Aug 2019, Markus Neteler wrote:
>
> > You try to use Python 2 while we require Python 3 unless you
> > search/replace the shebang using the find script posted some days ago.
>
> Markus,
>
> Do you recall the thread with that script? I'll see if I can find it in the
> mail list archive.

If you want to enforce Python 2, run

find -name '*.py' | xargs sed -i 's,#!/usr/bin/env
python3,#!/usr/bin/env python2,' && \
    sed -i 's,python3,python2,' include/Make/Platform.make.in

See: https://lists.osgeo.org/pipermail/grass-dev/2019-August/093052.html

But it is definitely NOT recommended.
Better update your machine to Python 3.

Markus


More information about the grass-user mailing list