[GRASS-user] Error when running a scrip in Windows-WinGRASS

M.Onur Kurum mokurum at ncsu.edu
Fri Oct 15 13:21:05 EDT 2010


  after installing pywin32 for python25, I get this error:

GRASS 7.0.svn> r.ipso.py
Traceback (most recent call last):
   File "C:\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py", line 
2253, in <module>
     task = grassTask(cmd[0])
   File "C:\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py", line 
371, in __init__
     processTask(tree = 
etree.fromstring(getInterfaceDescription(grassModule)),
   File "C:\Python25\lib\xml\etree\ElementTree.py", line 964, in XML
     return parser.close()
   File "C:\Python25\lib\xml\etree\ElementTree.py", line 1254, in close
     self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: no element found: line 1, column 0
GRASS 7.0.svn>



On 10/15/2010 12:13 AM, Glynn Clements wrote:
> M.Onur Kurum wrote:
>
>>    I completely removed the Python25 bundled with GRASS and changed the
>> startup bat file to not look for the bundled python so this is how it goes:
>>
>> C:\GRASS-70-SVN>set_shell_start_grass70svn.bat
>> Cleaning up temporary files...
>> Starting GRASS GIS...
>> Traceback (most recent call last):
>>     File "C:\GRASS-70-SVN\etc\gui\wxpython\gis_set.py", line 38, in<module>
>>       import gui_modules.goutput
>>     File "C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\goutput.py", line
>> 35, in<module>
>>       import gcmd
>>     File "C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\gcmd.py", line 44,
>> in<module>
>>       from win32file import ReadFile, WriteFile
>> ImportError: No module named win32file
> You need to install the pywin32 package.
>
> http://sourceforge.net/projects/pywin32/
>

-- 

M.Onur Kurum
Graduate Research Assistant
Dept. of Civil, Construction, and Environmental Engineering
North Carolina State University
Campus Box 7908
2501 Stinson Drive, 428 Mann Hall
Raleigh, NC  27695-7908
Office: (919) 515-1340
Mobile: (919) 200-0665
Email: mokurum at ncsu.edu
Email: m.onur.kurum at gmail.com

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


More information about the grass-user mailing list