[GRASS-user] Error importing Mapset module

Joseph Kariuki joehene at gmail.com
Tue May 2 02:20:05 PDT 2017


This is the exact error I am getting from running the script

Traceback (most recent call last):
  File "/home/hempire/PycharmProjects/GRASSproject/landsatProcessing.py",
line 157, in <module>
    from grass.pygrass.gis import Mapset
  File
"/usr/local/grass-7.2.1svn/etc/python/grass/pygrass/gis/__init__.py", line
13, in <module>
    import grass.lib.gis as libgis
  File "/usr/local/grass-7.2.1svn/etc/python/grass/lib/gis.py", line 23, in
<module>
    _libs["grass_gis.7.2.1svn"] = load_library("grass_gis.7.2.1svn")
  File "/usr/local/grass-7.2.1svn/etc/python/grass/lib/ctypes_loader.py",
line 62, in load_library
    return self.load(path)
  File "/usr/local/grass-7.2.1svn/etc/python/grass/lib/ctypes_loader.py",
line 78, in load
    raise ImportError(e)
ImportError: libgrass_datetime.7.2.1svn.so: cannot open shared object file:
No such file or directory




Kind Regards,

*Joseph Kariuki*

*Geospatial Engineer** | **GIS / Web Developer*

On Mon, May 1, 2017 at 12:30 PM, Markus Neteler <neteler at osgeo.org> wrote:

> On Fri, Apr 28, 2017 at 10:30 AM, Joseph Kariuki <joehene at gmail.com>
> wrote:
> > I have shared a gist on pygrass landsat processing. Error importing
> Mapset
> > module which is under Pygrass>gis library. How can I import the module
> so as
> > to run i.group without error?
> >
> > The gist on github landsatprocessing_gist
> > https://gist.github.com/joehene/9225cff545776abdd1e4a934a3f6c11e
>
> You need to add  to use separator is "comma" to the g.list part in
> order to provide i.group with a comma separated list of maps.
>
> Example:
> i.group group=vis_bands subgroup=vis_bands
> input=lsat7_2000_10,lsat7_2000_20,lsat7_2000_30
>
> Markus
>
> --
> Markus Neteler, PhD
> http://www.mundialis.de - free data with free software
> http://grass.osgeo.org
> http://courses.neteler.org/blog
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170502/f0bc9cb7/attachment.html>


More information about the grass-user mailing list