[GRASS-dev] [GRASS GIS] #3039: "Analyze map" not working with GRASS 7.0.4 (OSX - homebrew)

#3039: "Analyze map" not working with GRASS 7.0.4 (OSX - homebrew)
-----------------------------------+-------------------------
Reporter: guano | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: 7.0.4
Keywords: histogram, matplotlib | CPU: x86-64
Platform: MacOSX |
-----------------------------------+-------------------------
Running GRASS 7.0.4 on OSX (El Capitan) installed via Homebrew.

The "Analyze map" tools in Map Display are not working. The old ones do
work (profile, d.histogram), but Scatter Plot, Histogram don't.

The tools that need python/matplotlib are not working with the following
error message:

Traceback (most recent call last):
   File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/mapdisp/frame.py", line 1066, in OnHistogramPyPlot

win = HistogramPlotFrame(parent = self, rasterList = raster)
   File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/wxplot/histogram.py", line 39, in __init__

BasePlotFrame.__init__(self, parent, size = size, **kwargs)
   File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/wxplot/base.py", line 88, in __init__

self.client = plot.PlotCanvas(self)
   File "/usr/local/lib/python2.7/site-
packages/wx-3.0-osx_cocoa/wx/lib/plot.py", line 598, in
__init__

self.HandCursor = wx.Cursor(Hand.GetImage())
   File "/usr/local/lib/python2.7/site-
packages/wx-3.0-osx_cocoa/wx/_gdi.py", line 1502, in
__init__

_gdi_.Cursor_swiginit(self,_gdi_.new_Cursor(*args,
**kwargs))
TypeError
:
Required argument 'type' (pos 2) not found

The same happens when calling them form the contextual menu (right-click).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3039&gt;
GRASS GIS <https://grass.osgeo.org>

#3039: "Analyze map" not working with GRASS 7.0.4 (OSX - homebrew)
---------------------+-----------------------------------
  Reporter: guano | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: 7.0.4
Resolution: | Keywords: histogram, matplotlib
       CPU: x86-64 | Platform: MacOSX
---------------------+-----------------------------------
Description changed by martinl:

Old description:

Running GRASS 7.0.4 on OSX (El Capitan) installed via Homebrew.

The "Analyze map" tools in Map Display are not working. The old ones do
work (profile, d.histogram), but Scatter Plot, Histogram don't.

The tools that need python/matplotlib are not working with the following
error message:

Traceback (most recent call last):
  File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/mapdisp/frame.py", line 1066, in OnHistogramPyPlot

win = HistogramPlotFrame(parent = self, rasterList = raster)
  File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/wxplot/histogram.py", line 39, in __init__

BasePlotFrame.__init__(self, parent, size = size, **kwargs)
  File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/wxplot/base.py", line 88, in __init__

self.client = plot.PlotCanvas(self)
  File "/usr/local/lib/python2.7/site-
packages/wx-3.0-osx_cocoa/wx/lib/plot.py", line 598, in
__init__

self.HandCursor = wx.Cursor(Hand.GetImage())
  File "/usr/local/lib/python2.7/site-
packages/wx-3.0-osx_cocoa/wx/_gdi.py", line 1502, in
__init__

_gdi_.Cursor_swiginit(self,_gdi_.new_Cursor(*args,
**kwargs))
TypeError
:
Required argument 'type' (pos 2) not found

The same happens when calling them form the contextual menu (right-
click).

New description:

Running GRASS 7.0.4 on OSX (El Capitan) installed via Homebrew.

The "Analyze map" tools in Map Display are not working. The old ones do
work (profile, d.histogram), but Scatter Plot, Histogram don't.

The tools that need python/matplotlib are not working with the following
error message:

{{{
Traceback (most recent call last):
   File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/mapdisp/frame.py", line 1066, in OnHistogramPyPlot

win = HistogramPlotFrame(parent = self, rasterList = raster)
   File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/wxplot/histogram.py", line 39, in __init__

BasePlotFrame.__init__(self, parent, size = size, **kwargs)
   File "/usr/local/Cellar/grass-70/7.0.4/grass-7.0.4/gui/wxp
ython/wxplot/base.py", line 88, in __init__

self.client = plot.PlotCanvas(self)
   File "/usr/local/lib/python2.7/site-
packages/wx-3.0-osx_cocoa/wx/lib/plot.py", line 598, in
__init__

self.HandCursor = wx.Cursor(Hand.GetImage())
   File "/usr/local/lib/python2.7/site-
packages/wx-3.0-osx_cocoa/wx/_gdi.py", line 1502, in
__init__

_gdi_.Cursor_swiginit(self,_gdi_.new_Cursor(*args,
**kwargs))
TypeError
:
Required argument 'type' (pos 2) not found
}}}

The same happens when calling them form the contextual menu (right-click).

--

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3039#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3039: "Analyze map" not working with GRASS 7.0.4 (OSX - homebrew)
---------------------+-----------------------------------
  Reporter: guano | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: 7.0.4
Resolution: | Keywords: histogram, matplotlib
       CPU: x86-64 | Platform: MacOSX
---------------------+-----------------------------------

Comment (by cmbarton):

This is probably due to a known bug in wxPython 3.x. I've documented this
and a workaround in ticket:

https://trac.osgeo.org/grass/ticket/2813

Michael

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3039#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3039: "Analyze map" not working with GRASS 7.0.4 (OSX - homebrew)
------------------------+-----------------------------------
  Reporter: guano | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: 7.0.4
Resolution: duplicate | Keywords: histogram, matplotlib
       CPU: x86-64 | Platform: MacOSX
------------------------+-----------------------------------
Changes (by annakrat):

* status: new => closed
* resolution: => duplicate

Comment:

Duplicate of #2558.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3039#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>