[GRASS-user] python module under wingrass7

gianluca.massei g_massa at libero.it
Mon Dec 13 18:34:47 EST 2010


I've repeated all the procedure [0] and now I've this error when I run 
my module:

/import grass.script as grass
Traceback (most recente call last):
File "(stdin)", line 1, in (module)
ImportError: No module named grass.script/

I  run Python from MSYS and I try:

/import grass.script as grass

/ and I get the same error  message/
/


[0]http://www.mail-archive.com/grass-user@lists.osgeo.org/msg16242.html


Il 13/12/2010 23.59, gianluca.massei ha scritto:
>
> Hy,
> I'm using  Grass installer and I've set GISBASE in my system path. 
> I've tried this procedure without any  results:
> http://www.mail-archive.com/grass-user@lists.osgeo.org/msg16242.html
>
> Thanks for your help
>
>
> Il 13/12/2010 23.50, Alex Mandel ha scritto:
>> On 12/13/2010 02:28 PM, gianluca.massei wrote:
>>> Well, excuse me if I was not clear in previous message. I'll try to
>>> give  more info:
>>> In grass 7 for linux my python module works fine. In wingrass70 I've
>>> copied my module in %GISSBASE%/scripts but it doesn't works.
>>> I get that message:
>>> c:\Progrm Files\GRASS-70-SVN\extralibin\python.exe: can't open file
>>> '%GISBASE%/scripts/r.mcda.roughset.py':[Errno 2] No such file or 
>>> directory'
>>> I've read some precedent post but the suggest solutions works for 6.4
>>> and in 7.0 I've the same problem.
>>>
>>> Thanks
>>>
>>>
>>>
>>> Il 11/12/2010 20.24, gianluca.massei ha scritto:
>>>> I've wrote a simple python module working in grass 7 under linux (It's
>>>> only one file). Could anyone help me how can I try it under wingrass
>>>> 7? Is not clear for me the install  procedure for python module.
>>>> thanks in advance.
>> Are you sure that GISSBASE is defined in your system paths? Also are you
>> using the GRASS installer or the OSGeo4w installer, the OSGeo4w contains
>> a shell that ensures all those paths work as they should, not sure about
>> the regular GRASS installer.
>>
>> What solution did you see for 6.4? Did you try it and did it not work?
>>
>> Thanks,
>> Alex
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>>
>> -----
>> Nessun virus nel messaggio.
>> Controllato da AVG - www.avg.com
>> Versione: 10.0.1170 / Database dei virus: 426/3313 -  Data di 
>> rilascio: 13/12/2010
>>
>>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
> -----
> Nessun virus nel messaggio.
> Controllato da AVG - www.avg.com
> Versione: 10.0.1170 / Database dei virus: 426/3313 -  Data di 
> rilascio: 13/12/2010
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101214/51c8aaf7/attachment.html


More information about the grass-user mailing list