[GRASS-dev] installing r.modis fails

Hi, I am trying to install r.modis using g.extension, which gives me the error messages below. Note that the first three svn warnings also showed up during compiling GRASS (reported here: http://trac.osgeo.org/grass/ticket/1776) and with any extension I install. So they are probably not related to the problem with installing r.modis

Fetching <r.modis> from GRASS-Addons SVN (be patient)…
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US
svn: warning: please check that your locale name is correct
Compiling…
ERROR: modis library not imported
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: rmodislib library not imported
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing…
/usr/bin/install: cannot stat
/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60 0-Workstation/5191.0/r.modis/docs/html/r.modis.download.html ': No such file or directory make[1]: *** [install] Error 1 /usr/bin/install: cannot stat /home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.import.html’:
No such file or directory
make[1]: *** [install] Error 1
ERROR: Unable to read manual page: [Errno 2] No such file or directory: ‘/home/paulo/.grass7/addons/docs/html/r.modis.html’

I seems r.modis is installed, but running the command r.modis.download gives me the warning message:

Unable to fetch interface description for command ‘r.modis.download’.
Details:
GRASS_INFO_ERROR(5384,1): modis library not imported
GRASS_INFO_END(5384,1)

My system info:
GRASS version: 7.0.svn
GRASS SVN Revision: 53615
GIS Library Revision: 52468 (2012-07-27)
GDAL/OGR: 1.9.2
PROJ4: Rel. 4.7.1, 23 September 2009
Python: 2.7.3
wxPython: 2.8.12.1
Platform: Linux-3.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal

Any ideas?

Best regards,

Paulo

2012/10/31 Paulo van Breugel <p.vanbreugel@gmail.com>:

Hi, I am trying to install r.modis using g.extension, which gives me the
error messages below. Note that the first three svn warnings also showed up
during compiling GRASS (reported here:
http://trac.osgeo.org/grass/ticket/1776) and with any extension I install.
So they are probably not related to the problem with installing r.modis

Fetching <r.modis> from GRASS-Addons SVN (be patient)...
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US
svn: warning: please check that your locale name is correct
Compiling...
ERROR: modis library not imported
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: rmodislib library not imported
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing...
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.download.html
': No such file or directory
make[1]: *** [install] Error 1
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.import.html':
No such file or directory
make[1]: *** [install] Error 1
ERROR: Unable to read manual page: [Errno 2] No such file or directory:
'/home/paulo/.grass7/addons/docs/html/r.modis.html'

so, here there is a problem related to r.modis libraries, I should use
'pass' in a try exceptions but I don't like so much because if the
libraries are missing no errors are returned during running

I seems r.modis is installed, but running the command r.modis.download gives
me the warning message:

Unable to fetch interface description for command 'r.modis.download'.
Details:
GRASS_INFO_ERROR(5384,1): modis library not imported
GRASS_INFO_END(5384,1)

this seem related to your ticket, and this is related to your locale situation.
I added a request to that ticket

Best regards,

Paulo

--
ciao
Luca

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

Hi Luca

Thanks for looking into this. I answered your request for the ticket on the locale. I should perhaps add though that I was not able to install r.modis in an earlier revision of GRASS 7.0 either, while the locale error messages only started with the current revision (which I compiled after upgrading to Ubuntu 12.10, so perhaps that has broken something concerning the locale?).

Cheers,

Paulo

···

On 10/31/2012 11:41 AM, Luca Delucchi wrote:

2012/10/31 Paulo van Breugel [<p.vanbreugel@gmail.com>](mailto:p.vanbreugel@gmail.com):

Hi, I am trying to install r.modis using g.extension, which gives me the
error messages below. Note that the first three svn warnings also showed up
during compiling GRASS (reported here:
[http://trac.osgeo.org/grass/ticket/1776](http://trac.osgeo.org/grass/ticket/1776)) and with any extension I install.
So they are probably not related to the problem with installing r.modis

Fetching <r.modis> from GRASS-Addons SVN (be patient)...
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US
svn: warning: please check that your locale name is correct
Compiling...
ERROR: modis library not imported
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: rmodislib library not imported
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing...
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.download.html
': No such file or directory
make[1]: *** [install] Error 1
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.import.html':
No such file or directory
make[1]: *** [install] Error 1
ERROR: Unable to read manual page: [Errno 2] No such file or directory:
'/home/paulo/.grass7/addons/docs/html/r.modis.html'

so, here there is a problem related to r.modis libraries, I should use
'pass' in a try  exceptions but I don't like so much because if the
libraries are missing no errors are returned during running

I seems r.modis is installed, but running the command r.modis.download gives
me the warning message:

Unable to fetch interface description for command 'r.modis.download'.
Details:
GRASS_INFO_ERROR(5384,1): modis library not imported
GRASS_INFO_END(5384,1)

this seem related to your ticket, and this is related to your locale situation.
I added a request to that ticket

Best regards,

Paulo


Hi, I have installed one of latest revision for GRASS (SVN Revision: 53641), but I am still getting the same error when trying to install the r.modis extension. Any further ideas what I could do?

Cheers,

Paulo

···

On Wed, Oct 31, 2012 at 12:20 PM, Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

Hi Luca

Thanks for looking into this. I answered your request for the ticket on the locale. I should perhaps add though that I was not able to install r.modis in an earlier revision of GRASS 7.0 either, while the locale error messages only started with the current revision (which I compiled after upgrading to Ubuntu 12.10, so perhaps that has broken something concerning the locale?).

Cheers,

Paulo

On 10/31/2012 11:41 AM, Luca Delucchi wrote:

2012/10/31 Paulo van Breugel [<p.vanbreugel@gmail.com>](mailto:p.vanbreugel@gmail.com):

Hi, I am trying to install r.modis using g.extension, which gives me the
error messages below. Note that the first three svn warnings also showed up
during compiling GRASS (reported here:
[http://trac.osgeo.org/grass/ticket/1776](http://trac.osgeo.org/grass/ticket/1776)) and with any extension I install.
So they are probably not related to the problem with installing r.modis

Fetching <r.modis> from GRASS-Addons SVN (be patient)...
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US
svn: warning: please check that your locale name is correct
Compiling...
ERROR: modis library not imported
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: rmodislib library not imported
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing...
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.download.html
': No such file or directory
make[1]: *** [install] Error 1
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/PERMANENT/.tmp/paulo-HP-Z60
0-Workstation/5191.0/r.modis/docs/html/r.modis.import.html':
No such file or directory
make[1]: *** [install] Error 1
ERROR: Unable to read manual page: [Errno 2] No such file or directory:
'/home/paulo/.grass7/addons/docs/html/r.modis.html'

so, here there is a problem related to r.modis libraries, I should use
'pass' in a try  exceptions but I don't like so much because if the
libraries are missing no errors are returned during running

I seems r.modis is installed, but running the command r.modis.download gives
me the warning message:

Unable to fetch interface description for command 'r.modis.download'.
Details:
GRASS_INFO_ERROR(5384,1): modis library not imported
GRASS_INFO_END(5384,1)

this seem related to your ticket, and this is related to your locale situation.
I added a request to that ticket

Best regards,

Paulo


Hi,

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

Hi, I have installed one of latest revision for GRASS (SVN Revision:
53641), but I am still getting the same error when trying to install the
r.modis extension. Any further ideas what I could do?

try r53670. Note that you need to update also `g.extension` module
(ie. recompile GRASS).

Martin

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

Hi Martin,

Great, it seems to work, both commands open the respective windows. I’ll hope to test if both tool work at a later this weekend.

I am still getting an error message during install, still something about the rmodislib missing and about the missing manual (html) page:

Fetching <r.modis> from GRASS-Addons SVN (be patient)…
Compiling…
ERROR: No module named rmodislib
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing…
/usr/bin/install: cannot stat
/home/paulo/Data/GRASSdb/latlon/Fieldplots/.tmp/paulo-HP-Z6 00-Workstation/31416.0/r.modis/docs/html/[r.modis.download.ht](http://r.modis.download.ht) ml': No such file or directory make[1]: *** [install] Error 1 /usr/bin/install: cannot stat /home/paulo/Data/GRASSdb/latlon/Fieldplots/.tmp/paulo-HP-Z6
00-Workstation/31416.0/r.modis/docs/html/r.modis.import.html
': No such file or directory
make[1]: *** [install] Error 1
Updating metadata file…
ERROR: Unable to read manual page: [Errno 2] No such file or directory: ‘/home/paulo/.grass7/addons/docs/html/r.modis.download.html’

Cheers,

Paulo

···

On Fri, Nov 2, 2012 at 9:23 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

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

Hi, I have installed one of latest revision for GRASS (SVN Revision:
53641), but I am still getting the same error when trying to install the
r.modis extension. Any further ideas what I could do?

try r53670. Note that you need to update also g.extension module
(ie. recompile GRASS).

Martin


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

hi Paulo,

ERROR: No module named rmodislib
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing...

the addons-wiki [1] says:

[...] It uses the pyModis library and the MODIS Reprojection Tool software
to convert, mosaik and process MODIS data.

do you have these dependencies installed?

best regards
Helmut

[1] http://grass.osgeo.org/wiki/GRASS_AddOns#r.modis

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/installing-r-modis-fails-tp5012466p5013643.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Fetching <r.modis> from GRASS-Addons SVN (be patient)...
Compiling...
ERROR: No module named rmodislib
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing.

and for further infos see also [1]:

The r.modis suite is a toolset to import MODIS satellite data in GRASS GIS.
It uses the pyModis library and the MODIS Reprojection Tool software to
convert, mosaik and process MODIS data. It requires the MODIS Reprojection
Tool to be installed while pyModis is included in the r.modis suite. [...]

[1]
https://svn.osgeo.org/grass/grass-addons/grass7/raster/r.modis/r.modis.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/installing-r-modis-fails-tp5012466p5013644.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Hi Helmut,

The r.modis help files states that “It requires the MODIS Reprojection Tool to be installed while pyModis is included in the r.modis suite”. Also because there is a folder libmodis in the r.modis source folder I assumed that installing r.modis would take care automatically of pyModis, but that was a wrong assumption?

I have installed the Modis Reprojection Tool, but I see one has to define the path when running r.modis.download, so I guess this is not influencing the install of r.modis?

Cheers

Paulo

···

On Fri, Nov 2, 2012 at 11:13 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

hi Paulo,

ERROR: No module named rmodislib
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing…

the addons-wiki [1] says:

[…] It uses the pyModis library and the MODIS Reprojection Tool software
to convert, mosaik and process MODIS data.

do you have these dependencies installed?

best regards
Helmut

[1] http://grass.osgeo.org/wiki/GRASS_AddOns#r.modis


best regards
Helmut

View this message in context: http://osgeo-org.1560.n6.nabble.com/installing-r-modis-fails-tp5012466p5013643.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


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

Our messages crossed in cyberspace I see :-). It is still not clear to me, do I need to install pyModis separately?

···

On Fri, Nov 2, 2012 at 11:17 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

Fetching <r.modis> from GRASS-Addons SVN (be patient)…
Compiling…
ERROR: No module named rmodislib
make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib
make[1]: *** [r.modis.import.tmp.html] Error 1
Installing.

and for further infos see also [1]:

The r.modis suite is a toolset to import MODIS satellite data in GRASS GIS.

It uses the pyModis library and the MODIS Reprojection Tool software to

convert, mosaik and process MODIS data. It requires the MODIS Reprojection
Tool to be installed while pyModis is included in the r.modis suite. […]

[1]
https://svn.osgeo.org/grass/grass-addons/grass7/raster/r.modis/r.modis.html


best regards
Helmut

View this message in context: http://osgeo-org.1560.n6.nabble.com/installing-r-modis-fails-tp5012466p5013644.html

Sent from the Grass - Dev mailing list archive at Nabble.com.


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

I have installed the Modis Reprojection Tool, but I see one has to define
the path when running r.modis.download, so I guess this is not influencing
the install of r.modis?

[...]

Our messages crossed in cyberspace I see :-). It is still not clear to me,

do I need to install pyModis >separately?

I've never tried r.modis, so maybe Luca (cc) has more inside in this.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/installing-r-modis-fails-tp5012466p5013649.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

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

Hi Martin,

Hi Paulo

Great, it seems to work, both commands open the respective windows. I'll
hope to test if both tool work at a later this weekend.

I am still getting an error message during install, still something about
the rmodislib missing and about the missing manual (html) page:

Fetching <r.modis> from GRASS-Addons SVN (be patient)...
Compiling...
ERROR: No module named rmodislib

make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib

these problems I don't know how to solve because:
I should use

try:
   import rmodislib
except:
   pass

instead I use

try:
    from rmodislib import resampling, product, get_proj, projection
except ImportError, e:
    grass.fatal(e)

because if something goes wrong during compilation it return an error
when the script is launched.
So for this problem you could avoid it, you should be able to use
r.modis.download and r.modis.import

make[1]: *** [r.modis.import.tmp.html] Error 1
Installing...
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/Fieldplots/.tmp/paulo-HP-Z6
00-Workstation/31416.0/r.modis/docs/html/r.modis.download.ht
ml': No such file or directory

make[1]: *** [install] Error 1
/usr/bin/install: cannot stat
`/home/paulo/Data/GRASSdb/latlon/Fieldplots/.tmp/paulo-HP-Z6
00-Workstation/31416.0/r.modis/docs/html/r.modis.import.html

': No such file or directory
make[1]: *** [install] Error 1
Updating metadata file...
ERROR: Unable to read manual page: [Errno 2] No such file or directory:
'/home/paulo/.grass7/addons/docs/html/r.modis.download.html'

For these I don't know, martin do you have any idea?

Cheers,

Paulo

--
ciao
Luca

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

Hi,

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

Fetching <r.modis> from GRASS-Addons SVN (be patient)...
Compiling...
ERROR: No module named rmodislib

make[1]: *** [r.modis.download.tmp.html] Error 1
ERROR: No module named rmodislib

this is probably related to broken installation. Try to remove

rm ~/.grass7/addons/etc/r.modis

and run `g.extension` again.

Martin

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

this is probably related to broken installation. Try to remove

rm ~/.grass7/addons/etc/r.modis

`rm -r` of course.

Martin

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

Hi Martin,

Great, thanks, that solved the problems.

Cheers,

Paulo

···

On Sat, Nov 3, 2012 at 11:09 AM, Martin Landa <landa.martin@gmail.com> wrote:

this is probably related to broken installation. Try to remove

rm ~/.grass7/addons/etc/r.modis

rm -r of course.

Martin


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