<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
well, may be I'm very boring... but I can't solve my problem!<br>
Now if I run my script I get this message:<br>
<br>
GRASS 7.0.svn> r.mcda.roughset.py<br>
Traceback (most recent call last):<br>
File "C:\Program
Files\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py",<br>
line 2383, in <module><br>
task = grassTask(cmd[0])<br>
File "C:\Program
Files\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py",<br>
line 394, in __init__<br>
processTask(tree =
etree.fromstring(getInterfaceDescription(grassModule)),<br>
File "C:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py", line
964, in XML<br>
<br>
return parser.close()<br>
File "C:\OSGeo4W\apps\Python25\lib\xml\etree\ElementTree.py", line
1254, in cl<br>
ose<br>
self._parser.Parse("", 1) # end of data<br>
xml.parsers.expat.ExpatError: no element found: line 1, column 0<br>
GRASS 7.0.svn><br>
<br>
Il 14/12/2010 0.34, gianluca.massei ha scritto:
<blockquote cite="mid:4D06AD97.90209@libero.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I've repeated all the procedure [0] and now I've this error when I
run my module:<br>
<br>
<i>import grass.script as grass<br>
Traceback (most recente call last):<br>
File "(stdin)", line 1, in (module)<br>
ImportError: No module named grass.script</i><br>
<br>
I run Python from MSYS and I try:<br>
<br>
<i>import grass.script as grass<br>
<br>
</i> and I get the same error message<i><br>
</i><br>
<br>
<br>
[0]<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.mail-archive.com/grass-user@lists.osgeo.org/msg16242.html">http://www.mail-archive.com/grass-user@lists.osgeo.org/msg16242.html</a>
<br>
<br>
<br>
Il 13/12/2010 23.59, gianluca.massei ha scritto:
<blockquote cite="mid:4D06A566.3040309@libero.it" type="cite"> <br>
Hy, <br>
I'm using Grass installer and I've set GISBASE in my system
path. I've tried this procedure without any results: <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.mail-archive.com/grass-user@lists.osgeo.org/msg16242.html">http://www.mail-archive.com/grass-user@lists.osgeo.org/msg16242.html</a>
<br>
<br>
Thanks for your help <br>
<br>
<br>
Il 13/12/2010 23.50, Alex Mandel ha scritto: <br>
<blockquote type="cite">On 12/13/2010 02:28 PM, gianluca.massei
wrote: <br>
<blockquote type="cite">Well, excuse me if I was not clear in
previous message. I'll try to <br>
give more info: <br>
In grass 7 for linux my python module works fine. In
wingrass70 I've <br>
copied my module in %GISSBASE%/scripts but it doesn't works.
<br>
I get that message: <br>
c:\Progrm Files\GRASS-70-SVN\extralibin\python.exe: can't
open file <br>
'%GISBASE%/scripts/r.mcda.roughset.py':[Errno 2] No such
file or directory' <br>
I've read some precedent post but the suggest solutions
works for 6.4 <br>
and in 7.0 I've the same problem. <br>
<br>
Thanks <br>
<br>
<br>
<br>
Il 11/12/2010 20.24, gianluca.massei ha scritto: <br>
<blockquote type="cite">I've wrote a simple python module
working in grass 7 under linux (It's <br>
only one file). Could anyone help me how can I try it
under wingrass <br>
7? Is not clear for me the install procedure for python
module. <br>
thanks in advance. <br>
</blockquote>
</blockquote>
Are you sure that GISSBASE is defined in your system paths?
Also are you <br>
using the GRASS installer or the OSGeo4w installer, the
OSGeo4w contains <br>
a shell that ensures all those paths work as they should, not
sure about <br>
the regular GRASS installer. <br>
<br>
What solution did you see for 6.4? Did you try it and did it
not work? <br>
<br>
Thanks, <br>
Alex <br>
<br>
_______________________________________________ <br>
grass-user mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
<br>
<br>
<br>
----- <br>
Nessun virus nel messaggio. <br>
Controllato da AVG - <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
<br>
Versione: 10.0.1170 / Database dei virus: 426/3313 - Data di
rilascio: 13/12/2010 <br>
<br>
<br>
</blockquote>
<br>
_______________________________________________ <br>
grass-user mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
<br>
<br>
<br>
----- <br>
Nessun virus nel messaggio. <br>
Controllato da AVG - <a moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
<br>
Versione: 10.0.1170 / Database dei virus: 426/3313 - Data di
rilascio: 13/12/2010 <br>
<br>
<br>
</blockquote>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="avgcert" color="#000000" align="left">Nessun virus nel
messaggio.<br>
Controllato da AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Versione: 10.0.1170 / Database dei virus: 426/3313 - Data di
rilascio: 13/12/2010</p>
</blockquote>
<br>
</body>
</html>