[GRASS-dev] [GRASS GIS] #2008: grass.script's find_program() can't find modules

GRASS GIS trac at osgeo.org
Wed Jun 19 04:53:04 PDT 2013


#2008: grass.script's find_program() can't find modules
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  grass-dev@…              
      Type:  defect    |      Status:  reopened                 
  Priority:  critical  |   Milestone:  6.4.4                    
 Component:  Python    |     Version:  svn-releasebranch64      
Resolution:            |    Keywords:  find_program()           
  Platform:  All       |         Cpu:  x86-64                   
-----------------------+----------------------------------------------------
Changes (by neteler):

  * priority:  normal => critical
  * platform:  Linux => All
  * status:  closed => reopened
  * resolution:  invalid =>


Comment:

 Replying to [comment:1 hamish]:
 > actually it works, what I was missing what that the argument needed to
 be in [square] brackets.

 For me that fails even after make distclean:

 {{{
 Welcome to wxGUI Interactive Python Shell 0.9.8

 Type "help(grass)" for more GRASS scripting related information.
 Type "AddLayer()" to add raster or vector to the layer tree.

 Python 2.7.3 (default, Aug  9 2012, 17:23:57)
 [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.

 import grass.script as grass
 grass.find_program('r.sun,', ['help'])
 False
 grass.version()
 {'build_date': '2013-05-19', 'proj4': '4.8.0', 'geos': '', 'sqlite':
 '3.7.13', 'libgis_revision': '56211', 'libgis_date': '2013-05-12 13:07:51
 +0200 (Sun, 12 May 2013)', 'version': '7.0.svn', 'date': '2013', 'gdal':
 '1.9.1', 'revision': '56793M'}
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2008#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list