It think it is accessible. Here's the error message Traceback (most recent call last): File "/home/hempire/PycharmProjects/GRASSproject/landsatProcessing.py", line 155, 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
Process finished with exit code 1 Kind Regards, *Joseph Kariuki* *Geospatial Engineer** | **GIS / Web Developer* On Thu, Apr 20, 2017 at 11:43 AM, Nikos Alexandris <n...@nikosalexandris.net> wrote: > Please keep the discussion public. > > The "from" line seems correct to me. You should ensure that pygrass is > accessible. > > Please post again in the list. > > Nikos > > > * Joseph Kariuki <joeh...@gmail.com> [2017-04-20 11:16:33 +0300]: > > Hi Nikos, >> >> The problem is that there is no Mapset module in pygrass. How can I >> include >> the Mapset or alternatively, how can I group the rasters that I have here >> >> >> >> >> Kind Regards, >> >> *Joseph Kariuki* >> >> *Geospatial Engineer** | **GIS / Web Developer* >> >> On Thu, Apr 20, 2017 at 10:47 AM, Nikos Alexandris < >> n...@nikosalexandris.net> >> wrote: >> >> * Joseph Kariuki <joeh...@gmail.com> [2017-04-20 09:20:39 +0300]: >>> >>> I am trying to group raster layers using thre following >>> >>>> >>>> from grass.pygrass.gis import Mapset >>>> m = Mapset('hempire') >>>> >>>> >>> Instead (did not try it!): >>> >>> m = Mapset() >>> mapset = Mapset('hempire') >>> >>> Then use the 'mapset' if/whenever required to feed the Mapset's name >>> elsewhere. >>> >>> Nikos >>> >>> grass.run_command("i.group", group="lamu", subgroup="lamusubgrp", >>> >>>> input=m.glist("raster", pattern="LE07_*")) >>>> >>>> However, this error is being raised >>>> >>>> ImportError: No module named mapset >>>> >>>> Am I supposed to import something else besides mapset?? >>>> >>>> Kind Regards, >>>> *Joseph Kariuki* >>>> *Geospatial Engineer** | **GIS / Web Developer* >>>> >>>> >>> > -- > Nikos Alexandris | Remote Sensing & Geomatics > GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3
_______________________________________________ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user