Opened 4 years ago

Closed 3 years ago

#2623 closed defect (wontfix)

GRASS won't start after creating addons

Reported by: ewcgrass Owned by: grass-dev@…
Priority: normal Milestone: 7.0.5
Component: Default Version: unspecified
Keywords: menu, toolboxes, addon, loading Cc:
CPU: Unspecified Platform: Unspecified


Having forced addons to install as per Ticket #2598 (still with grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015), GRASS fails to start, due to what appears to be an issue when creating menu items for the addons.

The terminal output is as follows:

Cleaning up temporary files...
Starting GRASS GIS...

          __________  ___   __________    _______________
         / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
        / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \ 
       / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ / 
       \____/_/ |_/_/  |_/____/____/   \____/___//____/  

Welcome to GRASS GIS 7.0.1svn (r64713)
GRASS GIS homepage:            
This version running through:            Bash Shell (/bin/bash)
Help is available with the command:      g.manual -i
See the licence terms with:              g.version -c
If required, restart the GUI with:       g.gui wxpython
When ready to quit enter:                exit

Launching <wxpython> GUI in the background, please wait...
GRASS 7.0.1svn (ns-nad83-utm-25m-10m):~ > Traceback (most recent call last):
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/", line 142, in <module>
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/", line 134, in main
    app = GMApp(workspaceFile)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/", line 49, in __init__
    wx.App.__init__(self, False)
  File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/", line 7981, in __init__
  File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/", line 7555, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/", line 83, in OnInit
    workspace = self.workspaceFile)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/lmgr/", line 121, in __init__
    self._moduleTreeBuilder = LayerManagerModuleTree()
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/lmgr/", line 62, in __init__
    MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/core/", line 66, in __init__
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/core/", line 280, in expandAddons
    _expandRuntimeModules(root, loadMetadata=True)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/core/", line 525, in _expandRuntimeModules
    desc, keywords = _loadMetadata(name)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/gui/wxpython/core/", line 558, in _loadMetadata
    task = gtask.parse_interface(module)
  File "/usr/local/grass7.0.1svn-x86_64-unknown-linux-gnu-21_02_2015/etc/python/grass/script/", line 509, in parse_interface
    tree = etree.fromstring(get_interface_description(name))
  File "/usr/lib64/python2.7/xml/etree/", line 1281, in XML
  File "/usr/lib64/python2.7/xml/etree/", line 1623, in feed
  File "/usr/lib64/python2.7/xml/etree/", line 1487, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 17, column 19

Changing the name of the ~/.grass7/addons/modules.xml file allows GRASS to start fine (but obviously with no addon menu items) and the addons appear to start fine also (i.e. their gui's are created when calling up addons at the terminal).

Attachments (1)

modules.xml (91.3 KB) - added by ewcgrass 4 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 4 years ago by wenzeslaus

Keywords: menu toolboxes addon loading added

I don't understand what is the environment? Do you have different non-English locale? Which addons you have installed? What if you uninstall all addons and install them again? How ~/.grass7/addons/modules.xml looks like? I don't know how to reproduce this error (it works fine for me in both trunk and release branch).

My ~/.grass7/addons/modules.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task SYSTEM "grass-addons.dtd">
<addons version="7">
    <task name="r.geomorphon">
        <description>Calculate geomorphons (terrain forms)and associated geometry using machine vision approach</description>
        <keywords>Geomorphons,Terrain patterns,Machine vision geomorphometry</keywords>
        <libgis revision="64733" />
    <task name="">
        <description>Import vector data using OGR library and reproject on the fly.</description>
        <libgis revision="64733" />

Can you please attach your ~/.grass7/addons/modules.xml?

Changed 4 years ago by ewcgrass

Attachment: modules.xml added

comment:2 Changed 4 years ago by ewcgrass

This is from Help-->about system:

GRASS version: 7.0.1svn                                                         
GRASS SVN Revision: 64713                                                       
Build Date: 2015-01-21                                                          
Build Platform: x86_64-unknown-linux-gnu                                        
GDAL/OGR: 1.6.3                                                                 
PROJ.4: 4.7.0                                                                   
GEOS: 3.2.0                                                                     
SQLite: 3.7.13                                                                  
Python: 2.7.0                                                                   
Platform: Linux-

(please note that the build date shown above is incorrect and should read 2015-02-21)

I have by process of elimination determined that it is the section of the $HOME/.grass7/addons/modules.xml file for "" addon that is causing grass to not start:

    <task name="">
        <libgis revision="64007" />

Removing this section from the file now allows grass to start. However, I see no menu items for any of the installed addons. Should there be menu items for the addons? And if so, where in the gui would I find them?

I have attached the $HOME/.grass7/modules.xml file that now allows grass to start.

comment:3 Changed 4 years ago by neteler


Ticket retargeted after 7.0.1 milestone closed

comment:4 Changed 4 years ago by martinl

I cannot reproduce this error on my PC. Is it still valid?

comment:5 Changed 4 years ago by neteler


Ticket retargeted after milestone closed

comment:6 Changed 3 years ago by neteler

Can you please try again with GRASS GIS 7.0.2 or later?

comment:7 Changed 3 years ago by neteler

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:8 Changed 3 years ago by neteler

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:9 Changed 3 years ago by neteler

Is this still an issue with the new 7.0.3?

comment:10 Changed 3 years ago by martinl


comment:11 Changed 3 years ago by martinl

Resolution: wontfix
Status: newclosed

No activity, closing, feel free to reopen if needed.

Note: See TracTickets for help on using tickets.