[GRASS-user] Updated trunk to grass77, GUI crashes at start: wxPython/wxWidgets release number mismatch

Hernán De Angelis dhdeangelis at comhem.se
Sun Sep 23 08:42:37 PDT 2018


No worries, thanks for that, Anna.

One question: how do I tell GRASS to use python 3, given that both 
Python 2 and 3 are present in the system? I tried using the configure 
option "--with-python=/usr/bin/python3" but cannot tell if it worked.

H.

On 9/23/18 1:42 PM, Anna Petrášová wrote:
> Hi,
>
> trunk is now less 'stable' than usually since it contains experimental 
> support for Python 3, but it means there can be new bugs even with 
> Python 2 (it was announced on mailing lists). If you want more stable 
> environment, please use grass 76, but I will also appreciate you 
> testing trunk.
>
> Anna
>
> On Sat, Sep 22, 2018, 9:22 AM Hernán De Angelis <dhdeangelis at comhem.se 
> <mailto:dhdeangelis at comhem.se>> wrote:
>
>     Please forget the previous email. I solved the problem by building
>     wxwidgets from source and then reinstalling grass. All works as
>     expected
>     now.
>
>     /H.
>
>
>     On 9/22/18 2:50 PM, Hernán De Angelis wrote:
>     > Hi
>     >
>     > I have just updated trunk to grass77 (r73379) via SVN. After the
>     build
>     > the location selection window opens normally, then, after the
>     location
>     > is selected, the greeting window flashes normally but the GUI never
>     > starts. There are a lot of warning/errors (see below).
>     >
>     > I understand that wxwidgets and python may be the culprit. This
>     wasn't
>     > the case with my previous installation (grass75) although there
>     where
>     > lots of warnings with this. I have not touched wxwidgets or python
>     > since my previous grass install.
>     >
>     > Any hint on a solution will be appreciated.
>     >
>     > Thanks in advance.
>     >
>     > /H.
>     >
>     >
>     >
>     --------------------------------------------------------------------------
>
>     >
>     >
>     > GRASS 7.7.svn (NVtest):~/NV/grassdb > grass77
>     > Starting GRASS GIS...
>     > /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
>     > UserWarning: wxPython/wxWidgets release number mismatch
>     >   warnings.warn("wxPython/wxWidgets release number mismatch")
>     > Cleaning up temporary files...
>     >
>     >
>     >           __________  ___   __________ _______________
>     >          / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
>     >         / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
>     >        / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
>     >        \____/_/ |_/_/  |_/____/____/ \____/___//____/
>     >
>     > Welcome to GRASS GIS 7.7.svn (r72914)
>     > GRASS GIS homepage: http://grass.osgeo.org
>     > This version running through:            Bash Shell (/bin/bash)
>     > Help is available with the command:      g.manual -i
>     > See the licence terms with:              g.version -c
>     > See citation options with:               g.version -x
>     > If required, restart the GUI with:       g.gui wxpython
>     > When ready to quit enter:                exit
>     >
>     > Launching <wxpython> GUI in the background, please wait...
>     > GRASS 7.7.svn (NVtest):~/NV/grassdb >
>     > /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
>     > UserWarning: wxPython/wxWidgets release number mismatch
>     >   warnings.warn("wxPython/wxWidgets release number mismatch")
>     > Traceback (most recent call last):
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
>     169, in
>     > <module>
>     >     sys.exit(main())
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
>     156, in
>     > main
>     >     app = GMApp(workspaceFile)
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
>     50, in
>     > __init__
>     >     wx.App.__init__(self, False)
>     >   File
>     "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
>     > line 8628, in __init__
>     >     self._BootstrapApp()
>     >   File
>     "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
>     > line 8196, in _BootstrapApp
>     >     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
>     101, in
>     > OnInit
>     >     from lmgr.frame import GMFrame
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/lmgr/frame.py",
>     line 51,
>     > in <module>
>     >     from lmgr.layertree import LayerTree, LMIcons
>     >   File
>     "/usr/local/grass-7.7.svn/gui/wxpython/lmgr/layertree.py", line
>     > 38, in <module>
>     >     from mapdisp.frame import MapFrame
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/mapdisp/frame.py",
>     line
>     > 33, in <module>
>     >     from mapdisp.toolbars import MapToolbar, NvizIcons
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/mapdisp/toolbars.py",
>     > line 22, in <module>
>     >     from nviz.main import haveNviz
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/main.py",
>     line 24,
>     > in <module>
>     >     from nviz import mapwindow
>     >   File
>     "/usr/local/grass-7.7.svn/gui/wxpython/nviz/mapwindow.py", line
>     > 42, in <module>
>     >     from nviz.workspace import NvizSettings
>     >   File
>     "/usr/local/grass-7.7.svn/gui/wxpython/nviz/workspace.py", line
>     > 24, in <module>
>     >     from nviz import wxnviz
>     >   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/wxnviz.py", line
>     > 51, in <module>
>     >     from grass.lib.gis import *
>     >   File "/usr/local/grass-7.7.svn/etc/python/grass/lib/gis.py", line
>     > 988, in <module>
>     >     G_asprintf = _variadic_function(_func,_restype,_argtypes)
>     > TypeError: __init__() takes exactly 5 arguments (4 given)
>     >
>     > _______________________________________________
>     > grass-user mailing list
>     > grass-user at lists.osgeo.org <mailto:grass-user at lists.osgeo.org>
>     > https://lists.osgeo.org/mailman/listinfo/grass-user
>     _______________________________________________
>     grass-user mailing list
>     grass-user at lists.osgeo.org <mailto:grass-user at lists.osgeo.org>
>     https://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180923/e520f384/attachment.html>


More information about the grass-user mailing list