[GRASS-dev] Python location wizard broken

On Jan 30, 2008, at 8:54 PM, grass-dev-request@lists.osgeo.org wrote:

Date: Wed, 30 Jan 2008 22:00:48 +0100
From: "Markus Neteler" <neteler@osgeo.org>
Subject: [GRASS-dev] Python location wizard broken
To: "GRASS developers list" <grass-dev@lists.osgeo.org>
Message-ID:
  <86782b610801301300j5fdcb236l3f8327a5ddaf7ad@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

currently the Python location wizard is broken...

grass63 -wx
Cleaning up temporary files.....
Starting GRASS ...
...
Traceback (most recent call last):
  File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/gis_set.py",
line 374, in OnWizard
    gWizard = location_wizard.LocationWizard(self, self.tgisdbase.GetValue())
  File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/gui_modules/location_wizard.py",
line 1592, in __init__
    self.projtypepage.DoLayout()
  File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/gui_modules/location_wizard.py",
line 118, in DoLayout
    tmpsizer.Fit(self)
  File "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 12558, in Fit
    return _core_.Sizer_Fit(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "uiIndex < m_nCount" failed
at ../include/wx/dynarray.h(813) in Item()

Markus

Markus,

It's working with OS X on the version I compiled from the trunk last night. Did you upgrade your wxPython or make some other system change?

Michael

Michael,

no system change at all (it is an older Mandriva 2007.0 box).
I have installed:

rpm -qa | grep wx
wxPython-common-gtk2-unicode-2.8.3.0-1_py2.4
libwxgtku2.6-2.6.3-7mdv2007.0
libwxgtkglu2.7-2.7.0-2mdv2007.0
libwxPythonGTK2.6-2.6.3.3-2.1mdv2007.0
libwxgtku2.7-devel-2.7.0-2mdv2007.0
wxPython2.8-devel-gtk2-unicode-2.8.3.0-1_py2.4
wxgtk2.7-2.7.0-2mdv2007.0
wxGTK2.6-2.6.3-7mdv2007.0
libwxgtku2.7-2.7.0-2mdv2007.0
wxPython2.8-gtk2-unicode-2.8.3.0-1_py2.4

wxgrass starts, only the Location Wizard is broken here.

uname -a
Linux localhost 2.6.17-11mdv #1 SMP Tue Feb 13 11:59:10 MST 2007 i686
Intel(R) Pentium(R) 4 CPU 2.53GHz GNU/Linux

Markus

On Jan 31, 2008 5:57 AM, Michael Barton <michael.barton@asu.edu> wrote:

On Jan 30, 2008, at 8:54 PM, grass-dev-request@lists.osgeo.org wrote:

> Date: Wed, 30 Jan 2008 22:00:48 +0100
> From: "Markus Neteler" <neteler@osgeo.org>
> Subject: [GRASS-dev] Python location wizard broken
> To: "GRASS developers list" <grass-dev@lists.osgeo.org>
> Message-ID:
> <86782b610801301300j5fdcb236l3f8327a5ddaf7ad@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1

>
> Hi,
>
> currently the Python location wizard is broken...
>
> grass63 -wx
> Cleaning up temporary files.....
> Starting GRASS ...
> ...
> Traceback (most recent call last):
> File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/
> gis_set.py",
> line 374, in OnWizard
> gWizard = location_wizard.LocationWizard(self,
> self.tgisdbase.GetValue())
> File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/
> gui_modules/location_wizard.py",
> line 1592, in __init__
> self.projtypepage.DoLayout()
> File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/
> gui_modules/location_wizard.py",
> line 118, in DoLayout
> tmpsizer.Fit(self)
> File "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/
> _core.py",
> line 12558, in Fit
> return _core_.Sizer_Fit(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "uiIndex < m_nCount" failed
> at ../include/wx/dynarray.h(813) in Item()
>
> Markus

Markus,

It's working with OS X on the version I compiled from the trunk last
night. Did you upgrade your wxPython or make some other system change?

Michael
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/

Hi,

2008/1/31, Markus Neteler <neteler@osgeo.org>:
Markus:

no system change at all (it is an older Mandriva 2007.0 box).
I have installed:

rpm -qa | grep wx
wxPython-common-gtk2-unicode-2.8.3.0-1_py2.4
libwxgtku2.6-2.6.3-7mdv2007.0
libwxgtkglu2.7-2.7.0-2mdv2007.0
libwxPythonGTK2.6-2.6.3.3-2.1mdv2007.0
libwxgtku2.7-devel-2.7.0-2mdv2007.0
wxPython2.8-devel-gtk2-unicode-2.8.3.0-1_py2.4
wxgtk2.7-2.7.0-2mdv2007.0
wxGTK2.6-2.6.3-7mdv2007.0
libwxgtku2.7-2.7.0-2mdv2007.0
wxPython2.8-gtk2-unicode-2.8.3.0-1_py2.4

wxgrass starts, only the Location Wizard is broken here.

uname -a
Linux localhost 2.6.17-11mdv #1 SMP Tue Feb 13 11:59:10 MST 2007 i686
Intel(R) Pentium(R) 4 CPU 2.53GHz GNU/Linux

here seems to work (python 2.4.4, wxpython 2.8.7.1). Try to
comment-out line 118 in gui_modules/location_wizard.py.

Helps?

Regards, Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Markus, Martin,

We just ran into a similar message in my lab yesterday. It was on a Mac with wxPython 2.8.3 installed. When we upgraded to 2.8.6, all was fine. I'm suspicious however. The line that says it has problems is a normal sizer command. So it might be a red herring. Maybe Martin has figured it out.

Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

On Feb 2, 2008, at 10:41 AM, Martin Landa wrote:

Hi,

2008/1/31, Markus Neteler <neteler@osgeo.org>:
Markus:

no system change at all (it is an older Mandriva 2007.0 box).
I have installed:

rpm -qa | grep wx
wxPython-common-gtk2-unicode-2.8.3.0-1_py2.4
libwxgtku2.6-2.6.3-7mdv2007.0
libwxgtkglu2.7-2.7.0-2mdv2007.0
libwxPythonGTK2.6-2.6.3.3-2.1mdv2007.0
libwxgtku2.7-devel-2.7.0-2mdv2007.0
wxPython2.8-devel-gtk2-unicode-2.8.3.0-1_py2.4
wxgtk2.7-2.7.0-2mdv2007.0
wxGTK2.6-2.6.3-7mdv2007.0
libwxgtku2.7-2.7.0-2mdv2007.0
wxPython2.8-gtk2-unicode-2.8.3.0-1_py2.4

wxgrass starts, only the Location Wizard is broken here.

uname -a
Linux localhost 2.6.17-11mdv #1 SMP Tue Feb 13 11:59:10 MST 2007 i686
Intel(R) Pentium(R) 4 CPU 2.53GHz GNU/Linux

here seems to work (python 2.4.4, wxpython 2.8.7.1). Try to
comment-out line 118 in gui_modules/location_wizard.py.

Helps?

Regards, Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

On Feb 2, 2008 6:41 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2008/1/31, Markus Neteler <neteler@osgeo.org>:
Markus:
> no system change at all (it is an older Mandriva 2007.0 box).
> I have installed:
>
> rpm -qa | grep wx
> wxPython-common-gtk2-unicode-2.8.3.0-1_py2.4
> libwxgtku2.6-2.6.3-7mdv2007.0
> libwxgtkglu2.7-2.7.0-2mdv2007.0
> libwxPythonGTK2.6-2.6.3.3-2.1mdv2007.0
> libwxgtku2.7-devel-2.7.0-2mdv2007.0
> wxPython2.8-devel-gtk2-unicode-2.8.3.0-1_py2.4
> wxgtk2.7-2.7.0-2mdv2007.0
> wxGTK2.6-2.6.3-7mdv2007.0
> libwxgtku2.7-2.7.0-2mdv2007.0
> wxPython2.8-gtk2-unicode-2.8.3.0-1_py2.4
>
> wxgrass starts, only the Location Wizard is broken here.
>
> uname -a
> Linux localhost 2.6.17-11mdv #1 SMP Tue Feb 13 11:59:10 MST 2007 i686
> Intel(R) Pentium(R) 4 CPU 2.53GHz GNU/Linux

here seems to work (python 2.4.4, wxpython 2.8.7.1). Try to
comment-out line 118 in gui_modules/location_wizard.py.

Helps?

I am afraid not:

vim gui_modules/location_wizard.py
make

grass63 -wx
Cleaning up temporary files.....
Starting GRASS ...

WARNING: Digitization tool is disabled (No module named
grass6_wxvdigit). Detailed information in README file.
Traceback (most recent call last):
  File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/gis_set.py",
line 374, in OnWizard
    gWizard = location_wizard.LocationWizard(self, self.tgisdbase.GetValue())
  File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/gui_modules/location_wizard.py",
line 1592, in __init__
    self.projtypepage.DoLayout()
  File "/home/neteler/grass63/dist.i686-pc-linux-gnu/etc/wx/gui_modules/location_wizard.py",
line 119, in DoLayout
    self.Layout()
  File "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 10236, in Layout
    return _core_.Window_Layout(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "uiIndex < m_nCount" failed
at ../include/wx/dynarray.h(813) in Item()

Markus