[GRASS-dev] [GRASS GIS] #2326: Command functions in grass.script.core miss a correct error reporting

GRASS GIS trac at osgeo.org
Wed Nov 5 02:48:01 PST 2014


#2326: Command functions in grass.script.core miss a correct error reporting
--------------------------------+-------------------------------------------
 Reporter:  wenzeslaus          |       Owner:  grass-dev@…              
     Type:  enhancement         |      Status:  new                      
 Priority:  major               |   Milestone:  7.1.0                    
Component:  Python              |     Version:  svn-trunk                
 Keywords:  script, exceptions  |    Platform:  All                      
      Cpu:  Unspecified         |  
--------------------------------+-------------------------------------------

Comment(by neteler):

 The vector network toolbox seems to lack some related update (trunk from
 4th of Nov 2014). We tried to run v.net.alloc therein on roads_major:

 {{{
 Traceback (most recent call last):
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/lmgr/frame.py", line 788, in
 OnVNet

 self.GetMapDisplay().OnVNet(event)
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/mapdisp/frame.py", line
 1420, in OnVNet

 self.dialogs['vnet'] = VNETDialog(parent=self,
 giface=self._giface)
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/vnet/dialogs.py", line 134,
 in __init__

 self._createInputDbMgrPage()
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/vnet/dialogs.py", line 448,
 in _createInputDbMgrPage

 self.inpDbMgrData['dbMgr'] = DbMgrBase()
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/dbmgr/base.py", line 669, in
 __init__

 self.dbMgrData['mapDBInfo'] =
 VectorDBInfo(self.dbMgrData['vectName'])
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/dbmgr/vinfo.py", line 74, in
 __init__

 VectorDBInfoBase.__init__(self, map)
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/gui_core/gselect.py", line
 723, in __init__

 if not self._CheckDBConnection(): # -> self.layers
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/gui/wxpython/gui_core/gselect.py", line
 731, in _CheckDBConnection

 self.layers = grass.vector_db(map = self.map, stderr =
 nuldev)
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/python/grass/script/vector.py", line
 42, in vector_db

 **args)
   File "/home/matteo/software/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/python/grass/script/core.py", line
 420, in read_command

 returncode=returncode)
 grass.exceptions
 .
 CalledModuleError
 :
 Module run None v.db.connect --q -g stderr=<open file
 '/dev/null', mode 'w+' at 0x7ffac45d8f60> sep=; ended with
 error
 Process ended with non-zero return code 1. See errors in the
 (error) output.
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2326#comment:27>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list