[GRASS-dev] r.modis.download

Hi,

I have installed r.modis with the grass-addons as follow:

#install pyMODIS from git
git clone git://github.com/lucadelu/pyModis.git
cd $install_root/pyModis
python setup.py install
cd $install_root

#make grass-addons
cd $install_root/grass-addons/grass7
make MODULE_TOPDIR=$install_root/grass/

Tested pyModis in python, the library loads.

r.modis.download product=lst_terra_daily_1000 tiles=h27v08 startday=2012-01-01 folder=/home/yann/RSDATA/

it returns something very long finishing like this:


.
return Popen(args, **popts)
File “/usr/local/grass-7.0.svn/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 1129, in _execute_child
if isinstance(args, types.StringTypes):
RuntimeError: maximum recursion depth exceeded while calling a Python object

Thank you for any help,
Yann


Yann Chemin

Replying with a just discovered potential reason:

ftp site not accessible through working place wifi…

Can this generate such crash?
Can this module crash more gracefully?

Thank you,
Yann

···

On 6 November 2012 11:28, Yann Chemin <yann.chemin@gmail.com> wrote:

Hi,

I have installed r.modis with the grass-addons as follow:

#install pyMODIS from git
git clone git://github.com/lucadelu/pyModis.git
cd $install_root/pyModis
python setup.py install
cd $install_root

#make grass-addons
cd $install_root/grass-addons/grass7
make MODULE_TOPDIR=$install_root/grass/

Tested pyModis in python, the library loads.

r.modis.download product=lst_terra_daily_1000 tiles=h27v08 startday=2012-01-01 folder=/home/yann/RSDATA/

it returns something very long finishing like this:


.
return Popen(args, **popts)
File “/usr/local/grass-7.0.svn/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 1129, in _execute_child
if isinstance(args, types.StringTypes):
RuntimeError: maximum recursion depth exceeded while calling a Python object

Thank you for any help,
Yann


Yann Chemin


Yann Chemin

Hi Yann

2012/11/6 Yann Chemin <yann.chemin@gmail.com>:

Replying with a just discovered potential reason:

ftp site not accessible through working place wifi...

Can this generate such crash?

the pyModis [0][1] version inside r.modis is quite old, I didn't
receive any feedback for more then one year that r.modis is in the
addons repository. Today I'll work to update it and test it

Can this module crash more gracefully?

The error above seem related to grass/script/core.py and not to
r.modis module but I'll try after updating pyModis

Thank you,
Yann

[0] http://pymodis.fem-environment.eu/
[1] https://github.com/lucadelu/pymodis

--
ciao
Luca

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

Just want to confirm I am getting the same errors. I have normal access to the ftp site, so I guess that should not be a cause of this problem?

···

On Tue, Nov 6, 2012 at 7:06 AM, Yann Chemin <yann.chemin@gmail.com> wrote:

Replying with a just discovered potential reason:

ftp site not accessible through working place wifi…

Can this generate such crash?
Can this module crash more gracefully?

Thank you,
Yann


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

On 6 November 2012 11:28, Yann Chemin <yann.chemin@gmail.com> wrote:

Hi,

I have installed r.modis with the grass-addons as follow:

#install pyMODIS from git
git clone git://github.com/lucadelu/pyModis.git
cd $install_root/pyModis
python setup.py install
cd $install_root

#make grass-addons
cd $install_root/grass-addons/grass7
make MODULE_TOPDIR=$install_root/grass/

Tested pyModis in python, the library loads.

r.modis.download product=lst_terra_daily_1000 tiles=h27v08 startday=2012-01-01 folder=/home/yann/RSDATA/

it returns something very long finishing like this:


.
return Popen(args, **popts)
File “/usr/local/grass-7.0.svn/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 1129, in _execute_child
if isinstance(args, types.StringTypes):
RuntimeError: maximum recursion depth exceeded while calling a Python object

Thank you for any help,
Yann


Yann Chemin


Yann Chemin

