Bug#999828: grass-gui: Some tools (v.import; v.in.ogr; r.import) do not start on GUI
Tomas Senabre
tomas.senabre at gmail.com
Wed Nov 17 10:21:12 GMT 2021
Package: grass-gui
Version: 7.8.5-1
Severity: important
Tags: upstream
-- System Information:
Debian Release: 11.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grass-gui depends on:
ii grass-core 7.8.5-1
ii python3 3.9.2-3
ii python3-numpy [python3-numpy-abi9] 1:1.19.5-1
ii python3-opengl 3.1.5+dfsg-1
ii python3-wxgtk4.0 4.0.7+dfsg-10
ii terminator [x-terminal-emulator] 2.1.0-2
ii xfce4-terminal [x-terminal-emulator] 0.8.10-1
ii xterm [x-terminal-emulator] 366-1
Versions of packages grass-gui recommends:
ii ghostscript 9.53.3~dfsg-7+deb11u1
ii python3-matplotlib 3.3.4-1
ii python3-pil 8.1.2+dfsg-0.3
Describe the bug
I have a stable GNU / Debian 11 installation (Bullseye), and I have installed
Grass from the repositories, version 7.8.5-1, but the layer import tools do not
work from the GUI.
To Reproduce
Just launch these tools (v.import; v.in.ogr; r.import) from the GUI or from
command console. I get errors in the console like this:
GRASS 7.8.5 (Almeria_ETRS89):/media/SIG/grassdata > v.in.ogr
Traceback (most recent call last):
File "/usr/lib/grass78/gui/wxpython/gui_core/forms.py", line 3005, in OnInit
self.mf = TaskFrame(
File "/usr/lib/grass78/gui/wxpython/gui_core/forms.py", line 546, in __init__
self.notebookpanel = CmdPanel(
File "/usr/lib/grass78/gui/wxpython/gui_core/forms.py", line 2035, in
__init__
win = gselect.GdalSelect(parent=parent, panel=which_panel,
File "/usr/lib/grass78/gui/wxpython/gui_core/gselect.py", line 1520, in
__init__
fileFormats = GetFormats(writableOnly=dest)[fType]['file']
File "/usr/lib/grass78/gui/wxpython/core/utils.py", line 713, in GetFormats
gdalAll, gdalWritable = _getGDALFormats()
File "/usr/lib/grass78/gui/wxpython/core/utils.py", line 645, in
_getGDALFormats
return _parseFormats(ret), _parseFormats(ret, writableOnly=True)
File "/usr/lib/grass78/gui/wxpython/core/utils.py", line 675, in
_parseFormats
key, name = map(lambda x: x.strip(), line.strip().rsplit(':', -1))
ValueError: too many values to unpack (expected 2)
OnInit returned false, exiting...
System description:
I have tried on three different computers with the same operating system, and
the error is reproduced on all of them.
Details about further software components
GRASS 7.8.5 > g.version -rge
version=7.8.5
date=2020
revision=exported
build_date=2020-12-21
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=2020-12-21T21:08:55+00:00
libgis_date=2020-12-21T21:08:55+00:00
proj=7.2.0
gdal=3.2.0
geos=3.9.0
sqlite=3.34.0
$ python3 -c "import sys, wx; print(sys.version); print(wx.version())"
3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
4.0.7 gtk3 (phoenix) wxWidgets 3.0.5
More information about the Pkg-grass-devel
mailing list