[GRASS-user] grass73: python module name issue

Rich Shepard rshepard at appl-ecosys.com
Wed Sep 7 08:52:16 PDT 2016


On Wed, 7 Sep 2016, Vaclav Petras wrote:

> I suppose this means no output. No traceback means that it works. So numpy
> works in the GRASS GIS session and it works outside.

Vaclav,

   Correct.

> OK, still no clues for me. Can you run the GUI (what you get when you start
> or/and g.gui from command line - there should be no difference but you can
> check), switch to Python tab and execute:
>
> import sys
> print (sys.path)
> print (sys.version)
> import numpy

   Cannot copy from the tab window to here. See attached .png.

> Also, you can check which Python version is used in the command line:
> python --version

$ python --version
Python 2.7.5

> Finally, you can try to find where numpy actually is and compare it with
> what sys.path is saying.

/usr/lib/python2.7/site-packages/numpy

   It seems that sys.path is not picking up this package. Interesting.

HTH,

Rich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grass73-python-tab.png
Type: image/png
Size: 69925 bytes
Desc: 
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160907/81fe6f2d/attachment-0001.png>


More information about the grass-user mailing list