[GRASS-dev] [GRASS-user] can not install addons with g.extension

Robert Nuske rnuske at gwdg.de
Wed Feb 18 02:09:34 PST 2015


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


More information about the grass-dev mailing list