<div dir="ltr">Hi,<div>i think you have to put the GRASS libraries into your LD_LIBRARY_PATH so that the python wrapper can access them.</div><div><br></div><div>Best regards</div><div>Soeren</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-21 20:37 GMT+02:00 Laurent C. <span dir="ltr"><<a href="mailto:lrntct@gmail.com" target="_blank">lrntct@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I'm trying to adapt a python module in order for it to be run outside of GRASS.<br>
I followed the instructions from the wiki and lib/python/script/setup.py<br>
<br>
gsetup.init() run without error and I can list maps like in the example.<br>
<br>
However, when I try to import the temporal module, I receive this error:<br>
<br>
import grass.temporal as tgis<br>
  File "/usr/lib/grass70/etc/python/<wbr>grass/temporal/__init__.py", line<br>
1, in <module><br>
    from core import *<br>
  File "/usr/lib/grass70/etc/python/<wbr>grass/temporal/core.py", line 38,<br>
in <module><br>
    from c_libraries_interface import *<br>
  File "/usr/lib/grass70/etc/python/<wbr>grass/temporal/c_libraries_<wbr>interface.py",<br>
line 19, in <module><br>
    import grass.lib.gis as libgis<br>
  File "/usr/lib/grass70/etc/python/<wbr>grass/lib/gis.py", line 23, in <module><br>
    _libs["grass_gis.7.0.4"] = load_library("grass_gis.7.0.4"<wbr>)<br>
  File "/usr/lib/grass70/etc/python/<wbr>grass/lib/ctypes_loader.py", line<br>
55, in load_library<br>
    return self.load(path)<br>
  File "/usr/lib/grass70/etc/python/<wbr>grass/lib/ctypes_loader.py", line<br>
71, in load<br>
    raise ImportError,e<br>
ImportError: <a href="http://libgrass_datetime.7.0.4.so" rel="noreferrer" target="_blank">libgrass_datetime.7.0.4.so</a>: cannot open shared object<br>
file: No such file or directory<br>
<br>
<br>
Did I forgot to set-up something or this is a bug?<br>
<br>
Cheers,<br>
Laurent<br>
______________________________<wbr>_________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a></blockquote></div><br></div>