[GRASS-user] Using grass libraries in python outside of GRASS
Markus Neteler
neteler at osgeo.org
Wed Jul 29 01:01:21 PDT 2020
On Tue, Jul 28, 2020 at 10:27 PM Markus Neteler <neteler at osgeo.org> wrote:
> On Tue, Jul 28, 2020 at 9:17 PM DAmico, Ellen <DAmico.Ellen at epa.gov> wrote:
...
> > The model I need to use (which I did not write) requires python 2.7.
> > I had tried pip install previously but then it still fails with ImportError: No module named grass.script.
> > Do you know what could be causing that?
Interestingly, our docker containers just started to suffer from a
similar (same?) problem:
File "/scripts/test_grass_session.py", line 3, in <module>
import grass.script as grass
ModuleNotFoundError: No module named 'grass'
Weird, we need to investigate.
Markus
> Perhaps simply a PYTHONPATH issue?
> At the bottom of this page there are some examples:
>
> https://github.com/zarch/grass-session/blob/master/README.rst
>
> Markus
--
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
https://grass.osgeo.org
https://courses.neteler.org/blog
More information about the grass-user
mailing list