[GRASS-user] python module under wingrass7
gianluca.massei
g_massa at libero.it
Tue Dec 14 13:22:07 EST 2010
well, may be I'm very boring... but I can't solve my problem!
Now if I run my script I get this message:
GRASS 7.0.svn> r.mcda.roughset.py
Traceback (most recent call last):
File "C:\Program
Files\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py",
line 2383, in <module>
task = grassTask(cmd[0])
File "C:\Program
Files\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py",
line 394, in __init__
processTask(tree =
etree.fromstring(getInterfaceDescription(grassModule)),
File "C:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py", line
964, in XML
return parser.close()
File "C:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py", line
1254, in cl
ose
self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: no element found: line 1, column 0
GRASS 7.0.svn>
Il 14/12/2010 0.34, gianluca.massei ha scritto:
> 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
>>
>>
>
>
> _______________________________________________
> 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 <http://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/69c66605/attachment.html
More information about the grass-user
mailing list