[GRASS-user] g.extension error svn!

Hi all,
I want to install the add on called r.seg but, using g.extension, I have
encountered the following error:

ERROR: svn client required. Please install Subversion first

So I have downloaded the TortoiseSVN and in msys I can see that it works:

$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.7.2.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
  or 'svn --version --quiet' to see just the version number.

Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
   add
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   patch
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   relocate
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)
   upgrade

Subversion is a tool for version control.
For additional information, see http://subversion.apache.org/

Now that I have the Tortoise SVN installed, I get the same error....Do you
know how can I solve it?Where Am I wrong?

Furthermore, once that I've installed in GRASS (I hope) can I use in
QuantumGIS using the GRASS plugin?

Thanks!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/g-extension-error-svn-tp7086731p7086731.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

2011/12/12 Solimyr <giannicristian@msn.com>:

Subversion is a tool for version control.
For additional information, see http://subversion.apache.org/

Now that I have the Tortoise SVN installed, I get the same error....Do you
know how can I solve it?Where Am I wrong?

svn.exe must be in PATH. Anyway, `g.extension` is currently not
working on Windows. Basically `g.extension` should not try to compile
addons on Windows, it should just download precompiled binaries [1]
and put them to the right place ($APPDATA\GRASS6\addons). This
approach doesn't require svn to be installed. Which GRASS version do
you use?

Martin

[1] http://trac.osgeo.org/grass/wiki/AddOnsManagement#CompileAddOnsonMSWindows

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Solimyr wrote:

Furthermore, once that I've installed in GRASS (I hope) can
I use in QuantumGIS using the GRASS plugin?

see:
http://hub.qgis.org/projects/quantum-gis/wiki/Adding_New_Tools_to_the_GRASS_Toolbox

in the v.surf.icw addon dir there is an old example, it might need
updating, I'm not sure.

Hamish

I'm using windows 7. The GRASS version, that I'm using, is the one installed
with QGIS 1.7.0 wich is the GRASS 6.4.1. The GRASS folder is in:

C:\Program Files (x86)\Quantum GIS Wroclaw\apps\grass\grass-6.4.1

so it's not a stand'alone folder but it's inside the QGIS folder. Inside
there are the following folders:

$ ls
AUTHORS REQUIREMENTS.html contributors_extra.csv fonts scripts
CHANGES bin docs include tools
COPYING bwidget driver lib translators.csv
GPL.TXT contributors.csv etc locale

I don't know if this can be useful!!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/g-extension-error-svn-tp7086731p7089189.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Thank you very much. It was interesting but that suppose that the module it
is working (installed) in GRASS. When it is installed I can link the module
using the link that you have inserted in your post!

My problem is that I'm not able to install a new module in GRASS...I think
it's a very easy steps but I'm not able to do that....I feel so
embarassing...I have made some research but didn't found anything can help!

At the moment I have understood, thanks to the previous post, that I can't
use g.extension in Windows!

hamish-2 wrote

Solimyr wrote:

Furthermore, once that I've installed in GRASS (I hope) can
I use in QuantumGIS using the GRASS plugin?

see:
http://hub.qgis.org/projects/quantum-gis/wiki/Adding_New_Tools_to_the_GRASS_Toolbox

in the v.surf.icw addon dir there is an old example, it might need
updating, I'm not sure.

Hamish

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

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/g-extension-error-svn-tp7086731p7089258.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

2011/12/13 Solimyr <giannicristian@msn.com>:

At the moment I have understood, thanks to the previous post, that I can't
use g.extension in Windows!

things are in the progress, you can test grass65 from [1] and try to
install extensions using wxGUI.

Martin

[1] http://wingrass.fsv.cvut.cz/grass65/

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

I don't have grass 6.5. Can I install addons on Grass 6.4.1?I have also a
GRASS(wxpython),(TclTk),(Text) on my desktop. I'm saying this because I need
to use this in QuantumGIS via GRASS plugin. Is this possible?
I'm thinking to install in GRASS 6.4.1 and after that create a call module
in QGIS.
Thanks,

Solimyr

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/g-extension-error-svn-tp7086731p7093568.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

2011/12/14 Solimyr <giannicristian@msn.com>:

I don't have grass 6.5. Can I install addons on Grass 6.4.1?I have also a
GRASS(wxpython),(TclTk),(Text) on my desktop. I'm saying this because I need
to use this in QuantumGIS via GRASS plugin. Is this possible?
I'm thinking to install in GRASS 6.4.1 and after that create a call module
in QGIS.

no, g.extension winGRASS-related improvements are very recent,
g.extension is going to work in GRASS 6.4.2+. Currently there is only
one way, try daily builds from wingrass.fsv.cvut.cz.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Thanks for your answers. So I will not use g.extension but can you explain to
me how to install addons? I have downloaded manually but I'm not able to
install...I have looked at the README but I can't install manually...Let me
explain. This is the readme:

/r.seg GRASS GIS module for image segmentation and edge detection
  Alfonso Vitti <alfonso.vitti [at] ing.unitn.it>
  see www.ing.unitn.it/~vittia/sw

copy the "r.seg" directory in the "raster" directory of the GRASS source
code directory

from within the "r.seg" directory, as normal user run:
make

from the GRASS main source code directory, as root run:
make install
or, as normal user:
sudo make install/

I have opened the GRASS directory (.../Program Files/Quantum GIS
Wroclaw/apps/grass/grass6.4.1/) and I have the following directory:

