[GRASS-dev] GRASS and wxPython 4.0.0 (aka Phoenix)

Michael Barton Michael.Barton at asu.edu
Fri Feb 9 11:12:30 PST 2018


Anna,

Thanks for the quick fix. I just compiled 7.5 dev and posted it to the GRASS for Mac web site: http://grassmac.wikidot.com/downloads

It uses wxPython 4.0.0 and launches fine. Here are a few observations.

The menu button bar issue when switching from 3D to 2D is now fixed.
The digitizer and interactive image classification still cause the GUI to crash.
The custom pull down menu control no longer works at all. It is blank. Again, I think we can just get rid of it.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu















On Feb 9, 2018, at 8:06 AM, Anna Petrášová <kratochanna at gmail.com<mailto:kratochanna at gmail.com>> wrote:

Hi,

I just fixed it in trunk and 7.4., tested with wxPyton 4.0.1. Not sure
what changed, it was working some time ago. The GUI should start now
if you want to test.

Anna

On Thu, Feb 8, 2018 at 12:05 AM, Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>> wrote:
Anna,

I just now tried to compile GRASS 7.4.0 on a different computer (my MacBook
laptop) since I have been unable to do it on the office computer I used for
7.2.2 and 7.4svn.

It compiled fine. However, unbeknownst to me, when I set up the environment
in Anaconda, the package archive we've been using for wxPython 3.0.2
upgraded to wxPython 4.0.0. I discovered this when GRASS crashed on launch,
but after the splash screen. I know you've been wanting to know how GRASS
performs under Phoenix. So I am copying the error below. I will try to force
it back to 3.0.2 and compile again.

Michael

===== error with wxPython 4.0.0 =========

Launching <wxpython> GUI in the background, please wait...
GRASS 7.4.0 (nc_spm_08_grass7):~ > 09:57:39 PM: Debug: Adding duplicate
image handler for 'Windows bitmap file'
09:57:39 PM: Debug: Adding duplicate image handler for 'Windows bitmap file'
09:57:39 PM: Debug: Adding duplicate animation handler for '1' type
09:57:39 PM: Debug: Adding duplicate animation handler for '2' type
/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/gui_core/menu.py:153:
wxPyDeprecationWarning: Call to deprecated item. Use SetToolTip instead.
 _("Double-click or Ctrl-Enter to run selected module"))
Traceback (most recent call last):
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/wxgui.py",
line 101, in OnInit
   workspace=self.workspaceFile)
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/lmgr/frame.py",
line 142, in __init__
   self.notebook = self._createNoteBook()
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/lmgr/frame.py",
line 373, in _createNoteBook
   parent=self.notebook, giface=self._giface)
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/datacatalog/catalog.py",
line 46, in __init__
   self.toolbar = DataCatalogToolbar(parent=self)
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/datacatalog/toolbars.py",
line 47, in __init__
   self.InitToolbar(self._toolbarData())
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/gui_core/toolbars.py",
line 124, in InitToolbar
   self.CreateTool(*tool)
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/gui_core/toolbars.py",
line 148, in CreateTool
   shortHelp, longHelp)
 File
"/private/var/folders/65/pp9w7z0d1mj502pj8hhl7vfw0000gn/T/AppTranslocation/4D8A3829-DEC7-4DA3-9AE8-A992132C803A/d/GRASS-7.4.0.app/Contents/Resources/gui/wxpython/gui_core/wrap.py",
line 229, in AddLabelTool
   clientData=clientData)
TypeError: ToolBar.AddTool(): arguments did not match any overloaded call:
 overload 1: 'kind' is not a valid keyword argument
 overload 2: 'shortHelpString' is not a valid keyword argument
 overload 3: 'shortHelpString' is not a valid keyword argument
OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
 File
"/Applications/GRASS-7.4.0.app/Contents/Resources/lib/python2.7/atexit.py",
line 24, in _run_exitfuncs
   func(*targs, **kargs)
wxAssertionError: C++ assertion "GetEventHandler() == this" failed at
/Users/robind/projects/buildbots/macosx-vm6/dist-osx-py27/Phoenix/ext/wxWidgets/src/common/wincmn.cpp(478)
in ~wxWindowBase(): any pushed event handlers must have been removed
Error in sys.exitfunc:
Traceback (most recent call last):
 File
"/Applications/GRASS-7.4.0.app/Contents/Resources/lib/python2.7/atexit.py",
line 24, in _run_exitfuncs
   func(*targs, **kargs)
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed
at
/Users/robind/projects/buildbots/macosx-vm6/dist-osx-py27/Phoenix/ext/wxWidgets/src/common/wincmn.cpp(478)
in ~wxWindowBase(): any pushed event handlers must have been removed
GRASS 7.4.0 (nc_spm_08_grass7):~ >



____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=9FHleW8_ir7xmRsdo-qS5etHnweD64TbwVm3lkv6Vi8&s=nCnt45VXfMI8tjc9DUfma9gcRtgeb61dvWCl0ZRH9Os&e=, https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=9FHleW8_ir7xmRsdo-qS5etHnweD64TbwVm3lkv6Vi8&s=HrF-ILNjvf6qA_0DVnsaDnVyfJEs3S_WA0eGn6s6PMI&e=

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180209/4c924cb6/attachment-0001.html>


More information about the grass-dev mailing list