[GRASS-dev] GRASS 7: r.in.wms compile failure - ImportError: cannot import name log

Markus Neteler neteler at osgeo.org
Mon Jun 1 04:30:24 EDT 2009


Hi,

some issue:

[neteler at host550 r.in.wms]$ make
if [ "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/r.in.wms"
!= "" ] ; then 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:$PATH"
PYTHONPATH="/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:"
LC_ALL=C /home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/r.in.wms
--html-description < /dev/null | grep -v '</body>\|</html>' >
r.in.wms.tmp.html ; fi
Traceback (most recent call last):
  File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/r.in.wms",
line 176, in <module>
    import tempfile
  File "/usr/lib64/python2.6/tempfile.py", line 34, in <module>
    from random import Random as _Random
  File "/usr/lib64/python2.6/random.py", line 45, in <module>
    from math import log as _log, exp as _exp, pi as _pi, e as _e,
ceil as _ceil
ImportError: cannot import name log
make: *** [r.in.wms.tmp.html] Error 1

Closest discussion seems to be this:
http://ubuntuforums.org/archive/index.php/t-897043.html

but no idea how to solve it...

Markus


More information about the grass-dev mailing list