.../Program Files (x86)/Quantum GIS Wroclaw/apps/grass/grass-6.4.1$ ls
AUTHORS contributors.csv driver include scripts
bin contributors_extra.csv etc lib tools
bwidget COPYING fonts locale translators.csv
CHANGES docs GPL.TXT REQUIREMENTS.html

there is no Raster Directory...Do you have any suggestion about that?thx
again

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/g-extension-error-svn-tp7086731p7093725.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Wed, Dec 14, 2011 at 3:40 PM, Solimyr <giannicristian@msn.com> wrote:

Thanks for your answers. So I will not use g.extension but can you explain to
me how to install addons? I have downloaded manually but I'm not able to
install...

...

copy the "r.seg" directory in the "raster" directory of the GRASS source
code directory

Do you have downloaded the GRASS source code?

...

I have opened the GRASS directory (.../Program Files/Quantum GIS
Wroclaw/apps/grass/grass6.4.1/) and I have the following directory:

.../Program Files (x86)/Quantum GIS Wroclaw/apps/grass/grass-6.4.1$ ls
AUTHORS contributors.csv driver include scripts
bin contributors_extra.csv etc lib tools
bwidget COPYING fonts locale translators.csv
CHANGES docs GPL.TXT REQUIREMENTS.html

This is the Windows GRASS *binary* code, not the source code.
That's a separate package.

Note that compilation on Windows requires efforts, many more extra
packages and patience.

We definitely recommend to you to get precompiled binaries for Windows.
You could manually download r.seg here:
http://wingrass.fsv.cvut.cz/grass64/addons/
-> r.seg.zip

and place the content into the appropriate folders within QGIS/GRASS.
Not sure of they are compliant but worth a try.

Once QGIS is packaged with a more recent GRASS it will become easy.

Markus

Hi,

2011/12/14 Markus Neteler <neteler@osgeo.org>:

We definitely recommend to you to get precompiled binaries for Windows.
You could manually download r.seg here:
http://wingrass.fsv.cvut.cz/grass64/addons/
-> r.seg.zip

and place the content into the appropriate folders within QGIS/GRASS.
Not sure of they are compliant but worth a try.

probably not, the addons must be compiled against the same revision of
libgis as GRASS itself. See some notes how to compile GRASS on Windows
at the wiki [1].

Martin

[1] http://trac.osgeo.org/grass/wiki/CompileOnWindows

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

I think that I'm close to the solution...I have copied the r.seg.exe in the
grass/bin folder. Now, in GRASS, if I write r.seg in the command line I can
see the command, if I execute I receive the following text:

/Traceback (most recent call last):
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\prompt.py", line 1067, in OnKeyPressed

self.parent.RunCmd(cmd)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\goutput.py", line 516, in RunCmd

task = menuform.GUI().ParseInterface(command)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\menuform.py", line 2020, in ParseInterface

tree = etree.fromstring(getInterfaceDescription(cmd[0]))
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 964, in XML

return parser.close()
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 1254, in close

self._parser.Parse("", 1) # end of data
xml.parsers.expat
.
ExpatError
:
no element found: line 1, column 0
Traceback (most recent call last):
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\prompt.py", line 1067, in OnKeyPressed

self.parent.RunCmd(cmd)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\goutput.py", line 516, in RunCmd

task = menuform.GUI().ParseInterface(command)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\menuform.py", line 2020, in ParseInterface

tree = etree.fromstring(getInterfaceDescription(cmd[0]))
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 964, in XML

return parser.close()
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 1254, in close

self._parser.Parse("", 1) # end of data
xml.parsers.expat
.
ExpatError
:
no element found: line 1, column 0
Traceback (most recent call last):
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\prompt.py", line 1067, in OnKeyPressed

self.parent.RunCmd(cmd)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\goutput.py", line 516, in RunCmd

task = menuform.GUI().ParseInterface(command)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\menuform.py", line 2020, in ParseInterface

tree = etree.fromstring(getInterfaceDescription(cmd[0]))
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 964, in XML

return parser.close()
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 1254, in close

self._parser.Parse("", 1) # end of data
xml.parsers.expat
.
ExpatError
:
no element found: line 1, column 0
Traceback (most recent call last):
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\prompt.py", line 1067, in OnKeyPressed

self.parent.RunCmd(cmd)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\goutput.py", line 516, in RunCmd

task = menuform.GUI().ParseInterface(command)
  File "C:\PROGRA~2\QUANTU~2\apps\grass\grass-6.4.1\etc\wxpy
thon\gui_modules\menuform.py", line 2020, in ParseInterface

tree = etree.fromstring(getInterfaceDescription(cmd[0]))
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 964, in XML

return parser.close()
  File "C:\PROGRA~2\QUANTU~2\apps\Python25\lib\xml\etree\Ele
mentTree.py", line 1254, in close

self._parser.Parse("", 1) # end of data
xml.parsers.expat
.
ExpatError
:
no element found: line 1, column 0/

I think that this is due to the fact that GRASS doesn't see the dialog. Now
I have also a file that I didn't copied anywhere because I can't understand
where to put. This is named:

r.seg.md5sum

The extension is unknown to me...where I need to put this file?I have
searched in the folder but didn't see something similar....

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/g-extension-error-svn-tp7086731p7093973.html
Sent from the Grass - Users mailing list archive at Nabble.com.