Opened 8 years ago

Closed 8 years ago

#3094 closed defect (fixed)

wxGUI: error when profiling a raster map

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: wxGUI Version: svn-trunk
Keywords: Cc:
CPU: x86-64 Platform: MSWindows 8

Description

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)   

Change History (7)

comment:1 by martinl, 8 years ago

Resolution: fixed
Status: newclosed

Should be fixed in 7.0.5svn.

in reply to:  1 comment:2 by hellik, 8 years ago

Resolution: fixed
Status: closedreopened

Replying to 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) 

in reply to:  1 ; comment:3 by hellik, 8 years ago

Replying to 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.

in reply to:  3 comment:4 by hellik, 8 years ago

Replying to hellik:

Replying to 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!

comment:5 by annakrat, 8 years ago

Milestone: 7.0.57.2.0

Fixed in r69797 in trunk, please test.

in reply to:  5 comment:6 by hellik, 8 years ago

Replying to 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 (?):

comment:7 by annakrat, 8 years ago

Resolution: fixed
Status: reopenedclosed

Backported to 72 and 70.

Note: See TracTickets for help on using tickets.