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
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to