Re: [GRASS-dev] Re: GRASS-dev] grass fails to detect wxpython version

2010-10-15 Thread Massimo Di Stefano
I was to mutch optimist :-) i bypassed the version problem, but obviously from 2.8.x and 2.9.x there are some api changes ... so the gui doesn't work i'lll try to work a bit on it to see what can i do. this the first error i'm having running wxpython gui under wx-2.9 : GRASS 6.5.svn (UNKNOWN):~

Re: [GRASS-dev] Re: GRASS-dev] grass fails to detect wxpython version

2010-10-15 Thread Michael Barton
OK. Keep us posted. I'm concerned that wxPython 2.9 is not backward compatible. Michael C. Michael Barton Director, Center for Social Dynamics Complexity Professor of Anthropology, School of Human Evolution Social Change Arizona State University voice: 480-965-6262

Re: [GRASS-dev] wxGUI in GRASS 6.4.1

2010-10-15 Thread Markus Metz
Michael Barton wrote: From: Michael Barton michael.bar...@asu.edumailto:michael.bar...@asu.edu Date: October 14, 2010 6:57:37 PM MST To: Martin Landa landa.mar...@gmail.commailto:landa.mar...@gmail.com Subject: Re: [GRASS-dev] wxGUI in GRASS 6.4.1 I do the same thing, but nothing happens.

Re: [GRASS-dev] Re: GRASS-dev] grass fails to detect wxpython version

2010-10-15 Thread Massimo Di Stefano
Hi, Michael, yes it is not backward compatible, i have commented out some lines in 4 different files in the gui source, globarcar.py (lines 41,42,61,62) wxgui.py (line 112) ghelp.py (line 103) mapdisp.py (line 132) now the gui start but is not usable due to the commented code. Generally i can

[GRASS-dev] Re: Error when running a scrip in Windows-WinGRASS

2010-10-15 Thread Helena Herrera
About this issue I was able to have my scripts working (at least in OSGEO4W installation). So what have i done: 1- put my script in Scripts folder 2- I took the .py extension from the file 3- in bin directory I created a file with the same name of my script and added the extension .bat 4- I place

[GRASS-dev] How to get stop a script with an error in a function

2010-10-15 Thread António Rocha
database 5533 (20101015) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS GIS] #1167: wx location wizard: proj4 terms fall off edge of window

2010-10-15 Thread GRASS GIS
#1167: wx location wizard: proj4 terms fall off edge of window -+-- Reporter: hamish | Owner: martinl Type: defect | Status: new Priority: minor

Re: [GRASS-dev] html error (access file not found) on compilation of i.landsat.toar in v7

2010-10-15 Thread Yann Chemin
Thank you Glynn that seems to be resolved, A last error comes up now: r...@seeepc:/home/yann/grass_yann/imagery/i.landsat.toar# make VERSION_NUMBER=7.0.svn /home/yann/grass_yann/dist.i686-pc-linux-gnu/tools/g.html2man.py

Re: [GRASS-dev] How to get stop a script with an error in a function

2010-10-15 Thread Glynn Clements
António Rocha wrote: I have built a Py Script that is similar to r.in.aster, I mean, to reproject/project a file and then import into grass. The problem is when I select a non raster file. A get an error in GDALWARP but the script continue. And then it calls r.in.gdal to import and then

Re: [GRASS-dev] html error (access file not found) on compilation of i.landsat.toar in v7

2010-10-15 Thread Glynn Clements
Yann Chemin wrote: Thank you Glynn that seems to be resolved, A last error comes up now: r...@seeepc:/home/yann/grass_yann/imagery/i.landsat.toar# make VERSION_NUMBER=7.0.svn /home/yann/grass_yann/dist.i686-pc-linux-gnu/tools/g.html2man.py

[GRASS-dev] Re: [GRASS GIS] #1192: wxGUI: propagate option key_desc

2010-10-15 Thread GRASS GIS
#1192: wxGUI: propagate option key_desc --+- Reporter: hamish| Owner: martinl Type: defect| Status: new Priority: major | Milestone:

[GRASS-dev] Re: [GRASS GIS] #1192: wxGUI: propagate option key_desc

2010-10-15 Thread GRASS GIS
#1192: wxGUI: propagate option key_desc --+- Reporter: hamish| Owner: martinl Type: defect| Status: assigned Priority: major | Milestone:

Re: [GRASS-dev] How to get stop a script with an error in a function

2010-10-15 Thread António Rocha
NOD32 Antivirus, version of virus signature database 5534 (20101015) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to get stop a script with an error in a function

