Opened 3 years ago

Closed 19 months ago

#4001 closed defect (fixed)

grass78 --config broken

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Python Version: git-releasebranch78
Keywords: Cc:
CPU: Unspecified Platform: Unspecified


Should should be caught more gracefully:

grass78 --config
./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
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>
  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
  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.

Change History (4)

comment:1 by neteler, 3 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:2 by neteler, 3 years ago

Milestone: 7.8.3

comment:3 by neteler, 2 years ago

Potentially addressed in PR

comment:4 by neteler, 19 months ago

Resolution: fixed
Status: newclosed

Fixed per PR:405

Note: See TracTickets for help on using tickets.