[GRASS-dev] [GRASS GIS] #1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
WinGRASS-6.4.SVN-r50399-1-Setup on Vista selecting import raster/vector
from wxgui results in following error:

{{{
Traceback (most recent call last):
   File "c:/Program Files/GRASS
6.4.SVN/etc/wxpython/wxgui.py", line 1137, in
OnImportGdalLayers

dlg = gdialogs.GdalImportDialog(parent = self)
   File "c:\Program Files\GRASS
6.4.SVN\etc\wxpython\gui_modules\gdialogs.py", line 1251, in
__init__

self.dsnInput = gselect.GdalSelect(parent = self, panel =
self.panel, ogr = ogr)
   File "c:\Program Files\GRASS
6.4.SVN\etc\wxpython\gui_modules\gselect.py", line 1155, in
__init__

ogr = ogr)
   File "c:\Program Files\GRASS
6.4.SVN\etc\wxpython\gui_modules\gselect.py", line 957, in
__init__

style = wx.CB_READONLY, **kwargs)
   File "C:\Program Files\GRASS 6.4.SVN\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\_controls.py", line 494, in
__init__

_controls_.Choice_swiginit(self,_controls_.new_Choice(*args,
**kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "!(style & wxCB_DROPDOWN) && !(style &
wxCB_READONLY) && !(style & wxCB_SIMPLE)" failed at
..\..\src\msw\choice.cpp(121) in wxChoice::Create(): this
style flag is ignored by wxChoice, you probably want to use
a wxComboBox
Traceback (most recent call last):
   File "c:/Program Files/GRASS
6.4.SVN/etc/wxpython/wxgui.py", line 1149, in
OnImportOgrLayers

dlg = gdialogs.GdalImportDialog(parent = self, ogr = True)
   File "c:\Program Files\GRASS
6.4.SVN\etc\wxpython\gui_modules\gdialogs.py", line 1251, in
__init__

self.dsnInput = gselect.GdalSelect(parent = self, panel =
self.panel, ogr = ogr)
   File "c:\Program Files\GRASS
6.4.SVN\etc\wxpython\gui_modules\gselect.py", line 1155, in
__init__

ogr = ogr)
   File "c:\Program Files\GRASS
6.4.SVN\etc\wxpython\gui_modules\gselect.py", line 957, in
__init__

style = wx.CB_READONLY, **kwargs)
   File "C:\Program Files\GRASS 6.4.SVN\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\_controls.py", line 494, in
__init__

_controls_.Choice_swiginit(self,_controls_.new_Choice(*args,
**kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "!(style & wxCB_DROPDOWN) && !(style &
wxCB_READONLY) && !(style & wxCB_SIMPLE)" failed at
..\..\src\msw\choice.cpp(121) in wxChoice::Create(): this
style flag is ignored by wxChoice, you probably want to use
a wxComboBox
}}}
As this can be considered a core functionality, blocking release till it's
fixed.

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------
Changes (by martinl):

  * keywords: wingrass => wingrass, wxpython 2.8.12.1

Comment:

Related to OSGeo4W Python 2.5 -> 2.7 switch, or better to say to the new
wxpython package (2.8.12.1). Try to investigate more...

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------

Comment(by neteler):

Was it file or directory import (which switch button in the GUI)?
This may make a difference.

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------

Comment(by martinl):

Replying to [comment:2 neteler]:
> Was it file or directory import (which switch button in the GUI)?
> This may make a difference.

The dialog doesn't start at all. Some mismatch in wxWidgets libraries, try
to fix it.

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.2
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------
Changes (by martinl):

* cc: grass-dev@… (added)
  * owner: grass-dev@… => martinl
  * status: new => assigned

Comment:

Hopefully fixed in r50408

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.5.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------
Changes (by martinl):

  * milestone: 6.4.2 => 6.5.0

Comment:

Tested with the lasted build (1) - seems to work.

Please backport fix to `devbr6/trunk`. Thanks.

(1)
http://wingrass.fsv.cvut.cz/grass64/WinGRASS-6.4.SVN-r50414-1-Setup.exe

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.5.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------

Comment(by neteler):

A diff shows that r50408 is already present in 6.5.

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.5.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------

Comment(by neteler):

I tested with WinGRASS-6.4.SVN-r50414-1-Setup.exe, the single file
importer works again (raster tested).

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

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
-----------------------------------------+----------------------------------
Reporter: marisn | Owner: martinl
     Type: defect | Status: assigned
Priority: blocker | Milestone: 6.5.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxpython 2.8.12.1 | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------------------+----------------------------------

Comment(by martinl):

Replying to [comment:6 neteler]:
> A diff shows that r50408 is already present in 6.5.

it has been fixed in 6.5 - r50409

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1543#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1543: WXGUI GDAL/OGR import dialogs fail to open in WinGRASS
------------------------------+---------------------------------------------
  Reporter: marisn | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.5.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords: wingrass, wxpython 2.8.12.1
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by martinl):

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

Comment:

Closing, feel free to re-open if needed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1543#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>