Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Grass 7.8.5-1 (GNU/Debian) Some tools (v.import; v.in.ogr; r.import) do not start on GUI #1968

Open
tomassenabre opened this issue Nov 10, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@tomassenabre
Copy link

tomassenabre commented Nov 10, 2021

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.

  • Operating System: GNU/Debian Ver. 11. Bullseye. Linux 5.10.0-9-amd64 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux.

  • GRASS GIS version [7.8.5-1] (https://packages.debian.org/bullseye/grass)

  • 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
@tomassenabre tomassenabre added the bug Something isn't working label Nov 10, 2021
@veroandreo
Copy link
Contributor

Would you try v.in.ogr --ui? When calling the gui of v.in.ogr, v.import or r.import without parameters in grass 7.8.5 - fedora 34, I get the summary manual in the console... In grass 8.0 - main branch, typing v.in.ogr in the terminal opens the gui directly as expected.

Also, is it possible for you to update to the latest grass 7.8.6 and check if the problem persists also there?

@petrasovaa
Copy link
Contributor

Should be fixed in 7.8.6: #1793

@tomassenabre
Copy link
Author

Hello and thanks for your answers. I have followed the steps to compile Grass from source and I must have done something unconsciously because I installed version 8 of Grass! I hope I don't have many problems with the development version.
All modules are working properly again, but right now Debian users install an unusable version of Grass since they cannot import layers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants