On Tue, Dec 1, 2015 at 5:11 AM, <svn_grass@osgeo.org> wrote:
+try:
+ import pyspatialite.dbapi2 as db
+except ImportError:
+ grass.warning( "pyspatialite has to be installed." )
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 v.class.ml are more complicated cases where the dependencies are
spread more through the code but similar approach is still applicable.
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.
On Tue, Dec 1, 2015 at 7:24 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:
Hi Helmut,
On Tue, Dec 1, 2015 at 5:11 AM, <svn_grass@osgeo.org> wrote:
+try:
+ import pyspatialite.dbapi2 as db
+except ImportError:
+ grass.warning( "pyspatialite has to be installed." )
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 v.class.ml are more complicated cases where the dependencies are
spread more through the code but similar approach is still applicable.
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.
+try:
+ import pyspatialite.dbapi2 as db
+except ImportError:
+ grass.warning( "pyspatialite has to be installed." )
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 v.class.ml are more complicated cases where the dependencies
are
spread more through the code but similar approach is still applicable.
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.