[GRASS-dev] [GRASS-user] Python error with GRASS 7 on Windows 8

On Tue, Jan 7, 2014 at 7:43 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

>(which I really actually need, i.landsat.dehaze)

have a look at

http://grasswiki.osgeo.org/wiki/AddOns/GRASS_6

and

http://grasswiki.osgeo.org/wiki/AddOns/GRASS_7/imagery
https://svn.osgeo.org/grass/grass-addons/grass7/imagery/

i.landsat.dehaze seems to be available only for grass6 at the moment (?),
maybe the author (cc'ed) has more insight about this.

> In this case, I am just forcing the error by trying to install an
> extension

beside addon availability, "Settings -> Addons extensions -> Install
extensions from addons" isn't working in winGRASS7.

only the the command line version of g.extension is working, e.g.:

g.extension extension=r.geomorphon operation=add
Downloading precompiled GRASS Addons <r.geomorphon>...
Updating metadata file...
Installation of <r.geomorphon> successfully finished
(Tue Jan 07 13:41:31 2014) Command finished (2 sec)

please open a ticket in http://trac.osgeo.org/grass/

this can be again the Python incompatibility issue (the MAXREPEAT problem).
For this issue there is already ticket
http://trac.osgeo.org/grass/ticket/2150

It usually appears when you have also ArcGIS installed.

Anna

-----
best regards
Helmut
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Python-error-with-GRASS-7-on-Windows-8-tp5096508p5096756.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

2014/1/7 Anna Petrášová <kratochanna@gmail.com>:

only the the command line version of g.extension is working, e.g.:

g.extension extension=r.geomorphon operation=add
Downloading precompiled GRASS Addons <r.geomorphon>...
Updating metadata file...
Installation of <r.geomorphon> successfully finished
(Tue Jan 07 13:41:31 2014) Command finished (2 sec)

please open a ticket in http://trac.osgeo.org/grass/

this can be again the Python incompatibility issue (the MAXREPEAT problem).
For this issue there is already ticket
http://trac.osgeo.org/grass/ticket/2150

right, this is a known issue, unfortunately calling python script (in
this case g.extension) from Python code (in this case wxGUI) simply
fails on Windows. It's blocker for GRASS 7. This bug has been fixed in
r57910 [1] (workaround, but at least not broken software) but reverted
by Glynn in r57911 [2]. Unfortunately nobody came with any solution.

Martin

[1] http://trac.osgeo.org/grass/changeset/57910
[2] http://trac.osgeo.org/grass/changeset/57911/grass/trunk/lib/python

I’m sorry, Nuno, that you encountered all of these bugs, too much for one user.

Devs, so, the error in the file is GRASS GIS 6.4.3 (stable release) running addons module and says:

Unable to fetch interface description for command
'i.landsat.dehaze.bat'.
Details: "C:/Program Files (x86)/GRASS GIS
6.4.3/msys/bin/sh.exe":
C:\Users\Invader\AppData\Roaming\GRASS6\addons;C:\Program
Files (x86)\GRASS GIS 6.4.3\etc\gui\scripts;C:\Invader_B\GRA
SS_Workfolder_01\01_LT4/scripts/i.landsat.dehaze: No such
file or directory

Which seems that there are some problems with path separator since it is trying to run C:.…;C:.…i.landsat.dehaze file which does not exists from obvious reasons.

Those involved in #2138, is this what #2138 is trying to solve?

http://trac.osgeo.org/grass/ticket/2138

···

On Tue, Jan 7, 2014 at 8:34 AM, Nuno Sá <nunocesardesa@gmail.com> wrote:

Oh sorry, I should have added in the previous response to avoid too many emails:

I have both 6.4.3 and 7 installed at the same time, the first issues no errors in any moment with the exception of not being able to call i.landsat.dehaze on the gui command console (yes i have used the plugging installer to install it). The error log is on the .txt file appended

Ciao!
Thank you so much for the help so far, and I’m sorry if I’m causing any trouble.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On 7 January 2014 13:29, Nuno Sá <nunocesardesa@gmail.com> wrote:

Hey

I don’t :cry: so the differential diagnosis continues :stuck_out_tongue:

Nuno César de Sá
+351 91 961 90 37

On 7 January 2014 13:15, Anna Petrášová <kratochanna@gmail.com> wrote:

Nuno César de Sá
+351 91 961 90 37

On Tue, Jan 7, 2014 at 7:43 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

(which I really actually need, i.landsat.dehaze)

have a look at

http://grasswiki.osgeo.org/wiki/AddOns/GRASS_6

and

http://grasswiki.osgeo.org/wiki/AddOns/GRASS_7/imagery
https://svn.osgeo.org/grass/grass-addons/grass7/imagery/

i.landsat.dehaze seems to be available only for grass6 at the moment (?),
maybe the author (cc’ed) has more insight about this.

In this case, I am just forcing the error by trying to install an
extension

beside addon availability, “Settings → Addons extensions → Install
extensions from addons” isn’t working in winGRASS7.

only the the command line version of g.extension is working, e.g.:

g.extension extension=r.geomorphon operation=add
Downloading precompiled GRASS Addons <r.geomorphon>…
Updating metadata file…
Installation of <r.geomorphon> successfully finished
(Tue Jan 07 13:41:31 2014) Command finished (2 sec)

please open a ticket in http://trac.osgeo.org/grass/

this can be again the Python incompatibility issue (the MAXREPEAT problem). For this issue there is already ticket
http://trac.osgeo.org/grass/ticket/2150

It usually appears when you have also ArcGIS installed.

Anna


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/Python-error-with-GRASS-7-on-Windows-8-tp5096508p5096756.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

3. Is it possible to add these tools through the QGIS? maybe through there

my problem will be solved

Unfortunately, it is not. QGIS cannot install GRASS addons and QGIS even
cannot run them when installed. We GRASS developers, should consider
working with QGIS developers to get this working. It is a recurrent topic:

http://lists.osgeo.org/pipermail/qgis-developer/2012-September/022139.html
http://lists.osgeo.org/pipermail/grass-dev/2012-September/059934.html
http://gis.stackexchange.com/questions/73119/how-to-install-grass-addons-to-use-in-qgis
http://gis.stackexchange.com/questions/76514/install-grass-addon-in-with-qgis
http://gis.stackexchange.com/questions/55051/add-grass-addon-to-sextant-within-qgis

And the number of GRASS addons is growing as well as the number of QGIS
users.

What do you think?

Vaclav

On 7 January 2014 23:13, Vaclav Petras <wenzeslaus@gmail.com> wrote:

3. Is it possible to add these tools through the QGIS? maybe through there
my problem will be solved

Unfortunately, it is not. QGIS cannot install GRASS addons and QGIS even
cannot run them when installed. We GRASS developers, should consider working
with QGIS developers to get this working. It is a recurrent topic:

http://lists.osgeo.org/pipermail/qgis-developer/2012-September/022139.html
http://lists.osgeo.org/pipermail/grass-dev/2012-September/059934.html
http://gis.stackexchange.com/questions/73119/how-to-install-grass-addons-to-use-in-qgis
http://gis.stackexchange.com/questions/76514/install-grass-addon-in-with-qgis
http://gis.stackexchange.com/questions/55051/add-grass-addon-to-sextant-within-qgis

And the number of GRASS addons is growing as well as the number of QGIS
users.

And also the QGIS developer, so they could spend a little bit of time
to solve THEIR problem :wink:

What do you think?

I fully agree that QGIS could be a beautiful way how to promote GRASS
but I also think that the problem right now is of QGIS and not GRASS.

Vaclav

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org