[GRASS-dev] Working with TGIS without starting GRASS explicitly

Sören Gebbert soerengebbert at googlemail.com
Wed Sep 21 13:40:21 PDT 2016


Hi,
i think you have to put the GRASS libraries into your LD_LIBRARY_PATH so
that the python wrapper can access them.

Best regards
Soeren

2016-09-21 20:37 GMT+02:00 Laurent C. <lrntct at gmail.com>:

> Hello all,
>
> I'm trying to adapt a python module in order for it to be run outside of
> GRASS.
> I followed the instructions from the wiki and lib/python/script/setup.py
>
> gsetup.init() run without error and I can list maps like in the example.
>
> However, when I try to import the temporal module, I receive this error:
>
> import grass.temporal as tgis
>   File "/usr/lib/grass70/etc/python/grass/temporal/__init__.py", line
> 1, in <module>
>     from core import *
>   File "/usr/lib/grass70/etc/python/grass/temporal/core.py", line 38,
> in <module>
>     from c_libraries_interface import *
>   File "/usr/lib/grass70/etc/python/grass/temporal/c_libraries_
> interface.py",
> line 19, in <module>
>     import grass.lib.gis as libgis
>   File "/usr/lib/grass70/etc/python/grass/lib/gis.py", line 23, in
> <module>
>     _libs["grass_gis.7.0.4"] = load_library("grass_gis.7.0.4")
>   File "/usr/lib/grass70/etc/python/grass/lib/ctypes_loader.py", line
> 55, in load_library
>     return self.load(path)
>   File "/usr/lib/grass70/etc/python/grass/lib/ctypes_loader.py", line
> 71, in load
>     raise ImportError,e
> ImportError: libgrass_datetime.7.0.4.so: cannot open shared object
> file: No such file or directory
>
>
> Did I forgot to set-up something or this is a bug?
>
> Cheers,
> Laurent
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160921/1bf3ca73/attachment.html>


More information about the grass-dev mailing list