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

Andrea Peri aperi2007 at gmail.com
Wed Jun 24 06:18:05 PDT 2015


Hi Vaclav,
thx for help.

I have no problem to try your patch,

If I understand , I should remove the
env var PYTHONPATH and return to previous situation before try your patch ?

A.


2015-06-24 15:12 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
>
>
> On Wed, Jun 24, 2015 at 9:07 AM, Andrea Peri <aperi2007 at gmail.com> wrote:
>>
>> Hi,
>> I resolved.
>> It was due to a missing env var
>>
>>   export PYTHONPATH=/usr/local/grass-7.0.0/etc/python
>
>
> I still think it is an issue. Actually two issues. Your distribution does
> not give the right Python to GRASS GIS and GRASS GIS does not work with the
> version it was provied probably just because the strange import "import A.B
> as A". Please see the previous email.
>
> Vaclav
>
>> in my settings.
>>
>> Regards,
>> A.
>>
>>
>> 2015-06-24 13:03 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
>> > Hi to all,
>> >
>> > using the pansharp tool I have this error:
>> >
>> > Traceback (most recent call last):
>> >   File "/usr/local/grass-7.0.0/scripts/i.pansharpen", line 91, in
>> > <module>
>> >     import grass.script as grass
>> > ImportError: No module named grass.script
>> > Traceback (most recent call last):
>> >   File "/usr/local/grass-7.0.0/scripts/i.pansharpen", line 91, in
>> > <module>
>> >     import grass.script as grass
>> > ImportError: No module named grass.script
>> > Traceback (most recent call last):
>> >   File "/usr/local/grass-7.0.0/scripts/i.pansharpen", line 91, in
>> > <module>
>> >     import grass.script as grass
>> > ImportError: No module named grass.script
>> >
>> > I guess this is an issue.
>> > If confirmed I could open a ticket.
>> >
>> > Many thx.
>> >
>> > --
>> > -----------------
>> > Andrea Peri
>> > . . . . . . . . .
>> > qwerty àèìòù
>> > -----------------
>>
>>
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -----------------
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the grass-user mailing list