Dear dev-list,
I’ve got an Ubuntu 12.04 workstation on which I have been experimenting with python for scientific computing (e.g., ipython notebook, spyder, etc.). During this process, I experimented with a lot of different python modules, installed variously with apt-get or with pip. Before this experimentation, GRASS 6.4.3-1 (from Ubuntu GIS-unstable PPA) was working just fine, but now I am getting the following error upon start of GRASS:
wxnviz.py: This module requires the NumPy module, which could not be imported. It probably is not installed (it’s not part of the standard Python distribution). See the Numeric Python site (http://numpy.scipy.org) for information on downloading source or binaries.
Traceback (most recent call last):
File “/usr/lib/grass64/etc/wxpython/wxgui.py”, line 34, in
from lmgr.frame import GMFrame
File “/usr/lib/grass64/etc/wxpython/lmgr/frame.py”, line 46, in
from lmgr.layertree import LayerTree, LMIcons
File “/usr/lib/grass64/etc/wxpython/lmgr/layertree.py”, line 37, in
from mapdisp.frame import MapFrame
File “/usr/lib/grass64/etc/wxpython/mapdisp/frame.py”, line 52, in
from wxplot.profile import ProfileFrame
File “/usr/lib/grass64/etc/wxpython/wxplot/profile.py”, line 23, in
import wx.lib.plot as plot
File “/usr/lib64/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/plot.py”, line 523, in
class PlotCanvas(wx.Panel):
File “/usr/lib64/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/plot.py”, line 1817, in PlotCanvas
_multiples = [(2., _Numeric.log10(2.)), (5., _Numeric.log10(5.))]
AttributeError: ‘module’ object has no attribute ‘log10’
Obviously, this is an issue with only the wxpython interface (cli still works, as does old tcltk interface), and although the error stems from wxNVIZ, I think it is due to GRASS being confused about where to find NumPy… I’ve tried to “clean up” my python installs, including reinstalling both python 2.6 and 2.7, NumPy, SciPy, and wxWidgets (both 2.6 and 2.7). I’ve also reinstalled GRASS (and tried the older version of 6.4 in the standard Ubuntu repository), but this error still stands. Any ideas about what I can do to fix it?
Many thanks for any help offered!
Isaac I Ullah, Ph.D.
isaac.ullah@asu.edu
ullah@archaeologist.com
http://www.public.asu.edu/~iullah