[GRASS-dev] [GRASS GIS] #3253: Main GUI fails to start when g.extension fails when fetching the addons

GRASS GIS trac at osgeo.org
Wed Jan 11 11:17:36 PST 2017


#3253: Main GUI fails to start when g.extension fails when fetching the addons
-------------------------------------------------+-------------------------
 Reporter:  wenzeslaus                           |      Owner:  grass-dev@…
     Type:  defect                               |     Status:  new
 Priority:  normal                               |  Milestone:  7.2.1
Component:  wxGUI                                |    Version:  svn-
 Keywords:  toolboxes, g.extension, startup,     |  releasebranch72
  addons                                         |        CPU:  Unspecified
 Platform:  Unspecified                          |
-------------------------------------------------+-------------------------
 The GUI fails to start when `g.extension` fails during ''Addons'' toolbox
 creation in `core/toolboxes.py`. GUI should continue just with an empty
 ''Addons'' toolbox.

 After hitting OK, there is no further error or window visible. It does not
 matter what if it is during GRASS start or with `g.gui` with or without
 `-f`, same for 72 branch and trunk.

 This is the error message in a dialog. The `g.extension` error is in the
 command line which is not ideal because it should be at the same place as
 the traceback.

 {{{
 List of addons cannot be obtained because g.extension failed.

 Reason: Process ended with non-zero return code 1. See errors in the
 (error) output.

 Traceback (most recent call last):
   File ".../gui/wxpython/core/toolboxes.py", line 507, in _getAddons
     output = gcore.read_command('g.extension', quiet=True,
 flags='qwertyuiopag')
   File ".../etc/python/grass/script/core.py", line 474, in read_command
     return handle_errors(returncode, stdout, args, kwargs)
   File ".../etc/python/grass/script/core.py", line 330, in handle_errors
     returncode=returncode)
 CalledModuleError: Module run None ['g.extension', '--q', '-qwertyuiopag']
 ended with error
 Process ended with non-zero return code 1. See errors in the (error)
 output.
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3253>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list