[GRASS-dev] error in pygrass

when I work with GRASS GIS I got following error
“No module named pygrass.modules.shortcuts”

Help me to solve it
Thanks


Niroshan Sanjaya

P Save a Tree.Please consider the environment before printing this email

Hi Niroshan,

On Wed, Aug 27, 2014 at 11:43 AM, Niroshan Sanjaya <nsanj88@gmail.com> wrote:

when I work with GRASS GIS I got following error
"No module named pygrass.modules.shortcuts"

Can you provide a bit more of code or some more information about your
workflow? What do you do? are you programming in python? are you using
a shell or the gui?

I suspect that is missing grass, the following line is working on my pc:

from grass.pygrass.modules.shortcuts import raster as r

Pietro

Please keep the conversation on the mailing-list.

On Wed, Aug 27, 2014 at 12:00 PM, Niroshan Sanjaya <nsanj88@gmail.com> wrote:

Yes I do programming on GRASS python shell, then I tried with terminal then
I got the same error.

I used the following codes
from grass.pygrass.modules.shortcuts import raster as r
from grass.pygrass.modules.shortcuts import imagery as i

I believe that you are using grass6.*, and unfortunately the pygrass
modules is available only on grass7.*

Let me know.

Pietro

oohh…!! I was using GRASS 7, when I checked it now it shows Version 6.4.3
Thank you very much I will reinstall 7

···

On Wed, Aug 27, 2014 at 3:45 PM, Pietro <peter.zamb@gmail.com> wrote:

Please keep the conversation on the mailing-list.

On Wed, Aug 27, 2014 at 12:00 PM, Niroshan Sanjaya <nsanj88@gmail.com> wrote:

Yes I do programming on GRASS python shell, then I tried with terminal then
I got the same error.

I used the following codes
from grass.pygrass.modules.shortcuts import raster as r
from grass.pygrass.modules.shortcuts import imagery as i

I believe that you are using grass6., and unfortunately the pygrass
modules is available only on grass7.

Let me know.

Pietro


Niroshan Sanjaya

P Save a Tree.Please consider the environment before printing this email