Re: No module named grass.script
Vaclav Petras <[email protected]>
| Newsgroups | gmane.comp.gis.grass.devel |
|---|---|
| Message-ID | <CABo5uVv6P_ovWUeJwhw=WJHZhEiUWcfugrnnpwWRd0Te8v4Z+A@mail.gmail.com> |
Hi Zoltan, On Sun, Feb 9, 2020 at 8:15 AM Zoltan Szecsei <[email protected]> wrote: > > set > PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\grass\grass78\etc\python\grass > The path needs to be just to ...\etc\python, grass is already the package name (you can examine the directory to see if there is __init__.py file. There are different approaches to this. Modification of what you are doing is here, trying to get the path from GRASS GIS executable (here just `grass`): https://github.com/wenzeslaus/try-grass-in-jupyter/blob/master/notebook.ipynb Another one is grass-session/grass_session: https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_7_with_an_external_library:_grass-session HTH, Vaclav _______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev