<div dir="ltr"><div><br><br>On Wed, May 6, 2015 at 4:02 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br>><br>> On Wed, May 6, 2015 at 3:02 PM, Eric Patton <<a href="mailto:epatton@nrcan.gc.ca">epatton@nrcan.gc.ca</a>> wrote:<br>> ><br>> > Hi,<br>> ><br>> > I am using a fresh checkout of Grass 7.0.1 r65194, and it compiled with no errors<br>> > (error.log is empty).<br><br></div>In r65199 I added additional checks during compilation. An invalid XML should show up in the output in case it occurs.<br><br><a href="http://trac.osgeo.org/grass/changeset/65199">http://trac.osgeo.org/grass/changeset/65199</a><br><div><br>> > Machine details:<br>> ><br>> > uname -a Linux W5-DAR-EPATTON 3.13.0-24-generic #47-Ubuntu SMP Fri May 2<br>> > 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux<br>> ><br>> ><br>> > Traceback (most recent call last):<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/wxgui.py", line 142, in <module> sys.exit(main())<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/wxgui.py", line 134, in main app = GMApp(workspaceFile)<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/wxgui.py", line 49, in __init__ wx.App.__init__(self, False)<br>> > File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__ self._BootstrapApp()<br>> > File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs)<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/wxgui.py", line 83, in OnInit workspace = self.workspaceFile)<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/lmgr/frame.py", line 121, in __init__ self._moduleTreeBuilder = LayerManagerModuleTree()<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/lmgr/menudata.py", line 62, in __init__ MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/core/menutree.py", line 66, in __init__ expAddons(xmlTree)<br>> ><br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/core/toolboxes.py", line 346, in expandAddons _expandRuntimeModules(root, loadMetadata=True)<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/core/toolboxes.py", line 596, in _expandRuntimeModules desc, keywords = _loadMetadata(name)<br>> > File "/usr/local/grass-7.0.1svn/gui/wxpython/core/toolboxes.py", line 629, in _loadMetadata task = gtask.parse_interface(module)<br>> > File "/usr/local/grass-7.0.1svn/etc/python/grass/script/task.py", line 509, in parse_interface tree = etree.fromstring(get_interface_description(name))<br>> ><br>> > File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML parser.feed(text)<br>> > File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed self._raiseerror(v)<br>> > File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror raise err xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 17, column 19<br><br></div><div>Now I see that the error goes from grass.script.task.parse_interface (when called to get XML descriptions of modules installed from addons). I'm not sure why it is getting invalid XML from get_interface_description which itself seems to handle error well (return code and OSError are handled). I added an additional check to parse_interface in r65200.<br><br><a href="http://trac.osgeo.org/grass/changeset/65200">http://trac.osgeo.org/grass/changeset/65200</a><br></div><div><br>> > Any ideas on what is going wrong?<br><br></div><div>Now I think that some addon you have is not working properly. This might be caused just by switching between different version of GRASS GIS inside 7 series (e.g. release and build from source code).<br></div><div><br>If the fix is correct, now a message should appear in the command line during start instead of the traceback. It will say that it is caused by addons and you should rebuild the addons using g.extension.all -f but you should first try the fix before running the command (it would be great if you could in this way test the fix). Note the changes are only in trunk.<br></div><div><br></div><div>I hope this helps,<br></div><div>Vaclav<br></div><div><br>> Please do lsb_release -a.<br>><br>> Then check if there is something in ~/.grass7/toolboxes/. (There could be something in case you experimented with toolboxes.)<br>><br>> Also look back in the compilation output you will find there section where there are some compilations of gui/wxpython code to .pyc. Then there should be parts which are comping toolboxes. Compilation holds there for a while with line ending with something like module_items.xml. Checking this might be useful in case there is something which should be an error but it is not.<br>><br>> I don't have better idea now (I just checked release branch and it works for me).<br>><br>> Vaclav<br>><br>> > ~ Eric.<br>> > _______________________________________________<br>> > grass-dev mailing list<br>> > <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>> > <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>><br></div></div>