2010-10-15 Thread Martin Landa
Hi, 2010/10/15 António Rocha antonio.ro...@deimos.com.pt: check_process=grass.run_command(r.in.gdal, flags= 'k', overwrite = 'o', input = src_file, output = target_file)   if check_process=0:  gdal_fatal (_(ERROR)) no, '0' means success, non-zero code is usually used for failure. Also use

Re: [GRASS-dev] wxGUI in GRASS 6.4.1

2010-10-15 Thread Michael Barton
It is not present in 6.5 and I get the following message in the command console: Vector digitizer not available Reason: dlopen(/Applications/Grass/GRASS-6.5.app/Contents/MacOS/etc/wxpython/vdigit/_grass6_wxvdigit.so, 2): Library not loaded:

Re: [GRASS-dev] Re: GRASS-dev] grass fails to detect wxpython version

2010-10-15 Thread Michael Barton
Massimo, At the moment, I'm too tied up to be able to do much. But I did just install a new wxPython and noticed that you can get a binary for 2.8.10.11 that supports Python 2.7 now. Michael C. Michael Barton Director, Center for Social Dynamics Complexity Professor of

Re: [GRASS-dev] How to get stop a script with an error in a function

2010-10-15 Thread Martin Landa
[keep discussion in ML] 2010/10/15 António Rocha antonio.ro...@deimos.com.pt: Thanks... You are right Zero is for success. By the way, if a GRASS gunction, that I'm using through grass.run_command is, prints something in Command Output, how can I get it in order to use it? try

[GRASS-dev] Re: [GRASS GIS] #1194: v.build opt=dump does not report the Z coord

2010-10-15 Thread GRASS GIS
#1194: v.build opt=dump does not report the Z coord ---+ Reporter: msieczka | Owner: martinl Type: defect| Status: closed Priority: normal| Milestone: 6.4.1

Re: [GRASS-dev] How to get stop a script with an error in a function

2010-10-15 Thread Glynn Clements
António Rocha wrote: Check the exit code from the command. Commands should use a non-zero exit code if there was an error. It would help to know exactly how the command is being run. Hi, You are absolutely right :) Among others, I'm using: grass.run_command(r.in.gdal, flags=

Re: [GRASS-dev] Re: GRASS-dev] grass fails to detect wxpython version

2010-10-15 Thread Massimo Di Stefano
Yes i'm aware about it, the problem is that i'm using a custom built python.framework (i386, x86_64) the WxPyhon-2.8.11.dmg don't works with 64-bit (where i have all the other python modules installed) btw, i started to debug the wxgrass-problems with the WxPython-2.9 pre-release i found some

[GRASS-dev] Re: [GRASS-user] Error when importing data in Windows with Python Script

2010-10-15 Thread Glynn Clements
[CC to grass-dev] Luis Lisboa wrote: I'm running a Python script in WinGRASS6.4 but when I insert as the input C:\Data\L5216065_06520070405_B70.TIF inside Python Script, the input is: C:DataL5216065_06520070405_B10.TIF I realized that, if I, by-hand, i change the \ by / it

[GRASS-dev] running grass from python

2010-10-15 Thread Massimo Di Stefano
Hello All, i'm intersted to know if it is possible to use the grass functionalities directly from python without the needs to run a grass session from bash. i think the first thisk i have to do is to set my PYTHONPATH to where i have grass-python libs then i have to set the grass environment

Re: [GRASS-dev] Re: GRASS-dev] grass fails to detect wxpython version

2010-10-15 Thread Michael Barton
OK. Thanks for the update. Michael __ C. Michael Barton Director, Center for Social Dynamics Complexity Professor of Anthropology, School of Human Evolution Social Change Arizona State University Tempe, AZ 85287-2402 USA voice: 480-965-6262 (SHESC), 480-727-9746

Re: [GRASS-dev] running grass from python

2010-10-15 Thread Glynn Clements
Massimo Di Stefano wrote: i'm intersted to know if it is possible to use the grass functionalities directly from python without the needs to run a grass session from bash. i think the first thisk i have to do is to set my PYTHONPATH to where i have grass-python libs then i have to set

Re: [GRASS-dev] html error (access file not found) on compilation of i.landsat.toar in v7

2010-10-15 Thread Hamish
Glynn: g.html2man.py requires that the HTML file is structurally valid. The i.landsat.toar.html file isn't valid; it contains bogus /p tags. should be fixed in r43933 Hamish ___ grass-dev mailing list grass-dev@lists.osgeo.org