2012/11/6 Paulo van Breugel <p.vanbreugel@gmail.com>:

Just want to confirm I am getting the same errors. I have normal access to
the ftp site, so I guess that should not be a cause of this problem?

You are running r.modis in which OS?
could you send all the error log?

--
ciao
Luca

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

Hi Luca

My system info:

GRASS version: 7.0.svn

GRASS SVN Revision: 53689
GIS Library Revision: 52468 (2012-07-27)
GDAL/OGR: 1.9.2
PROJ.4: 4.7.0
GEOS: 3.3.3
Python: 2.7.3
wxPython: 2.8.12.1
Platform: Linux-3.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal

When running r.modis.import, I am getting the following error output (just copying the first few lines and the last part as the whole error message is too long):

Traceback (most recent call last):
File “/home/paulo/.grass7/addons/
scripts/r.modis.import”,
line 510, in
sys.exit(main())
File “/home/paulo/.grass7/addons/scripts/r.modis.import”,
line 478, in main
version = grass.core.version()
File “/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py”, line 1332, in version
flags = ‘rge’)
File “/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py”, line 274, in parse_command
res = read_command(*args, **kwargs)



File “/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/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 1129, in
_execute_child
if isinstance(args, types.StringTypes):
RuntimeError: maximum recursion depth exceeded while calling
a Python object

If you want the whole error message, please let me know.

Paulo

···

On Tue, Nov 6, 2012 at 9:47 AM, Luca Delucchi <lucadeluge@gmail.com> wrote:

2012/11/6 Paulo van Breugel <p.vanbreugel@gmail.com>:

Just want to confirm I am getting the same errors. I have normal access to
the ftp site, so I guess that should not be a cause of this problem?

You are running r.modis in which OS?
could you send all the error log?


ciao
Luca

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

2012/11/6 Paulo van Breugel <p.vanbreugel@gmail.com>:

Hi Luca

My system info:

GRASS version: 7.0.svn
GRASS SVN Revision: 53689
GIS Library Revision: 52468 (2012-07-27)
GDAL/OGR: 1.9.2
PROJ.4: 4.7.0
GEOS: 3.3.3
Python: 2.7.3
wxPython: 2.8.12.1
Platform: Linux-3.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal

When running r.modis.import, I am getting the following error output (I
don't know all is relevant, just copying everything to be sure):

Traceback (most recent call last):
  File "/home/paulo/.grass7/addons/scripts/r.modis.import",
line 510, in <module>
    sys.exit(main())
  File "/home/paulo/.grass7/addons/scripts/r.modis.import",
line 478, in main
    version = grass.core.version()
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 1332, in version
    flags = 'rge')
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 274, in parse_command
    res = read_command(*args, **kwargs)
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 234, in read_command
    ps = pipe_command(*args, **kwargs)
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 211, in pipe_command
    return start_command(*args, **kwargs)
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 169, in start_command
    if debug_level() > 0:
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 1346, in debug_level
    _debug_level = int(gisenv().get('DEBUG', 0))
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 682, in gisenv
    s = read_command("g.gisenv", flags='n')

the error is in grass.core.version(). I try also to run it from
console and I obtain the same error.
I'm looking the code but it's a little bit confused because a lot of
module are called and I really don't understand where is the bug.

--
ciao
Luca

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

Hi,

2012/11/6 Luca Delucchi <lucadeluge@gmail.com>:

[...]

    if debug_level() > 0:
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 1346, in debug_level
    _debug_level = int(gisenv().get('DEBUG', 0))
  File "/usr/local/grass7/grass-7.0.svn/etc/python/grass/scr
ipt/core.py", line 682, in gisenv
    s = read_command("g.gisenv", flags='n')

the error is in grass.core.version(). I try also to run it from
console and I obtain the same error.
I'm looking the code but it's a little bit confused because a lot of
module are called and I really don't understand where is the bug.

see

http://lists.osgeo.org/pipermail/grass-dev/2012-November/060670.html

Martin

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