Opened 5 years ago

Closed 4 years 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: grass.py Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Change History (4)

comment:1 by neteler, 5 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:2 by neteler, 5 years ago

Milestone: 7.8.3

comment:3 by neteler, 5 years ago

Potentially addressed in PR https://github.com/OSGeo/grass/pull/405

comment:4 by neteler, 4 years ago

Resolution: fixed
Status: newclosed

Fixed per PR:405

Note: See TracTickets for help on using tickets.