[GRASS-dev] wxgui not working in ubuntu feisty

OK, I just downloaded the wxgui files, which were working in my
previous Dapper install, and they don't work in my Feisty. I'm
guessing is related to my wxwidgets install, which is hand-compiled in
a non-unicode mode, because I use Survex Aven (www.survex.com) to work
with cave mapping data, and Survex needs a non-unicode version of
Wx...
here is the output:

GRASS 6.3.cvs (rugosidade):~ > wxgrass &
[1] 8546
GRASS 6.3.cvs (rugosidade):~ > Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 651, in <module>
    app = GMApp(0)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 635, in OnInit
    mainframe = GMFrame(parent=None, id=wx.ID_ANY, title="")
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 169, in __init__
    self.newDisplay()
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 439, in newDisplay
    idx=self.disp_idx, gismgr=self, notebook=self.gm_cb)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/wxgui_utils.py",
line 65, in __init__
    Map=self.Map)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
995, in __init__
    self.AddToolbar(toolb)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
1063, in AddToolbar
    self.maptoolbar = toolbars.MapToolbar(self, self.Map)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/toolbars.py", line
107, in __init__
    longHelp=Icons["overlay"].GetDesc())
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3715, in AddLabelTool
    shortHelp, longHelp, clientData)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3637, in DoAddTool
    return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
ValueError: invalid null reference in method 'ToolBarBase_DoAddTool',
expected argument 4 of type 'wxBitmap const &'

[1]+ Done wxgrass

Thanks
--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Hi Carlos,

The problem is not related to wx: you have all that is needed.

The problem comes from icon management: an icon named gui-overlay.gif
which should be in $GISBASE/etc/gui/icons isn't there, and that flops
the whole initialisation.

Work-around:create some icon posing as gui-overlay in that position, say:

# cp $GISBASE/etc/gui/icons/gui-georect.gif
$GISBASE/etc/gui/icons/gui-overlay.gif

Daniel.

On 5/12/07, Carlos Guâno Grohmann <carlos.grohmann@gmail.com> wrote:

OK, I just downloaded the wxgui files, which were working in my
previous Dapper install, and they don't work in my Feisty. I'm
guessing is related to my wxwidgets install, which is hand-compiled in
a non-unicode mode, because I use Survex Aven (www.survex.com) to work
with cave mapping data, and Survex needs a non-unicode version of
Wx...
here is the output:

GRASS 6.3.cvs (rugosidade):~ > wxgrass &
[1] 8546
GRASS 6.3.cvs (rugosidade):~ > Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 651, in <module>
    app = GMApp(0)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 635, in OnInit
    mainframe = GMFrame(parent=None, id=wx.ID_ANY, title="")
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 169, in __init__
    self.newDisplay()
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 439, in newDisplay
    idx=self.disp_idx, gismgr=self, notebook=self.gm_cb)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/wxgui_utils.py",
line 65, in __init__
    Map=self.Map)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
995, in __init__
    self.AddToolbar(toolb)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
1063, in AddToolbar
    self.maptoolbar = toolbars.MapToolbar(self, self.Map)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/toolbars.py", line
107, in __init__
    longHelp=Icons["overlay"].GetDesc())
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3715, in AddLabelTool
    shortHelp, longHelp, clientData)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3637, in DoAddTool
    return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
ValueError: invalid null reference in method 'ToolBarBase_DoAddTool',
expected argument 4 of type 'wxBitmap const &'

[1]+ Done wxgrass

Thanks
--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
-- Daniel Calvelo Aros

On 5/13/07, Daniel Calvelo <dca.gis@gmail.com> wrote:
OK Daniel, that did it.

thanks

Hi Carlos,

The problem is not related to wx: you have all that is needed.

The problem comes from icon management: an icon named gui-overlay.gif
which should be in $GISBASE/etc/gui/icons isn't there, and that flops
the whole initialisation.

Work-around:create some icon posing as gui-overlay in that position, say:

# cp $GISBASE/etc/gui/icons/gui-georect.gif
$GISBASE/etc/gui/icons/gui-overlay.gif

Daniel.

