Hi list,
I am Levente from Hungary and i want to use GRASS GIS for a project. I’m working on a website that can do a hydrological modeling task via WPS protocol. I started to develop it in a windows environment but the module i want to use (r.sim.water) had some issues on WinGrass. I’ve recently changed my system to ubuntu 12.10. Altough I’m not dealing with linux and GRASS GIS for a long time I understands the basics of them.
I have downloaded and compiled a GRASS70 svn from ubuntugis (this exactly: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/+sourcepub/3015769/+listing-archive-extra). After compiling I can see an error log like this:
GRASS GIS compilation log
Started compilation: 2013. márc. 27., szerda, 01.00.29 CET
Errors in:
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.water
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.sediment
In case of errors please change into the directory with error and run ‘make’.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
Finished compilation: 2013. márc. 27., szerda, 01.13.11 CET
I can start grass70 but when i try to open the r.sim.water dialog i get the following error (something similar comes up if i try to use the command line)
Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_core/p
rompt.py”, line 271, in OnItemSelected
self.cmdDesc = gtask.parse_interface(GetRealCmd(cmd))
File
“/usr/local/grass-7.0.svn/etc/python/grass/script/task.py”,
line 484, in parse_interface
tree = etree.fromstring(get_interface_description(name))
File
“/usr/local/grass-7.0.svn/etc/python/grass/script/task.py”,
line 461, in get_interface_description
“\n\nDetails: %(det)s”) % { ‘cmd’ : cmd, ‘det’ :
decode(cmderr) }
grass.script.core
.
ScriptError
:
Unable to fetch interface description for command
‘r.sim.water’.
Details: r.sim.water: error while loading shared libraries:
libgrass_sim.7.0.svn.so: cannot map zero-fill pages: Cannot
allocate memory
I’m a little bit confused and i don’t know what causes this error. I know that this is an experimental version of GRASS but I still hope that somehow it can be worked out. Would it be a solution if somehow I compile a working version of r.sim.water source? If so, where can I find it and how can I make it work? I also thought about changing to another grass70 svn (preferably to such a version where r.sim.water works
). Anyone has experiances with one of the grass70svns and r.sim.water? I would be very thankful if someone can suggest me a “working one”.
p.s.: I checked the stable Grass 6.4.2. which comes from the ubuntu software center and it produces similar issues. Is it an issue which has something to do with my system? What should I do?
Any help would be appreciated
Thanks in advance:
Levente Juhasz
why trying from ubuntugis-testing PPA
you can get the latest source code from svn.osgeo.org. See[1]
svn checkout [https://svn.osgeo.org/grass/grass/trunk](https://svn.osgeo.org/grass/grass/trunk) grass7_trunk
[1] http://trac.osgeo.org/grass/wiki/DownloadSource
···
On Wed, Mar 27, 2013 at 2:01 PM, Levente Juhász <jlevente89@gmail.com> wrote:
Hi list,
I am Levente from Hungary and i want to use GRASS GIS for a project. I’m working on a website that can do a hydrological modeling task via WPS protocol. I started to develop it in a windows environment but the module i want to use (r.sim.water) had some issues on WinGrass. I’ve recently changed my system to ubuntu 12.10. Altough I’m not dealing with linux and GRASS GIS for a long time I understands the basics of them.
I have downloaded and compiled a GRASS70 svn from ubuntugis (this exactly: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/+sourcepub/3015769/+listing-archive-extra). After compiling I can see an error log like this:
GRASS GIS compilation log
Started compilation: 2013. márc. 27., szerda, 01.00.29 CET
Errors in:
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.water
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.sediment
In case of errors please change into the directory with error and run ‘make’.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
Finished compilation: 2013. márc. 27., szerda, 01.13.11 CET
I can start grass70 but when i try to open the r.sim.water dialog i get the following error (something similar comes up if i try to use the command line)
Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_core/p
rompt.py”, line 271, in OnItemSelected
self.cmdDesc = gtask.parse_interface(GetRealCmd(cmd))
File
“/usr/local/grass-7.0.svn/etc/python/grass/script/task.py”,
line 484, in parse_interface
tree = etree.fromstring(get_interface_description(name))
File
“/usr/local/grass-7.0.svn/etc/python/grass/script/task.py”,
line 461, in get_interface_description
“\n\nDetails: %(det)s”) % { ‘cmd’ : cmd, ‘det’ :
decode(cmderr) }
grass.script.core
.
ScriptError
:
Unable to fetch interface description for command
‘r.sim.water’.
Details: r.sim.water: error while loading shared libraries:
libgrass_sim.7.0.svn.so: cannot map zero-fill pages: Cannot
allocate memory
I’m a little bit confused and i don’t know what causes this error. I know that this is an experimental version of GRASS but I still hope that somehow it can be worked out. Would it be a solution if somehow I compile a working version of r.sim.water source? If so, where can I find it and how can I make it work? I also thought about changing to another grass70 svn (preferably to such a version where r.sim.water works
). Anyone has experiances with one of the grass70svns and r.sim.water? I would be very thankful if someone can suggest me a “working one”.
p.s.: I checked the stable Grass 6.4.2. which comes from the ubuntu software center and it produces similar issues. Is it an issue which has something to do with my system? What should I do?
Any help would be appreciated
Thanks in advance:
Levente Juhasz
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
–
Regards,
Rashad
On Wed, Mar 27, 2013 at 9:31 AM, Levente Juhász <jlevente89@gmail.com> wrote:
Hi list,
I am Levente from Hungary and i want to use GRASS GIS for a project. I'm
working on a website that can do a hydrological modeling task via WPS
protocol. I started to develop it in a windows environment but the module i
want to use (r.sim.water) had some issues on WinGrass. I've recently changed
my system to ubuntu 12.10. Altough I'm not dealing with linux and GRASS GIS
for a long time I understands the basics of them.
I have downloaded and compiled a GRASS70 svn from ubuntugis
Please, as Rashad suggests, get source code from the GRASS Server itself:
http://trac.osgeo.org/grass/wiki/DownloadSource#GRASS7
GRASS GIS compilation log
-------------------------
Started compilation: 2013. márc. 27., szerda, 01.00.29 CET
--
Errors in:
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.water
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.sediment
--
In case of errors please change into the directory with error and run
'make'.
Please try as suggested:
cd /home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.water
make
and
cd /home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.sediment
make
to see the errors.
...
Unable to fetch interface description for command
'r.sim.water'.
Details: r.sim.water: error while loading shared libraries:
libgrass_sim.7.0.svn.so: cannot map zero-fill pages: Cannot
allocate memory
Please post the result of
g.region -p
...
p.s.: I checked the stable Grass 6.4.2. which comes from the ubuntu software
center and it produces similar issues. Is it an issue which has something to
do with my system? What should I do?
Please also post
uname -a
Markus
Thanks guys for the tips.
I’ve got to change my system back to ubuntu 12.04 so I’m not able to post the outputs you asked for. I downloaded the latest source code from svn.osgeo.org and compiled it. Now r.sim.water works as expected.
Yesterday I was trying to make it work for a while and I found this out:
when other processes used lots of memory (10+ chrome tabs, mozilla, etc), the “libgrass_sim.7.0.svn.so: cannot map zero-fill pages: Cannot allocate memory” error came out while i was trying to call “r.sim.water”. After closing most of the processes, r.sim.water could open.
I’m not really an expert, but it seems like it has something to do with memory handling…
Thanks again for trying to help, everything works well now.
2013/3/28 Markus Neteler <neteler@osgeo.org>
On Wed, Mar 27, 2013 at 9:31 AM, Levente Juhász <jlevente89@gmail.com> wrote:
Hi list,
I am Levente from Hungary and i want to use GRASS GIS for a project. I’m
working on a website that can do a hydrological modeling task via WPS
protocol. I started to develop it in a windows environment but the module i
want to use (r.sim.water) had some issues on WinGrass. I’ve recently changed
my system to ubuntu 12.10. Altough I’m not dealing with linux and GRASS GIS
for a long time I understands the basics of them.
I have downloaded and compiled a GRASS70 svn from ubuntugis
Please, as Rashad suggests, get source code from the GRASS Server itself:
http://trac.osgeo.org/grass/wiki/DownloadSource#GRASS7
GRASS GIS compilation log
Started compilation: 2013. márc. 27., szerda, 01.00.29 CET
Errors in:
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.water
/home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.sediment
In case of errors please change into the directory with error and run
‘make’.
Please try as suggested:
cd /home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.water
make
and
cd /home/pepszi/grass70.7.0.orig/raster/simwe/r.sim.sediment
make
to see the errors.
…
Unable to fetch interface description for command
‘r.sim.water’.
Details: r.sim.water: error while loading shared libraries:
libgrass_sim.7.0.svn.so: cannot map zero-fill pages: Cannot
allocate memory
Please post the result of
g.region -p
…
p.s.: I checked the stable Grass 6.4.2. which comes from the ubuntu software
center and it produces similar issues. Is it an issue which has something to
do with my system? What should I do?
Please also post
uname -a
Markus