[GRASS-user] Error in pansharp tool: missing grass.script

Vaclav Petras wenzeslaus at gmail.com
Thu Jun 25 06:15:09 PDT 2015


On Thu, Jun 25, 2015 at 2:58 AM, Andrea Peri <aperi2007 at gmail.com> wrote:

>
> inside grass:
>
> python -c "import grass.script as grass"
> (no error)
>
> python -c "import grass"
> (no error)
>

I don't understand why it should be different when called from script.


> python -c "import sys; print(sys.path)"
> ['',
> '/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg',
> '/usr/local/grass-7.0.0/etc/python',
> '/usr/local/grass-7.0.0/gui/wxpython', '/usr/lib/python2.7',
> '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
> '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
> '/usr/local/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages/PIL',
> '/usr/lib/pymodules/python2.7',
> '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']


I also don't see any problem. I is possible that `python` is something else
then `/usr/bin/evn/python`?

/usr/bin/env python -c "import sys; print(sys.path)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150625/3e79868a/attachment.html>


More information about the grass-user mailing list