[GRASS-dev] [GRASS GIS] #3094: wxGUI: error when profiling a raster map

#3094: wxGUI: error when profiling a raster map
-------------------------+-------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Keywords: | CPU: x86-64
Platform: MSWindows 8 |
-------------------------+-------------------------
when starting to profile a raster map in the wxGUI

{{{
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\ma
pdisp\frame.py", line 1139, in OnProfile

self.Profile(rasters=rasters)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\ma
pdisp\frame.py", line 1147, in Profile

controller=self.profileController)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\wx
plot\profile.py", line 54, in __init__

BasePlotFrame.__init__(self, parent=parent, size=size,
**kwargs)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\wx
plot\base.py", line 107, in __init__

self.client = plot.PlotCanvas(self)
NameError
:
global name 'plot' is not defined
}}}

tested with

{{{
System Info
GRASS Version: 7.3.svn
GRASS SVN revision: r68875
Build date: 2016-07-07
Build platform: x86_64-w64-mingw32
GDAL: 2.0.2
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------
Changes (by martinl):

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

Comment:

Should be fixed in 7.0.5svn.

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------
Changes (by hellik):

* status: closed => reopened
* resolution: fixed =>

Comment:

Replying to [comment:1 martinl]:
> Should be fixed in 7.0.5svn.

reopen the ticket see #3204#comment:3

tested there by

{{{
System Info
GRASS version: 7.3.svn
GRASS SVN revision: r69793
Build date: 2016-11-10
Build platform: x86_64-w64-mingw32
GDAL: 2.1.2
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.14.1
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------

Comment (by hellik):

Replying to [comment:1 martinl]:
> Should be fixed in 7.0.5svn.

now tested with

{{{
System Info
GRASS version: 7.0.5
GRASS SVN Revision: 69636
Build Date: 2016-10-02
Build Platform: x86_64-w64-mingw32
GDAL/OGR: 2.1.1
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.14.1
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}

{{{
Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\mapd
isp\frame.py", line 1044, in OnProfile

self.Profile(rasters=rasters)
   File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\mapd
isp\frame.py", line 1052, in Profile

controller=self.profileController)
   File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\wxpl
ot\profile.py", line 56, in __init__

BasePlotFrame.__init__(self, parent=parent, size=size,
**kwargs)
   File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\wxpl
ot\base.py", line 92, in __init__

self.client = plot.PlotCanvas(self)
NameError
:
global name 'plot' is not defined
}}}

also in the 7.0.x-line still an issue.

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.0.5
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------

Comment (by hellik):

Replying to [comment:3 hellik]:
> Replying to [comment:1 martinl]:
> > Should be fixed in 7.0.5svn.
>
> now tested with
>
> {{{
> System Info
> GRASS version: 7.0.5
> GRASS SVN Revision: 69636
> Build Date: 2016-10-02
> Build Platform: x86_64-w64-mingw32
> GDAL/OGR: 2.1.1
> PROJ.4: 4.9.3
> GEOS: 3.5.0
> SQLite: 3.14.1
> Python: 2.7.5
> wxPython: 2.8.12.1
> Platform: Windows-8-6.2.9200 (OSGeo4W)
> }}}
>
> {{{
> Traceback (most recent call last):
> File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\mapd
> isp\frame.py", line 1044, in OnProfile
>
> self.Profile(rasters=rasters)
> File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\mapd
> isp\frame.py", line 1052, in Profile
>
> controller=self.profileController)
> File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\wxpl
> ot\profile.py", line 56, in __init__
>
> BasePlotFrame.__init__(self, parent=parent, size=size,
> **kwargs)
> File "C:\OSGEO4~1\apps\grass\grass-7.0.5\gui\wxpython\wxpl
> ot\base.py", line 92, in __init__
>
> self.client = plot.PlotCanvas(self)
> NameError
> :
> global name 'plot' is not defined
> }}}
>
> also in the 7.0.x-line still an issue.

see ​https://trac.osgeo.org/grass/ticket/3057#comment:18

standalone GRASS GIS 7.2.svn works without any problems; trying it with
the setup in #3057#comment:18 (standalone winGRASS pointing to the
OSGeo4W-python stuff), then I get the same error as reported above.

conclusion: the numpy startup issue (#3057) and this failing are
interconnected!

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------
Changes (by annakrat):

* milestone: 7.0.5 => 7.2.0

Comment:

Fixed in r69797 in trunk, please test.

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------

Comment (by hellik):

Replying to [comment:5 annakrat]:
> Fixed in r69797 in trunk, please test.

tested by

{{{
System Info
GRASS version: 7.3.svn
GRASS SVN revision: r69797
Build date: 2016-11-13
Build platform: x86_64-w64-mingw32
GDAL: 2.1.2
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.14.1
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}

fix confirmed.

backport needed (?):

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

#3094: wxGUI: error when profiling a raster map
---------------------+-------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords:
       CPU: x86-64 | Platform: MSWindows 8
---------------------+-------------------------
Changes (by annakrat):

* status: reopened => closed
* resolution: => fixed

Comment:

Backported to 72 and 70.

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