#2009: thumbnails.py failure
-------------------------------+--------------------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: r.colors v.colors | Platform: All
Cpu: Unspecified |
-------------------------------+--------------------------------------------
thumbnails.py has two problems:
{{{
make thumbnails
make[1]: Entering directory `/home/neteler/grass70/vector/v.colors'
GISRC=/home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/demolocation/.grassrc70 GISBASE=/home/neteler/grass70/dist.x86_64
-unknown-linux-gnu PATH="/home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/bin:/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/bin:$PATH"
PYTHONPATH="/home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/etc/python:/home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/etc/python:$PYTHONPATH"
LD_LIBRARY_PATH="/home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/bin:/home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/lib:/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/lib:" LC_ALL=C
./thumbnails.py
Traceback (most recent call last):
File "./thumbnails.py", line 188, in <module>
main()
File "./thumbnails.py", line 179, in main
grad = make_gradient(path)
File "./thumbnails.py", line 121, in make_gradient
maxval = float(records[-1][0])
ValueError: could not convert string to float: default
make[1]: [thumbnails] Error 1 (ignored)
make[1]: Leaving directory `/home/neteler/grass70/vector/v.colors'
VERSION_NUMBER=7.0.svn VERSION_DATE=2013 \
python /home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/tools/mkhtml.py v.colors > /home/neteler/grass70/dist.x86_64-unknown-
linux-gnu/docs/html/v.colors.html
VERSION_NUMBER=7.0.svn /home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/tools/g.html2man.py /home/neteler/grass70/dist.x86_64-unknown-linux-
gnu/docs/html/v.colors.html /home/neteler/grass70/dist.x86_64-unknown-
linux-gnu/docs/man/man1/v.colors.1
rm v.colors.tmp.html
[neteler@oboe v.colors]$
}}}
The problem is the (valid) "default" here:
{{{
grep default lib/gis/colors/*
lib/gis/colors/srtm_plus:default 255:255:255
}}}
which needs to be blacklisted (or whatever, since "nv" is accepted)
in these Python scripts:
{{{
raster/r.colors/thumbnails.py
vector/v.colors/thumbnails.py
}}}
----
Second issue: even if deleting the offending line locally,
nothing is really produced. How should it work? I expected
to see an enriched HTML manual.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2009>
GRASS GIS <http://grass.osgeo.org>