[GRASS-dev] [GRASS GIS] #4001: grass78 --config broken

GRASS GIS trac at osgeo.org
Thu Nov 28 09:32:04 PST 2019


#4001: grass78 --config broken
-------------------------+---------------------------------
 Reporter:  neteler      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.8.2
Component:  Python       |    Version:  git-releasebranch78
 Keywords:  grass.py     |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+---------------------------------
 Should should be caught more gracefully:

 {{{
 grass78 --config
 x86_64-pc-linux-gnu
 ./configure  --with-cxx --enable-largefile --with-proj --with-proj-
 share=/usr/share/proj --with-gdal=/usr/bin/gdal-config --with-python
 --with-geos --with-sqlite --with-nls --with-zstd --with-pdal --with-cairo
 --with-cairo-ldflags=-lfontconfig --with-freetype --with-freetype-
 includes=/usr/include/freetype2 --with-wxwidgets --with-fftw --with-
 postgres --with-postgres-includes=/usr/include/pgsql --with-blas --with-
 blas-includes=/usr/include/atlas-x86_64-base/ --with-lapack --with-lapack-
 includes=/usr/include/atlas-x86_64-base/ --with-netcdf --without-motif
 --without-bzlib --without-mysql --without-odbc --without-openmp --without-
 ffmpeg
 gcc
 /home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu
 Traceback (most recent call last):
   File "/home/mneteler/bin/grass78", line 2025, in main
     index = sys.argv.index(batch_exec_param)
 ValueError: '--exec' is not in list

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/home/mneteler/bin/grass78", line 2216, in <module>
     main()
   File "/home/mneteler/bin/grass78", line 2030, in main
     params = parse_cmdline(sys.argv[1:], default_gui=default_gui)
   File "/home/mneteler/bin/grass78", line 1951, in parse_cmdline
     print_params()
   File "/home/mneteler/bin/grass78", line 1862, in print_params
     "%s\n" % val[0].split(':')[1].rstrip('$"\n').strip())
 IndexError: list index out of range
 }}}

 It also applies to master.

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



More information about the grass-dev mailing list