On 5/12/07, Carlos Guâno Grohmann <carlos.grohmann@gmail.com> wrote:
> OK, I just downloaded the wxgui files, which were working in my
> previous Dapper install, and they don't work in my Feisty. I'm
> guessing is related to my wxwidgets install, which is hand-compiled in
> a non-unicode mode, because I use Survex Aven (www.survex.com) to work
> with cave mapping data, and Survex needs a non-unicode version of
> Wx...
> here is the output:
>
> GRASS 6.3.cvs (rugosidade):~ > wxgrass &
> [1] 8546
> GRASS 6.3.cvs (rugosidade):~ > Traceback (most recent call last):
> File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 651, in <module>
> app = GMApp(0)
> File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
> line 7757, in __init__
> self._BootstrapApp()
> File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
> line 7354, in _BootstrapApp
> return _core_.PyApp__BootstrapApp(*args, **kwargs)
> File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 635, in OnInit
> mainframe = GMFrame(parent=None, id=wx.ID_ANY, title="")
> File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 169, in __init__
> self.newDisplay()
> File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 439, in newDisplay
> idx=self.disp_idx, gismgr=self, notebook=self.gm_cb)
> File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/wxgui_utils.py",
> line 65, in __init__
> Map=self.Map)
> File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
> 995, in __init__
> self.AddToolbar(toolb)
> File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
> 1063, in AddToolbar
> self.maptoolbar = toolbars.MapToolbar(self, self.Map)
> File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/toolbars.py", line
> 107, in __init__
> longHelp=Icons["overlay"].GetDesc())
> File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
> line 3715, in AddLabelTool
> shortHelp, longHelp, clientData)
> File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
> line 3637, in DoAddTool
> return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
> ValueError: invalid null reference in method 'ToolBarBase_DoAddTool',
> expected argument 4 of type 'wxBitmap const &'
>
> [1]+ Done wxgrass
>
> Thanks
> --
> +-----------------------------------------------------------+
> Carlos Henrique Grohmann - Guano
> Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
> Linux User #89721 - carlos dot grohmann at gmail dot com
> +-----------------------------------------------------------+
> _________________
> "Good morning, doctors. I have taken the liberty of removing Windows
> 95 from my hard drive."
> --The winning entry in a "What were HAL's first words" contest judged
> by 2001: A SPACE ODYSSEY creator Arthur C. Clarke
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>

--
-- Daniel Calvelo Aros

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

I've had to make some new icons. I did another one yesterday. They are all
in the cvs as this is where icons live. You just need to update.

Michael

On 5/13/07 2:48 AM, "Carlos "Guâno" Grohmann" <carlos.grohmann@gmail.com>
wrote:

On 5/13/07, Daniel Calvelo <dca.gis@gmail.com> wrote:
OK Daniel, that did it.

thanks

Hi Carlos,

The problem is not related to wx: you have all that is needed.

The problem comes from icon management: an icon named gui-overlay.gif
which should be in $GISBASE/etc/gui/icons isn't there, and that flops
the whole initialisation.

Work-around:create some icon posing as gui-overlay in that position, say:

# cp $GISBASE/etc/gui/icons/gui-georect.gif
$GISBASE/etc/gui/icons/gui-overlay.gif

Daniel.

On 5/12/07, Carlos Guâno Grohmann <carlos.grohmann@gmail.com> wrote:

OK, I just downloaded the wxgui files, which were working in my
previous Dapper install, and they don't work in my Feisty. I'm
guessing is related to my wxwidgets install, which is hand-compiled in
a non-unicode mode, because I use Survex Aven (www.survex.com) to work
with cave mapping data, and Survex needs a non-unicode version of
Wx...
here is the output:

GRASS 6.3.cvs (rugosidade):~ > wxgrass &
[1] 8546
GRASS 6.3.cvs (rugosidade):~ > Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 651, in <module>
    app = GMApp(0)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7757, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7354, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 635, in OnInit
    mainframe = GMFrame(parent=None, id=wx.ID_ANY, title="")
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 169, in __init__
    self.newDisplay()
  File "/usr/local/grass-6.3.cvs/etc/wx/wxgui.py", line 439, in newDisplay
    idx=self.disp_idx, gismgr=self, notebook=self.gm_cb)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/wxgui_utils.py",
line 65, in __init__
    Map=self.Map)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
995, in __init__
    self.AddToolbar(toolb)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
1063, in AddToolbar
    self.maptoolbar = toolbars.MapToolbar(self, self.Map)
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/toolbars.py", line
107, in __init__
    longHelp=Icons["overlay"].GetDesc())
  File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3715, in AddLabelTool
    shortHelp, longHelp, clientData)
  File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3637, in DoAddTool
    return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
ValueError: invalid null reference in method 'ToolBarBase_DoAddTool',
expected argument 4 of type 'wxBitmap const &'

[1]+ Done wxgrass

Thanks
--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
-- Daniel Calvelo Aros

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton