[GRASS-dev] compilation grass 7.8 - GUI not started

Hi Devs

I just compiled/installed grass78 on my computer (Ubuntu 18.04). After
installation and starting grass, it opens the opening window to select
the database/location/mapset. After that, the GUI does not launch.
Error message on the command line copied below.

Any idea how to solve this, or is this a bug that I should report?

Cheers, Paulo

GRASS 7.8.1dev (exdet):~ > 11:21:16: Debug: Adding duplicate image
handler for 'Windows bitmap file'
11:21:16: Debug: Adding duplicate image handler for 'Windows bitmap file'
Traceback (most recent call last):
  File "/usr/local/grass78/grass78/gui/wxpython/wxgui.py", line 104, in OnInit
    from lmgr.frame import GMFrame
  File "/usr/local/grass78/grass78/gui/wxpython/lmgr/frame.py", line
51, in <module>
    from lmgr.layertree import LayerTree, LMIcons
  File "/usr/local/grass78/grass78/gui/wxpython/lmgr/layertree.py",
line 38, in <module>
    from mapdisp.frame import MapFrame
  File "/usr/local/grass78/grass78/gui/wxpython/mapdisp/frame.py",
line 33, in <module>
    from mapdisp.toolbars import MapToolbar, NvizIcons
  File "/usr/local/grass78/grass78/gui/wxpython/mapdisp/toolbars.py",
line 22, in <module>
    from nviz.main import haveNviz
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/main.py", line
24, in <module>
    from nviz import mapwindow
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/mapwindow.py",
line 42, in <module>
    from nviz.workspace import NvizSettings
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/workspace.py",
line 23, in <module>
    from nviz import wxnviz
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/wxnviz.py", line
52, in <module>
    from grass.lib.raster3d import *
  File "/usr/local/grass78/grass78/etc/python/grass/lib/raster3d.py",
line 1101, in <module>
    Rast3d_fatal_error = _variadic_function(_func,_restype,_argtypes)
TypeError: __init__() missing 1 required positional argument: 'errcheck'
OnInit returned false, exiting...

Hi Paulo,

On Sat, Sep 14, 2019 at 11:24 AM Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Devs

I just compiled/installed grass78 on my computer (Ubuntu 18.04). After
installation and

just to be sure:
- you compiled yourself?
- you (of course) use Python 3?

starting grass, it opens the opening window to select
the database/location/mapset. After that, the GUI does not launch.
Error message on the command line copied below.

Any idea how to solve this, or is this a bug that I should report?

Cheers, Paulo

GRASS 7.8.1dev (exdet):~ > 11:21:16: Debug: Adding duplicate image
handler for 'Windows bitmap file'
11:21:16: Debug: Adding duplicate image handler for 'Windows bitmap file'
Traceback (most recent call last):
  File "/usr/local/grass78/grass78/gui/wxpython/wxgui.py", line 104, in OnInit
    from lmgr.frame import GMFrame
  File "/usr/local/grass78/grass78/gui/wxpython/lmgr/frame.py", line
51, in <module>
    from lmgr.layertree import LayerTree, LMIcons
  File "/usr/local/grass78/grass78/gui/wxpython/lmgr/layertree.py",
line 38, in <module>
    from mapdisp.frame import MapFrame
  File "/usr/local/grass78/grass78/gui/wxpython/mapdisp/frame.py",
line 33, in <module>
    from mapdisp.toolbars import MapToolbar, NvizIcons
  File "/usr/local/grass78/grass78/gui/wxpython/mapdisp/toolbars.py",
line 22, in <module>
    from nviz.main import haveNviz
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/main.py", line
24, in <module>
    from nviz import mapwindow
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/mapwindow.py",
line 42, in <module>
    from nviz.workspace import NvizSettings
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/workspace.py",
line 23, in <module>
    from nviz import wxnviz
  File "/usr/local/grass78/grass78/gui/wxpython/nviz/wxnviz.py", line
52, in <module>
    from grass.lib.raster3d import *
  File "/usr/local/grass78/grass78/etc/python/grass/lib/raster3d.py",
line 1101, in <module>
    Rast3d_fatal_error = _variadic_function(_func,_restype,_argtypes)
TypeError: __init__() missing 1 required positional argument: 'errcheck'
OnInit returned false, exiting...

Does this problem persist after
make distclean

and recompilation?

Markus

On Sun, Sep 22, 2019 at 6:57 PM Markus Neteler <neteler@osgeo.org> wrote:

Hi Paulo,

On Sat, Sep 14, 2019 at 11:24 AM Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:
>
> Hi Devs
>
> I just compiled/installed grass78 on my computer (Ubuntu 18.04). After
> installation and

just to be sure:
- you compiled yourself?

Yes

- you (of course) use Python 3?

Yes, it used to work when I was working in a virtual environment
(following the instructions on the wiki). Now I have set Python 3 as
the default.

> starting grass, it opens the opening window to select
> the database/location/mapset. After that, the GUI does not launch.
> Error message on the command line copied below.
>
> Any idea how to solve this, or is this a bug that I should report?
>
> Cheers, Paulo
>
>
> GRASS 7.8.1dev (exdet):~ > 11:21:16: Debug: Adding duplicate image
> handler for 'Windows bitmap file'
> 11:21:16: Debug: Adding duplicate image handler for 'Windows bitmap file'
> Traceback (most recent call last):
> File "/usr/local/grass78/grass78/gui/wxpython/wxgui.py", line 104, in OnInit
> from lmgr.frame import GMFrame
> File "/usr/local/grass78/grass78/gui/wxpython/lmgr/frame.py", line
> 51, in <module>
> from lmgr.layertree import LayerTree, LMIcons
> File "/usr/local/grass78/grass78/gui/wxpython/lmgr/layertree.py",
> line 38, in <module>
> from mapdisp.frame import MapFrame
> File "/usr/local/grass78/grass78/gui/wxpython/mapdisp/frame.py",
> line 33, in <module>
> from mapdisp.toolbars import MapToolbar, NvizIcons
> File "/usr/local/grass78/grass78/gui/wxpython/mapdisp/toolbars.py",
> line 22, in <module>
> from nviz.main import haveNviz
> File "/usr/local/grass78/grass78/gui/wxpython/nviz/main.py", line
> 24, in <module>
> from nviz import mapwindow
> File "/usr/local/grass78/grass78/gui/wxpython/nviz/mapwindow.py",
> line 42, in <module>
> from nviz.workspace import NvizSettings
> File "/usr/local/grass78/grass78/gui/wxpython/nviz/workspace.py",
> line 23, in <module>
> from nviz import wxnviz
> File "/usr/local/grass78/grass78/gui/wxpython/nviz/wxnviz.py", line
> 52, in <module>
> from grass.lib.raster3d import *
> File "/usr/local/grass78/grass78/etc/python/grass/lib/raster3d.py",
> line 1101, in <module>
> Rast3d_fatal_error = _variadic_function(_func,_restype,_argtypes)
> TypeError: __init__() missing 1 required positional argument: 'errcheck'
> OnInit returned false, exiting...

Does this problem persist after
make distclean

and recompilation?

Yes, tried that both. But I'll give it another try after checking
manually for any residues.

Markus

Thanks for the feedback