[GRASS-dev] grass70 build error on Ubuntu raring

Hi,

I am getting compile error on Ubuntu raring for grass70.

From the short error log (see below) I think its python xml parse error. probably the new toolbox addition.

Full error log here [1]

7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/gui/wxpython/xml/module_items.xml
Traceback (most recent call last):
  File "tools/build_modules_xml.py", line 85, in <module>
    sys.exit(main())
  File "tools/build_modules_xml.py", line 77, in main
    header(fh)
  File "tools/build_modules_xml.py", line 64, in header
    (vInfo['version'].split('.')[0],
KeyError: 'version'
make[5]: *** [/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/gui/wxpython/xml/module_items.xml] Error 1
make[5]: Leaving directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
make[4]: [default] Error 2 (ignored)
/usr/bin/make xml/menudata.xml
make[5]: Entering directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
GISRC=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/demolocation/.grassrc70 GISBASE=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:$PATH" PYTHONPATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:" LC_ALL=C python core/toolboxes.py > xml/menudata.xml
Traceback (most recent call last):
  File "core/toolboxes.py", line 552, in <module>
    sys.exit(main())
  File "core/toolboxes.py", line 541, in main
    tree = toolboxes2menudata(userDefined=False)
  File "core/toolboxes.py", line 162, in toolboxes2menudata
    moduleItems = etree.parse(moduleItemsFile)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
    self._root = parser.close()
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: no element found: line 4, column 0
make[5]: *** [xml/menudata.xml] Error 1
make[5]: Leaving directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
make[4]: [default] Error 2 (ignored)
/usr/bin/make menustrings.py
make[5]: Entering directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
/usr/bin/install -c  -m 644 xml/menudata.xml /build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/gui/wxpython/xml/menudata.xml
GISRC=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/demolocation/.grassrc70 GISBASE=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:$PATH" PYTHONPATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:" LC_ALL=C python core/menutree.py >> menustrings.py
Traceback (most recent call last):
  File "core/menutree.py", line 227, in <module>
    menudata = LayerManagerMenuData(filename)
  File "/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython/lmgr/menudata.py", line 31, in __init__
    MenuTreeModelBuilder.__init__(self, filename)
  File "/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython/core/menutree.py", line 61, in __init__
    xmlTree = etree.parse(filename)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
    self._root = parser.close()
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
make[5]: *** [menustrings.py] Error 1
make[5]: Leaving directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
make[4]: [default] Error 2 (ignored)

[1] https://launchpadlibrarian.net/143289203/buildlog_ubuntu-raring-amd64.grass70_7.0.0%2B0ubuntu2%2B28653~raring1_FAILEDTOBUILD.txt.gz

Regards,
Rashad

On Mon, Jun 24, 2013 at 6:55 PM, Rashad M <mohammedrashadkm@gmail.com>wrote:

Hi,

I am getting compile error on Ubuntu raring for grass70.

From the short error log (see below) I think its python xml parse error.
probably the new toolbox addition.

Full error log here [1]

what does g.version -rge and python library function grass.version()
return? Because it seems that in the first part of the log grass.version()
fails.

Anna

7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/gui/wxpython/xml/module_items.xml
Traceback (most recent call last):
  File "tools/build_modules_xml.py", line 85, in <module>
    sys.exit(main())
  File "tools/build_modules_xml.py", line 77, in main
    header(fh)
  File "tools/build_modules_xml.py", line 64, in header
    (vInfo['version'].split('.')[0],
KeyError: 'version'
make[5]: *** [/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/gui/wxpython/xml/module_items.xml] Error 1
make[5]: Leaving directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
make[4]: [default] Error 2 (ignored)
/usr/bin/make xml/menudata.xml
make[5]: Entering directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
GISRC=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/demolocation/.grassrc70 GISBASE=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:$PATH" PYTHONPATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:" LC_ALL=C python core/toolboxes.py > xml/menudata.xml
Traceback (most recent call last):
  File "core/toolboxes.py", line 552, in <module>
    sys.exit(main())
  File "core/toolboxes.py", line 541, in main
    tree = toolboxes2menudata(userDefined=False)
  File "core/toolboxes.py", line 162, in toolboxes2menudata
    moduleItems = etree.parse(moduleItemsFile)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
    self._root = parser.close()
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: no element found: line 4, column 0
make[5]: *** [xml/menudata.xml] Error 1
make[5]: Leaving directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
make[4]: [default] Error 2 (ignored)
/usr/bin/make menustrings.py
make[5]: Entering directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
/usr/bin/install -c -m 644 xml/menudata.xml /build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/gui/wxpython/xml/menudata.xml
GISRC=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/demolocation/.grassrc70 GISBASE=/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:$PATH" PYTHONPATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/bin:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/dist.x86_64-pc-linux-gnu/lib:" LC_ALL=C python core/menutree.py >> menustrings.py
Traceback (most recent call last):
  File "core/menutree.py", line 227, in <module>
    menudata = LayerManagerMenuData(filename)
  File "/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython/lmgr/menudata.py", line 31, in __init__
    MenuTreeModelBuilder.__init__(self, filename)
  File "/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython/core/menutree.py", line 61, in __init__
    xmlTree = etree.parse(filename)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 657, in parse
    self._root = parser.close()
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1654, in close
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
make[5]: *** [menustrings.py] Error 1
make[5]: Leaving directory `/build/buildd/grass70-7.0.0+0ubuntu2+28653~raring1/gui/wxpython'
make[4]: [default] Error 2 (ignored)

[1]
https://launchpadlibrarian.net/143289203/buildlog_ubuntu-raring-amd64.grass70_7.0.0%2B0ubuntu2%2B28653~raring1_FAILEDTOBUILD.txt.gz
--
Regards,
   Rashad

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev