Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2994 closed defect (invalid)

wxGUI start fails with module object has no attribute GRIORA_NearestNeighbour

Reported by: wenzeslaus Owned by: grass-dev@…
Priority: blocker Milestone: 7.0.4
Component: wxGUI Version: svn-releasebranch70
Keywords: gdal, Python, WMS, rendering, packaging, wxGUI Cc:
CPU: x86-64 Platform: Unspecified

Description

After starting standalone 7.0.4svn on MS Windows from here, I get a traceback instead of wxGUI (g.gui). The command line works. GUI gives some error coming from WMS rendering. Lazy import would be nice here but I guess the error might be some incompatible Python packages. Here is the traceback:

...
<module>
    from lmgr.frame import GMFrame
  File "C:\Program Files\GRASS GIS 7.0.4svn\gui\wxpython\lmgr\frame.py", line 50
, in <module>
    from lmgr.layertree        import LayerTree, LMIcons
  File "C:\Program Files\GRASS GIS 7.0.4svn\gui\wxpython\lmgr\layertree.py", lin
e 37, in <module>
    from mapdisp.frame        import MapFrame
  File "C:\Program Files\GRASS GIS 7.0.4svn\gui\wxpython\mapdisp\frame.py", line
 33, in <module>
    from core.render        import Map
  File "C:\Program Files\GRASS GIS 7.0.4svn\gui\wxpython\core\render.py", line 4
6, in <module>
    from core.ws       import RenderWMSMgr
  File "C:\Program Files\GRASS GIS 7.0.4svn\gui\wxpython\core\ws.py", line 36, i
n <module>
    from osgeo import gdal
  File "C:\Program Files\GRASS GIS 7.0.4svn\Python27\lib\site-packages\osgeo\gda
l.py", line 94, in <module>
    from gdalconst import *
  File "C:\Program Files\GRASS GIS 7.0.4svn\Python27\lib\site-packages\osgeo\gda
lconst.py", line 97, in <module>
    GRIORA_NearestNeighbour = _gdalconst.GRIORA_NearestNeighbour
AttributeError: 'module' object has no attribute 'GRIORA_NearestNeighbour'
> g.version -re

GRASS 7.0.4svn (2016)
libgis Revision: 67364
libgis Date: 2015-12-24 16:07:44 +0100 (Thu, 24 Dec 2015)
PROJ.4: 4.9.2
GDAL/OGR: 2.0.2
GEOS: 3.5.0
SQLite: 3.7.17

Change History (5)

comment:1 by wenzeslaus, 9 years ago

g.gui worked in 7.0.4svn r68280.

GRASS version: 7.0.4svn                                                         
GRASS SVN Revision: 68280                                                       
Build Date: 2016-04-20                                                          
Build Platform: x86_64-w64-mingw32                                              
GDAL/OGR: 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

comment:2 by martinl, 9 years ago

I cannot reproduce it with

GRASS version: 7.0.4svn                                                         
GRASS SVN Revision: 68280                                                       
Build Date: 2016-04-21                                                          
Build Platform: x86_64-w64-mingw32                                              
GDAL/OGR: 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-7-6.1.7601-SP1  

The GUI starts, I can display raster, vector maps...

comment:3 by martinl, 9 years ago

What contains your `C:\Program Files\GRASS GIS 7.0.4svn\Python27\lib\site-packages\osgeo\gda lconst.py`?

Version 0, edited 9 years ago by martinl (next)

comment:4 by wenzeslaus, 9 years ago

Resolution: invalid
Status: newclosed

I can't reproduce it anymore with newly downloaded build from today, Apr 21 (which is still r68280). Closing as invalid. We can reopen if needed. The following 7.0.4svn 32bit and 64bit worked:

System Info
GRASS version: 7.0.4svn
GRASS SVN Revision: 68280
Build Date: 2016-04-21
Build Platform: x86_64-w64-mingw32
GDAL/OGR: 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

> g.version -re
GRASS 7.0.4svn (2016)
libgis Revision: 67364
libgis Date: 2015-12-24 16:07:44 +0100 (Thu, 24 Dec 2015)
PROJ.4: 4.9.2
GDAL/OGR: 2.0.2
GEOS: 3.5.0
SQLite: 3.7.17
System Info
GRASS version: 7.0.4svn
GRASS SVN Revision: 68280
Build Date: 2016-04-21
Build Platform: i386-w64-mingw32
GDAL/OGR: 2.0.2
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200

> g.version -re
GRASS 7.0.4svn (2016)
libgis Revision: 67364
libgis Date: 2015-12-24 16:07:44 +0100 (Thu, 24 Dec 2015)
PROJ.4: 4.9.2
GDAL/OGR: 2.0.2
GEOS: 3.5.0
SQLite: 3.7.17

in reply to:  3 comment:5 by wenzeslaus, 9 years ago

Just for the record:

Replying to martinl:

What contains your ...\osgeo\gdalconst.py?

GRIORA_NearestNeighbour = _gdalconst.GRIORA_NearestNeighbour

The import message suggests that the symbol/attribute is missing in the _gdalconst module which is a C module I suppose. Likely this was some DLL glitch.

Note: See TracTickets for help on using tickets.