[GRASS-user] grass-7.9 does not find numpy

Markus Metz markus.metz.giswork at gmail.com
Thu Aug 15 11:51:21 PDT 2019


On Thu, Aug 15, 2019 at 8:12 PM Rich Shepard <rshepard at appl-ecosys.com>
wrote:
>
> Starting grass-7.9 in a new location and mapset fails:
>
> 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/local/grass79/gui/wxpython/wxgui.py", line 172, in <module>
>      sys.exit(main())
>    File "/usr/local/grass79/gui/wxpython/wxgui.py", line 159, in main
>      app = GMApp(workspaceFile)
>    File "/usr/local/grass79/gui/wxpython/wxgui.py", line 53, in __init__
>      wx.App.__init__(self, False)
>    File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
line 8628, in __init__
>      self._BootstrapApp()
>    File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
line 8196, in _BootstrapApp
>      return _core_.PyApp__BootstrapApp(*args, **kwargs)
>    File "/usr/local/grass79/gui/wxpython/wxgui.py", line 104, in OnInit
>      from lmgr.frame import GMFrame
>    File "/usr/local/grass79/gui/wxpython/lmgr/frame.py", line 51, in
<module>
>      from lmgr.layertree import LayerTree, LMIcons
>    File "/usr/local/grass79/gui/wxpython/lmgr/layertree.py", line 40, in
<module>
>      from wxplot.histogram import HistogramPlotFrame
>    File "/usr/local/grass79/gui/wxpython/wxplot/histogram.py", line 23,
in <module>
>      import gui_core.wxlibplot as plot
>    File "/usr/local/grass79/gui/wxpython/gui_core/wxlibplot.py", line
121, in <module>
>      import numpy as np
> ImportError: No module named numpy
>
> Numpy is installed (by pip) in /usr/lib64/python3.7/site-packages/.

but the gui is looking in /usr/lib64/python2.7/site-packages/

-> wrong python version

make sure wxpython for python3 is installed, make distclean, configure, make

HTH,

Markus M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190815/c9346821/attachment.html>


More information about the grass-user mailing list