<div dir="ltr"><div class="gmail_extra">Hi Helmut,<br><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 1, 2015 at 5:11 AM,  <span dir="ltr"><<a href="mailto:svn_grass@osgeo.org" target="_blank">svn_grass@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":uo" class="" style="overflow:hidden">+try:<br>
+    import pyspatialite.dbapi2 as db<br>
+except ImportError:<br>
+    grass.warning( "pyspatialite has to be installed." )<br>
</div></blockquote></div><br></div><div class="gmail_extra">better than this is the approach taken in v.flexture where you let parser run and then you import the special dependencies. v.class.mlpy and especially <a href="http://v.class.ml">v.class.ml</a> are more complicated cases where the dependencies are spread more through the code but similar approach is still applicable.<br><br></div><div class="gmail_extra">As you can see from v.flexture, there was an idea to provide a way how to install the dependencies but this might be too difficult and suggestions in the error message or manual might be just the right thing to do.<br><br></div><div class="gmail_extra">Vaclav<br></div><div class="gmail_extra"><br><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.flexure/v.flexure.py">https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.flexure/v.flexure.py</a><br><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.class.mlpy/v.class.mlpy.py">https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.class.mlpy/v.class.mlpy.py</a><br><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.class.ml/v.class.ml.py">https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.class.ml/v.class.ml.py</a><br></div></div>