Re: [GRASS-user] can not install addons with g.extension
Robert Nuske wrote: There is at least groff.py and html.py missing in the ubuntu package. No idea about 'g.echo'. AFAIK, g.echo is only required on Windows, and only by the build system. From include/Make/Rules.make: ifneq ($(MINGW),) mkpath = $(shell $(TOOLSDIR)/g.echo$(EXE) $(1));$(2) else mkpath = $(1):$(2) endif Here, g.echo is used as a simple hack for converting filenames from MSys format to Windows' native format. MSys' shell converts filenames when passing them to an executable which isn't part of MSys; g.echo just writes its sole argument (which will already have been converted) to stdout. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi (also in the other thread) Good News! Thanks to Glynn's hint and Martin's fixes the daily grass70 package from ppa:grass-devel is now able to manage addons with g.extension. Thanks a lot for your help! cheers, robert Am Mittwoch, 18. Februar 2015, 20:14:38 schrieb Martin Landa: Hi, 2015-02-18 11:09 GMT+01:00 Robert Nuske rnu...@gwdg.de: $ ls -l /usr/local/src/grass70/dist.x86_64-unknown-linux-gnu/tools total 60 -rwxrwxr-x 1 rnuske rnuske 6240 Feb 17 11:27 g.echo -rwxr-xr-x 1 rnuske rnuske 1501 Feb 17 11:27 g.html2man.py -rw-r--r-- 1 rnuske rnuske 5940 Feb 17 11:27 groff.py -rw-r--r-- 1 rnuske rnuske 10174 Feb 17 11:27 groff.pyc -rw-r--r-- 1 rnuske rnuske 5384 Feb 17 11:27 html.py -rw-r--r-- 1 rnuske rnuske 6892 Feb 17 11:27 html.pyc -rwxr-xr-x 1 rnuske rnuske 8449 Feb 17 11:27 mkhtml.py There is at least groff.py and html.py missing in the ubuntu package. No idea about 'g.echo'. Martin could you (or somebody else knowledgeable) add these two to the rules probably below line 183 [1] ? done in [1]. I requested new build right now, should be available in 15min for testing. Martin [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/revision/47 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Thanks Glynn! I have added py extension in `rules` file [1] and requested for the new build. Should be available in 10min. Thanks for the fix. It already percolated into the ubuntu package grass70 Version: 7.0.0+1svn64634~ubuntu14.04.1 g.extension fails now because it can not find the html module. [...] Traceback (most recent call last): File /usr/lib/grass70/tools/g.html2man.py, line 5, in module from html import HTMLParser, HTMLParseError ImportError: No module named html [...] It's in the tools directory (along with groff.py, which is also required). But the rules file doesn't appear to install those. Comparing the contents of the directory 'tools' from the ubuntu package and the built from source: $ ls -l /usr/lib/grass70/tools total 16 -rwxr-xr-x 1 root root 1501 Feb 17 17:00 g.html2man.py -rwxr-xr-x 1 root root 8449 Feb 17 17:00 mkhtml.py $ ls -l /usr/local/src/grass70/dist.x86_64-unknown-linux-gnu/tools total 60 -rwxrwxr-x 1 rnuske rnuske 6240 Feb 17 11:27 g.echo -rwxr-xr-x 1 rnuske rnuske 1501 Feb 17 11:27 g.html2man.py -rw-r--r-- 1 rnuske rnuske 5940 Feb 17 11:27 groff.py -rw-r--r-- 1 rnuske rnuske 10174 Feb 17 11:27 groff.pyc -rw-r--r-- 1 rnuske rnuske 5384 Feb 17 11:27 html.py -rw-r--r-- 1 rnuske rnuske 6892 Feb 17 11:27 html.pyc -rwxr-xr-x 1 rnuske rnuske 8449 Feb 17 11:27 mkhtml.py There is at least groff.py and html.py missing in the ubuntu package. No idea about 'g.echo'. Martin could you (or somebody else knowledgeable) add these two to the rules probably below line 183 [1] ? [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/view/head:/rules#L183 Thanks a lot Robert ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi, 2015-02-18 11:09 GMT+01:00 Robert Nuske rnu...@gwdg.de: $ ls -l /usr/local/src/grass70/dist.x86_64-unknown-linux-gnu/tools total 60 -rwxrwxr-x 1 rnuske rnuske 6240 Feb 17 11:27 g.echo -rwxr-xr-x 1 rnuske rnuske 1501 Feb 17 11:27 g.html2man.py -rw-r--r-- 1 rnuske rnuske 5940 Feb 17 11:27 groff.py -rw-r--r-- 1 rnuske rnuske 10174 Feb 17 11:27 groff.pyc -rw-r--r-- 1 rnuske rnuske 5384 Feb 17 11:27 html.py -rw-r--r-- 1 rnuske rnuske 6892 Feb 17 11:27 html.pyc -rwxr-xr-x 1 rnuske rnuske 8449 Feb 17 11:27 mkhtml.py There is at least groff.py and html.py missing in the ubuntu package. No idea about 'g.echo'. Martin could you (or somebody else knowledgeable) add these two to the rules probably below line 183 [1] ? done in [1]. I requested new build right now, should be available in 15min for testing. Martin [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/revision/47 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Robert Nuske wrote: I have added py extension in `rules` file [1] and requested for the new build. Should be available in 10min. Thanks for the fix. It already percolated into the ubuntu package grass70 Version: 7.0.0+1svn64634~ubuntu14.04.1 g.extension fails now because it can not find the html module. [...] Traceback (most recent call last): File /usr/lib/grass70/tools/g.html2man.py, line 5, in module from html import HTMLParser, HTMLParseError ImportError: No module named html [...] It's in the tools directory (along with groff.py, which is also required). But the rules file doesn't appear to install those. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi Martin, I have added py extension in `rules` file [1] and requested for the new build. Should be available in 10min. Thanks for the fix. It already percolated into the ubuntu package grass70 Version: 7.0.0+1svn64634~ubuntu14.04.1 g.extension fails now because it can not find the html module. [...] Traceback (most recent call last): File /usr/lib/grass70/tools/g.html2man.py, line 5, in module from html import HTMLParser, HTMLParseError ImportError: No module named html [...] I put print(sys.version) in g.html2man.py to get the python version as seen by the script and received: 2.7.6 (default, Mar 22 2014, 22:59:56) cheers robert ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi, 2015-02-13 15:05 GMT+01:00 Robert Nuske rnu...@gwdg.de: The rules file (lines 180-183) contains rules for tools/mkhtml.py tools/g.html2man I have no idea why they are treated differently. One with '.py' and the other without. I have added py extension in `rules` file [1] and requested for the new build. Should be available in 10min. Martin [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/revision/46 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi, 2015-02-13 15:05 GMT+01:00 Robert Nuske rnu...@gwdg.de: The rules file (lines 180-183) contains rules for tools/mkhtml.py tools/g.html2man I have no idea why they are treated differently. One with '.py' and the other without. I don't know, I hoped that someone who knows Debian packaging better will answer. There is also need to replace these files on Launchpad by upstream files from Debian. Note that also grass71 packaging is currently broken on Launchpad from unknown reason (bearing in mind that the files are the same). Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi Martin, mkdir -p /usr/lib/grass70/docs/man mkdir: cannot create directory '/usr/lib/grass70/docs/man': Permission denied make: *** [/usr/lib/grass70/docs/man] Error 1 ERROR: Compilation failed, sorry. Please check above error messages. I fixed this bug in r64534 (trunk only), after some testing I will backport it to relbr70. Thanks for the fix. Since the fix was recently added to relbr7 and the patch is in today’s daily launchpad build of GRASS 7, I tested g.extension again on my ubuntu box. System:ubuntu 14.04 64bit Python:2.7.6 GRASS Package: 7.0.0+1svn64600~ubuntu14.04.1 Findings: - The problem with writing to /usr/lib is fixed :-) - g.html2man.py is still not found The Python script is named g.html2man (see below 1.) - After creating a symlink for g.html2man.py: Python Module html not found ImportError: No module named html (see below 2.) cheers robert 1. Test as Standard User GRASS 7.0.0 (test_location):~ g.extension extension=r.grow.shrink --verbose Fetching r.grow.shrink from GRASS-Addons SVN repository (be patient)... Ar.grow.shrink/DEPRECATED Ar.grow.shrink/main.c Ar.grow.shrink/Makefile Ar.grow.shrink/r.grow.shrink.html U r.grow.shrink Checked out revision 64604. Compiling... mkdir -p /tmp/tmpPv5j8I/r.grow.shrink/bin mkdir -p /tmp/tmpPv5j8I/r.grow.shrink/etc mkdir -p /tmp/tmpPv5j8I/r.grow.shrink/docs/html mkdir -p /tmp/tmpPv5j8I/r.grow.shrink/docs/man mkdir -p /tmp/tmpPv5j8I/r.grow.shrink/docs/man/man1 test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu gcc -Wall -g -O -I/usr/lib/grass70/include -I/usr/lib/grass70/include- DPACKAGE=\grassmods\ -I/usr/lib/grass70/include - I/usr/lib/grass70/include -DRELDIR=\/tmp/tmpPv5j8I/r.grow.shrink\ -o OBJ.x86_64-pc-linux-gnu/main.o -c main.c : gcc -L/usr/lib/grass70/lib -L/usr/lib/grass70/lib -Wl,--export-dynamic - Wl,-rpath-link,/usr/lib/grass70/lib -o /tmp/tmpPv5j8I/r.grow.shrink/bin/r.grow.shrink OBJ.x86_64-pc-linux-gnu/main.o -lgrass_gis.7.0.0svn -lgrass_raster.7.0.0svn -lm if [ /tmp/tmpPv5j8I/r.grow.shrink/bin/r.grow.shrink != ] ; then GISRC=/tmp/grass7-rnuske-27453/gisrc GISBASE=/usr/lib/grass70 PATH=/usr/lib/grass70/bin:/usr/lib/grass70/bin:/usr/lib/grass70/scripts: $PATH PYTHONPATH=/usr/lib/grass70/etc/python:/usr/lib/grass70/gui/wxpython: $PYTHONPATH LD_LIBRARY_PATH=/tmp/tmpPv5j8I/r.grow.shrink/bin:/usr/lib/grass70/scripts:/usr/lib/grass70/lib:/usr/lib/grass70/lib:/usr/lib/grass70/lib LC_ALL=C /tmp/tmpPv5j8I/r.grow.shrink/bin/r.grow.shrink --html-description /dev/null | grep -v '/body\|/html' r.grow.shrink.tmp.html ; fi VERSION_NUMBER=7.0.0svn VERSION_DATE=2015 \ python /usr/lib/grass70/tools/mkhtml.py r.grow.shrink /tmp/tmpPv5j8I/r.grow.shrink/docs/html/r.grow.shrink.html VERSION_NUMBER=7.0.0svn /usr/lib/grass70/tools/g.html2man.py /tmp/tmpPv5j8I/r.grow.shrink/docs/html/r.grow.shrink.html /tmp/tmpPv5j8I/r.grow.shrink/docs/man/man1/r.grow.shrink.1 /bin/sh: 1: /usr/lib/grass70/tools/g.html2man.py: not found make: *** [/tmp/tmpPv5j8I/r.grow.shrink/docs/man/man1/r.grow.shrink.1] Error 127 rm r.grow.shrink.tmp.html ERROR: Compilation failed, sorry. Please check above error messages. 2. Test as Standard User after symlink (ln -s g.html2man g.html2man.py) GRASS 7.0.0 (test_location):~ g.extension extension=r.grow.shrink --verbose Fetching r.grow.shrink from GRASS-Addons SVN repository (be patient)... Ar.grow.shrink/DEPRECATED Ar.grow.shrink/main.c Ar.grow.shrink/Makefile Ar.grow.shrink/r.grow.shrink.html U r.grow.shrink Checked out revision 64604. Compiling... mkdir -p /tmp/tmpRVkTQj/r.grow.shrink/bin mkdir -p /tmp/tmpRVkTQj/r.grow.shrink/etc mkdir -p /tmp/tmpRVkTQj/r.grow.shrink/docs/html mkdir -p /tmp/tmpRVkTQj/r.grow.shrink/docs/man mkdir -p /tmp/tmpRVkTQj/r.grow.shrink/docs/man/man1 test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu gcc -Wall -g -O -I/usr/lib/grass70/include -I/usr/lib/grass70/include- DPACKAGE=\grassmods\ -I/usr/lib/grass70/include - I/usr/lib/grass70/include -DRELDIR=\/tmp/tmpRVkTQj/r.grow.shrink\ -o OBJ.x86_64-pc-linux-gnu/main.o -c main.c : gcc -L/usr/lib/grass70/lib -L/usr/lib/grass70/lib -Wl,--export-dynamic - Wl,-rpath-link,/usr/lib/grass70/lib -o /tmp/tmpRVkTQj/r.grow.shrink/bin/r.grow.shrink OBJ.x86_64-pc-linux-gnu/main.o -lgrass_gis.7.0.0svn -lgrass_raster.7.0.0svn -lm if [ /tmp/tmpRVkTQj/r.grow.shrink/bin/r.grow.shrink != ] ; then GISRC=/tmp/grass7-rnuske-27604/gisrc GISBASE=/usr/lib/grass70 PATH=/usr/lib/grass70/bin:/usr/lib/grass70/bin:/usr/lib/grass70/scripts: $PATH PYTHONPATH=/usr/lib/grass70/etc/python:/usr/lib/grass70/gui/wxpython: $PYTHONPATH LD_LIBRARY_PATH=/tmp/tmpRVkTQj/r.grow.shrink/bin:/usr/lib/grass70/scripts:/usr/lib/grass70/lib:/usr/lib/grass70/lib:/usr/lib/grass70/lib LC_ALL=C
Re: [GRASS-user] can not install addons with g.extension
Hi problem with missing `g.html2man.py` still exists in daily ubuntu pacakges of GRASS 7.0 The rules file (lines 180-183) contains rules for tools/mkhtml.py tools/g.html2man I have no idea why they are treated differently. One with '.py' and the other without. cheers Robert 2015-02-09 18:34 GMT+01:00 Martin Landa landa.mar...@gmail.com: Right, `/usr/lib/grass70/tools/` contains `g.html2man`. This is probably related to the packaging, my local sample installation (make install from source code) contains `g.html2man.py` in the `tools` directory. it's here [1]. I am not sure why .py is removed (any Debian packager expert here?) Martin [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/view/head:/ rules#L182 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Martin Landa wrote: 2015-02-09 18:34 GMT+01:00 Martin Landa landa.mar...@gmail.com: Right, `/usr/lib/grass70/tools/` contains `g.html2man`. This is probably related to the packaging, my local sample installation (make install from source code) contains `g.html2man.py` in the `tools` directory. it's here [1]. I am not sure why .py is removed (any Debian packager expert here?) Martin [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/view/head:/rules#L182 Maybe someone assumed that the rules for scripts applied? On platforms other than Windows, scripts are installed without the .py suffix. But g.html2man.py retains the suffix on all platforms; from Grass.make: HTML2MAN = VERSION_NUMBER=$(GRASS_VERSION_NUMBER) $(GISBASE)/tools/g.html2man.py -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi Martin, thanks for looking into this! 2015-02-09 16:10 GMT+01:00 Robert Nuske rnu...@gwdg.de: mkdir -p /usr/lib/grass70/docs/man mkdir: cannot create directory '/usr/lib/grass70/docs/man': Permission denied make: *** [/usr/lib/grass70/docs/man] Error 1 ERROR: Compilation failed, sorry. Please check above error messages. I fixed this bug in r64534 (trunk only), after some testing I will backport it to relbr70. I will test again when the patch landed in relbr70 VERSION_NUMBER=7.0.0svn /usr/lib/grass70/tools/g.html2man.py /tmp/tmptZNptI/r.grow.shrink/docs/html/r.grow.shrink.html /tmp/tmptZNptI/r.grow.shrink/docs/man/man1/r.grow.shrink.1 /bin/sh: 1: /usr/lib/grass70/tools/g.html2man.py: not found make: *** [/tmp/tmptZNptI/r.grow.shrink/docs/man/man1/r.grow.shrink.1] Error 127 Right, `/usr/lib/grass70/tools/` contains `g.html2man`. This is probably related to the packaging, my local sample installation (make install from source code) contains `g.html2man.py` in the `tools` directory. weird g.html2man.py loses its '.py' but mkhtml.py stays untouched Any clue about the missing python module 'html' reported by g.html2man.py? Traceback (most recent call last): File /usr/lib/grass70/tools/g.html2man.py, line 4, in module from html import HTMLParser, HTMLParseError ImportError: No module named html cheers robert ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi Robert, On Tue, Feb 10, 2015 at 9:05 AM, Robert Nuske rnu...@gwdg.de wrote: Any clue about the missing python module 'html' reported by g.html2man.py? Traceback (most recent call last): File /usr/lib/grass70/tools/g.html2man.py, line 4, in module from html import HTMLParser, HTMLParseError ImportError: No module named html Which version of python are you using? Pietro ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi Pietro On Tue, Feb 10, 2015 at 9:05 AM, Robert Nuske rnu...@gwdg.de wrote: Any clue about the missing python module 'html' reported by g.html2man.py? Traceback (most recent call last): File /usr/lib/grass70/tools/g.html2man.py, line 4, in module from html import HTMLParser, HTMLParseError ImportError: No module named html Which version of python are you using? $ python --version Python 2.7.6 cheers robert ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi, 2015-02-09 18:34 GMT+01:00 Martin Landa landa.mar...@gmail.com: Right, `/usr/lib/grass70/tools/` contains `g.html2man`. This is probably related to the packaging, my local sample installation (make install from source code) contains `g.html2man.py` in the `tools` directory. it's here [1]. I am not sure why .py is removed (any Debian packager expert here?) Martin [1] http://bazaar.launchpad.net/~grass/grass/grass70_release_debian/view/head:/rules#L182 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] can not install addons with g.extension
Hi, 2015-02-09 16:10 GMT+01:00 Robert Nuske rnu...@gwdg.de: mkdir -p /usr/lib/grass70/docs/man mkdir: cannot create directory '/usr/lib/grass70/docs/man': Permission denied make: *** [/usr/lib/grass70/docs/man] Error 1 ERROR: Compilation failed, sorry. Please check above error messages. I fixed this bug in r64534 (trunk only), after some testing I will backport it to relbr70. VERSION_NUMBER=7.0.0svn /usr/lib/grass70/tools/g.html2man.py /tmp/tmptZNptI/r.grow.shrink/docs/html/r.grow.shrink.html /tmp/tmptZNptI/r.grow.shrink/docs/man/man1/r.grow.shrink.1 /bin/sh: 1: /usr/lib/grass70/tools/g.html2man.py: not found make: *** [/tmp/tmptZNptI/r.grow.shrink/docs/man/man1/r.grow.shrink.1] Error 127 Right, `/usr/lib/grass70/tools/` contains `g.html2man`. This is probably related to the packaging, my local sample installation (make install from source code) contains `g.html2man.py` in the `tools` directory. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user