[GRASS-dev] GRASS 7: r.in.wms compile failure - ImportError:
cannot import name log
Glynn Clements
glynn at gclements.plus.com
Tue Jun 2 04:17:57 EDT 2009
Markus Neteler wrote:
> [neteler at host550 r.in.wms]$ make
> 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...
I can't reproduce this, but I would guess that you have GRASS' math.py
in sys.path.
Check that $PYTHONPATH doesn't contain any inappropriate directories,
and that dist.x86_64-unknown-linux-gnu/etc/python doesn't contain
anything except the grass subdirectory.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list