[GRASS-dev] Unable to install manual for add-on r.estimap.recreation under Windows

Stefan Blumentrath Stefan.Blumentrath at nina.no
Mon Jan 14 02:03:45 PST 2019


Hei Nikos,

Unfortunately, also under Windows people cannot necessarily choose where to install an addon, so that it ends up in HOME by default should be fine, and it should not be required to install addons in the man program directory system wide...

On Win10 with GRASS 7.4.0 from OSGeo4W I can install and run (open the GUI) of r.estimap.recreation without issue, though, when I run the module from CMD it opens both GUI and the python script in a text editor...

Cheers
Stefan

-----Original Message-----
From: grass-dev <grass-dev-bounces at lists.osgeo.org> On Behalf Of Nikos Alexandris
Sent: mandag 14. januar 2019 10:23
To: Markus Neteler <neteler at osgeo.org>
Cc: GRASS developers list <grass-dev at lists.osgeo.org>; Helmut Kudrnovsky <hellik at web.de>
Subject: Re: [GRASS-dev] Unable to install manual for add-on r.estimap.recreation under Windows

* Nikos Alexandris <nik at nikosalexandris.net> [2019-01-14 10:14:48 +0100]:

>* Nikos Alexandris <nik at nikosalexandris.net> [2019-01-13 23:31:26 +0100]:
>
>>* Markus Neteler <neteler at osgeo.org> [2019-01-13 19:43:10 +0100]:
>>
>>>On Sun, Jan 13, 2019 at 7:41 PM Nikos Alexandris 
>>><nik at nikosalexandris.net> wrote:
>>>>* Nikos Alexandris <nik at nikosalexandris.net> [2019-01-13 19:26:04 +0100]:
>>>>>* Helmut Kudrnovsky <hellik at web.de> [2019-01-13 09:51:25 -0700]:
>>>...
>>>>Is it the shebang line? I.e., it should be
>>>>
>>>>`#!/usr/bin/env python`
>>>>
>>>>instead of
>>>>
>>>>`#!/usr/bin/python` ?
>>>
>>>Bingo.
>>>
>>>ag 'usr/bin/python'
>>>r.estimap.recreation/test.r.estimap.recreation.py
>>>1:#!/usr/bin/python\<nl>\
>>>
>>>r.estimap.recreation/r.estimap.recreation.py
>>>1:#!/usr/bin/python
>>>
>>>All the other Python scripts use
>>>
>>>#!/usr/bin/env python
>>>
>>>So that needs to be fixed in your two scripts.
>>
>>I've updated both. Hope to see it working tomorrow.
>
>Great, the log is green!  It installs and does not complain.
>
>However, there is still a problem.  I am under a Windows machine and 
>have installed GRASS 7.4.4, revision 70829 along with QGIS 2.18.27 
>(Nightly) via the OSGeo4W installer.
>
>I cannot launch the add-on.  The path it is installed to is different 
>than the path GRASS is looking for it.  The error message is an "Errno 
>2". No further hints.
>
>While installing the add-on, or any other add-on for the matter, 
>through QGIS, via the GRASS plugin and the there-in GRASS Shell, I get two warnings:
>
>- one is that GRASS_ADDON_BASE is not defined, thus the add-ons are  
>installed under ~/.grass7/addons (I did confirm this)
>
>- another, after the successful installation, is "WARNING: This add-on  
>module will not function until you set the GRASS_ADDON_BASE  
>environment variable (see "g.manual variables")
>
>This is, in my view, difficult and eventually a blocker for users 
>without much of experience on all this.
>
>Is this only my own "problematic" setup?  Or is it like that for 
>everyone that will try to use OSGeo4W to install QGIS (Nightly) and 
>GRASS and then fetch those add-ons?

I see it is explained in the manual of `g.extension`, i.e.:

"The place where the extensions are installed can be customized by the option prefix. Ensuring that these extensions will be accessible in GRASS GIS is in this case in the responsibility of the user."

Should we add in this manual an example or two on how to set GRASS_ADDON_BASE and a "typical" use case under windows?

Nikos
_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list