[GRASS-user] r.basin error

I’m trying to run r.basin and I get the following error:
SECTION 1a (of 4): Initiating Memory.
SECTION 1b (of 4): Determining Offmap Flow.
SECTION 2: A * Search.
SECTION 3: Accumulating Surface Flow with SFD.
SECTION 4: Closing Maps.
Writing out only positive flow accumulation values.
Cells with a likely underestimate for flow accumulation can no longer be identified.
Traceback (most recent call last):
File “/home/user/grassdata/addons/r.basin”, line 663, in

sys.exit(main())
File “/home/user/grassdata/addons/r.basin”, line 151, in
main
overwrite = True)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 189, in run_command
ps = start_command(*args, **kwargs)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 177, in start_command
return Popen(args, **popts)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 56, in init
startupinfo, creationflags)
File “/usr/lib/python2.7/subprocess.py”, line 679, in
init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1249, in
_execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
(Wed Nov 28 19:36:58 2012) Command finished (20 sec)

I’m running the latest OSGeolive. But I got the exact same error on Slackware 13 and CentOS 6

Thanks

On Wed, 28 Nov 2012, kapo coulibaly wrote:

File "/usr/lib/grass64/etc/python/grass/script/core.py",
File "/usr/lib/python2.7/subprocess.py", line 1249, in

   These are python errors. do you have core.py and subprocess.py on your
systems? I'm still running python-2.6 on my Slackware hosts so it might be a
python-2.7 issue.

Rich

Hi,

On Wed, Nov 28, 2012 at 8:46 PM, kapo coulibaly <kmcoulib@gmail.com> wrote:

I’m trying to run r.basin and I get the following error:
SECTION 1a (of 4): Initiating Memory.
SECTION 1b (of 4): Determining Offmap Flow.
SECTION 2: A * Search.
SECTION 3: Accumulating Surface Flow with SFD.
SECTION 4: Closing Maps.
Writing out only positive flow accumulation values.
Cells with a likely underestimate for flow accumulation can no longer be identified.
Traceback (most recent call last):
File “/home/user/grassdata/addons/r.basin”, line 663, in

sys.exit(main())
File “/home/user/grassdata/addons/r.basin”, line 151, in
main
overwrite = True)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 189, in run_command
ps = start_command(*args, **kwargs)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 177, in start_command
return Popen(args, **popts)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 56, in init
startupinfo, creationflags)
File “/usr/lib/python2.7/subprocess.py”, line 679, in
init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1249, in
_execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
(Wed Nov 28 19:36:58 2012) Command finished (20 sec)

I’m running the latest OSGeolive. But I got the exact same error on Slackware 13 and CentOS 6

What’s the exact command line that you are trying to run? Could you reproduce this error using NC dataset so that I can reproduce it as well?

Thanks,
madi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

The command using NC data on OSGEOLive 6.0 is attached. Thanks
(Tue Dec 4 14:13:38 2012)
r.basin -a map=elevation@PERMANENT prefix=ncbasin easting=641154 northing=222423
SECTION 1a (of 4): Initiating Memory.
SECTION 1b (of 4): Determining Offmap Flow.
SECTION 2: A * Search.
SECTION 3: Accumulating Surface Flow with SFD.
SECTION 4: Closing Maps.
Writing out only positive flow accumulation values.
Cells with a likely underestimate for flow accumulation can no longer be identified.
threshold : 10000.0
Traceback (most recent call last):
File “/home/user/grassdata/addons/r.basin”, line 663, in

sys.exit(main())
File “/home/user/grassdata/addons/r.basin”, line 151, in
main
overwrite = True)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 189, in run_command
ps = start_command(*args, **kwargs)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 177, in start_command
return Popen(args, **popts)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 56, in init
startupinfo, creationflags)
File “/usr/lib/python2.7/subprocess.py”, line 679, in
init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1249, in
_execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
(Tue Dec 4 14:14:03 2012) Command finished (24 sec)

On Thu, Nov 29, 2012 at 7:56 AM, Margherita Di Leo <diregola@gmail.com> wrote:

Hi,

On Wed, Nov 28, 2012 at 8:46 PM, kapo coulibaly <kmcoulib@gmail.com> wrote:

I’m trying to run r.basin and I get the following error:
SECTION 1a (of 4): Initiating Memory.
SECTION 1b (of 4): Determining Offmap Flow.
SECTION 2: A * Search.
SECTION 3: Accumulating Surface Flow with SFD.
SECTION 4: Closing Maps.
Writing out only positive flow accumulation values.
Cells with a likely underestimate for flow accumulation can no longer be identified.
Traceback (most recent call last):
File “/home/user/grassdata/addons/r.basin”, line 663, in

sys.exit(main())
File “/home/user/grassdata/addons/r.basin”, line 151, in
main
overwrite = True)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 189, in run_command
ps = start_command(*args, **kwargs)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 177, in start_command
return Popen(args, **popts)
File “/usr/lib/grass64/etc/python/grass/script/core.py”,
line 56, in init
startupinfo, creationflags)
File “/usr/lib/python2.7/subprocess.py”, line 679, in
init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1249, in
_execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
(Wed Nov 28 19:36:58 2012) Command finished (20 sec)

I’m running the latest OSGeolive. But I got the exact same error on Slackware 13 and CentOS 6

What’s the exact command line that you are trying to run? Could you reproduce this error using NC dataset so that I can reproduce it as well?

Thanks,
madi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Hi,

On Tue, Dec 4, 2012 at 3:19 PM, kapo coulibaly <kmcoulib@gmail.com> wrote:

The command using NC data on OSGEOLive 6.0 is attached. Thanks
(Tue Dec 4 14:13:38 2012)
r.basin -a map=elevation@PERMANENT prefix=ncbasin easting=641154 northing=222423

Thank you, I’ll check it later this evening and let you know. Just one further information: do you have r.stream.* modules (dependencies) already installed?

Best regards,
MaDi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

You are right. installing the r.stream.* seems to have taken care of it.
thanks

On Tue, Dec 4, 2012 at 10:47 AM, Margherita Di Leo <diregola@gmail.com> wrote:

Hi,

On Tue, Dec 4, 2012 at 3:19 PM, kapo coulibaly <kmcoulib@gmail.com> wrote:

The command using NC data on OSGEOLive 6.0 is attached. Thanks
(Tue Dec 4 14:13:38 2012)
r.basin -a map=elevation@PERMANENT prefix=ncbasin easting=641154 northing=222423

Thank you, I’ll check it later this evening and let you know. Just one further information: do you have r.stream.* modules (dependencies) already installed?

Best regards,
MaDi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Anyway I’ll add some controls to let it crash more graciously whenever a dependency is missing. Many thanks for your feedback.

On Tue, Dec 4, 2012 at 5:18 PM, kapo coulibaly <kmcoulib@gmail.com> wrote:

You are right. installing the r.stream.* seems to have taken care of it.
thanks

On Tue, Dec 4, 2012 at 10:47 AM, Margherita Di Leo <diregola@gmail.com> wrote:

Hi,

On Tue, Dec 4, 2012 at 3:19 PM, kapo coulibaly <kmcoulib@gmail.com> wrote:

The command using NC data on OSGEOLive 6.0 is attached. Thanks
(Tue Dec 4 14:13:38 2012)
r.basin -a map=elevation@PERMANENT prefix=ncbasin easting=641154 northing=222423

Thank you, I’ll check it later this evening and let you know. Just one further information: do you have r.stream.* modules (dependencies) already installed?

Best regards,
MaDi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu