[GRASS-dev] Re: [GRASS-windows] compiling WINGrass Python Scripts - ExpatError

Glynn Clements glynn at gclements.plus.com
Mon Dec 5 11:52:24 EST 2011


Johannes Radinger wrote:

> self._parser.Parse("", 1) # end of data
> xml.parsers.expat
> .
> ExpatError
> :
> no element found: line 1, column 0
> ''''''''''''''''''''''''''''
> 
> I don't know what that exactly means?? I tried to compile the script
> with two different line endings (UNIX coding and Windows coding) but
> with similar result. So I don't know what is causing the problem!!

It means that it tried to generate a wxPython GUI for the options, the
code which generates the GUI executed the command with the
--interface-description flag to get a list of the options in XML
format, then passed the output to the Expat XML parser. Unfortunately,
the command failed to execute, so no XML was generated, and Expat
complains about not receiving valid XML.

IOW, the error message is accurate but quite useless. To get useful
information, you'll need to run the script manually from the command
line. Try running it with the --help option initially.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list