[GRASS-dev] [GRASS GIS] #3731: winGRASS7.7.svn python3 build issues

GRASS GIS trac at osgeo.org
Tue Jan 15 23:16:05 PST 2019


#3731: winGRASS7.7.svn python3 build issues
----------------------------+------------------------------------
  Reporter:  martinl        |      Owner:  grass-dev@…
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  7.8.0
 Component:  Python ctypes  |    Version:  svn-trunk
Resolution:                 |   Keywords:  wingrass, python3, py3
       CPU:  Unspecified    |   Platform:  Unspecified
----------------------------+------------------------------------

Comment (by martinl):

 Build no. 375 fails with new issues

 {{{
 Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\wxgui.py", line
 103, in OnInit
     workspace=self.workspaceFile)
   File "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\lmgr\frame.py",
 line 131, in __init__
     self._moduleTreeBuilder =
 LayerManagerModuleTree(message_handler=add_menu_error)
   File
 "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\lmgr\menudata.py", line
 69, in __init__
     message_handler=message_handler)
   File
 "C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\core\menutree.py", line
 72, in __init__
     xmlTree = etree.parse(filename)
   File "C:\OSGEO4~1\apps\Python37\lib\xml\etree\ElementTree.py", line
 1197, in parse
     tree.parse(source, parser)
   File "C:\OSGEO4~1\apps\Python37\lib\xml\etree\ElementTree.py", line 598,
 in parse
     self._root = parser._parse_whole(source)
 xml.etree.ElementTree.ParseError: no element found: line 1, column 0
 }}}

 Reason:
 `C:\OSGEO4~1\apps\grass\grass-7.7.svn\gui\wxpython\xml\module_tree_menudata.xml`
 is empty.

 Related traceback:

 {{{
 Traceback (most recent call last):
   File "core/toolboxes.py", line 914, in <module>
     sys.exit(main())
   File "core/toolboxes.py", line 898, in main
     userDefined=False)
   File "core/toolboxes.py", line 307, in createTree
     moduleItems=moduleItems)
   File "core/toolboxes.py", line 344, in toolboxes2menudata
     _expandRuntimeModules(root)
   File "core/toolboxes.py", line 645, in _expandRuntimeModules
     desc, keywords = _loadMetadata(name)
   File "core/toolboxes.py", line 682, in _loadMetadata
     task = gtask.parse_interface(module)
   File
 "C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\etc\python\grass\script\task.py",
 line 524, in parse_interface
     tree = etree.fromstring(get_interface_description(name))
   File
 "C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\etc\python\grass\script\task.py",
 line 476, in get_interface_description
     stderr=PIPE)
   File
 "C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\etc\python\grass\script\core.py",
 line 66, in __init__
     cmd = shutil_which(args[0])
   File
 "C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\etc\python\grass\script\core.py",
 line 222, in shutil_which
     if any(cmd.lower().endswith(ext) for ext in pathext):
   File
 "C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\etc\python\grass\script\core.py",
 line 222, in <genexpr>
     if any(cmd.lower().endswith(ext) for ext in pathext):
 TypeError: endswith first arg must be str or a tuple of str, not bytes
 Makefile:46: recipe for target 'xml/module_tree_menudata.xml' failed
 make[4]: *** [xml/module_tree_menudata.xml] Error 1
 }}}

 Seems to be related to r73930 (#3723)

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3731#comment:10>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list