[GRASS-dev] v.in.pygbif addon: Manual does not build

Helmut Kudrnovsky hellik at web.de
Tue Sep 13 07:33:46 PDT 2016


SBL wrote
> Hei,
> 
> Does anyone have an idea why the v.in.pygbif addon-manual does not build?
> I managed to install it through g.extension and it works fine.
> The pygbif library is a dependency of v.in.pygbif. Therefore, I tried to
> align dependency handling (import) with the working solution in
> v.class.mlpy as another module with external dependencies. That obviously
> did not help, unfortunately.
> Are error logs from the automatic builds available online somewhere I
> could check?
> 
> I have some uncommitted modifications for the module I like to commit. It
> would be great to fix the built of the manual in one go.
> 
> Thanks for helping in advance.

the error is:

ERROR: Cannot import pygbif (https://github.com/sckott/pygbif) library.
       Please install it (pip install pygbif) or ensure that it is on path
       (use PYTHONPATH variable).

in an addon (1) I've used this way for testing if a python package is
available; the manual is building:

151	    try:
152	                import pyspatialite.dbapi2 as db
153	    except:
154	                grass.fatal( "pyspatialite is needed to run this
script.\n"
155	                    "source: https://pypi.python.org/pypi/pyspatialite
\n"
156	                    "Please activate/install it in your python stack.") 


try/except is done in 	def main():

[1]
https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.natura2000/v.in.natura2000.py#L151

HTH



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/v-in-pygbif-addon-Manual-does-not-build-tp5285571p5285574.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list