#2994: wxGUI start fails with module object has no attribute
GRIORA_NearestNeighbour
-------------------------------------------------+-------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.0.4
Component: wxGUI | Version: svn-
Keywords: gdal, Python, WMS, rendering, | releasebranch70
packaging, wxGUI | CPU: x86-64
Platform: Unspecified |
-------------------------------------------------+-------------------------
After starting standalone 7.0.4svn on MS Windows from
[https://wingrass.fsv.cvut.cz/grass71/x86_64/ 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'
}}}
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:
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.