[GRASS-dev] [GRASS-SVN] r60679 - grass/trunk/lib/python/script
Martin Landa
landa.martin at gmail.com
Wed Jul 2 07:39:48 PDT 2014
2014-07-02 1:10 GMT+02:00 Glynn Clements <glynn at gclements.plus.com>:
> Does anyone want to test the attached patch?
I have locally applied the patch on the build server, result is
`r61114M-1010` [1], GRASS starts (welcome screen), unfortunately wxGUI
fails with
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\wxgui.py", line 138,
n <module>
sys.exit(main())
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\wxgui.py", line 131,
n main
app = GMApp(workspaceFile)
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\wxgui.py", line 45, i
__init__
wx.App.__init__(self, False)
File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core
py", line 7981, in __init__
self._BootstrapApp()
File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core
py", line 7555, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\wxgui.py", line 79, i
OnInit
workspace = self.workspaceFile)
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\lmgr\frame.py", line
19, in __init__
self._menuTreeBuilder = LayerManagerMenuData()
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\lmgr\menudata.py", li
e 40, in __init__
MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)
File "C:\OSGEO4~1\apps\grass\grass-7.1.svn\gui\wxpython\core\menutree.py", li
e 64, in __init__
xmlTree = etree.parse(filename)
File "C:\OSGEO4~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1182, in
arse
tree.parse(source, parser)
File "C:\OSGEO4~1\apps\Python27\lib\xml\etree\ElementTree.py", line 657, in p
rse
self._root = parser.close()
File "C:\OSGEO4~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1654, in
lose
self._raiseerror(v)
File "C:\OSGEO4~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1506, in
raiseerror
raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
The reason is empty XML wxGUI menu file (menudata.xml) produced by
building system, see [2].
Traceback (most recent call last):
File "core/toolboxes.py", line 759, in <module>
sys.exit(main())
File "core/toolboxes.py", line 745, in main
userDefined=False)
File "core/toolboxes.py", line 204, in createTree
moduleItems=moduleItems)
File "core/toolboxes.py", line 241, in toolboxes2menudata
_expandRuntimeModules(root)
File "core/toolboxes.py", line 514, in _expandRuntimeModules
desc, keywords = _loadMetadata(name)
File "core/toolboxes.py", line 540, in _loadMetadata
task = gtask.parse_interface(module)
File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-mingw32\etc\python\grass\script\task.py",
line 501, in parse_interface
tree = etree.fromstring(get_interface_description(name))
File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-mingw32\etc\python\grass\script\task.py",
line 465, in get_interface_description
stderr = PIPE)
File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-mingw32\etc\python\grass\script\core.py",
line 58, in __init__
name, ext = os.path.splitext(cmd)
File "c:/OSGeo4W/apps/Python27\lib\ntpath.py", line 190, in splitext
return genericpath._splitext(p, sep, altsep, extsep)
File "c:/OSGeo4W/apps/Python27\lib\genericpath.py", line 91, in _splitext
sepIndex = p.rfind(sep)
AttributeError: 'NoneType' object has no attribute 'rfind'
make[4]: *** [xml/menudata.xml] Error 1
Martin
[1] http://wingrass.fsv.cvut.cz/grass71/
[2] http://wingrass.fsv.cvut.cz/grass71/logs/log-r61114-1010/package.log
--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
More information about the grass-dev
mailing list