[GRASS-dev] wxPython requirements [was d.menu, d.ask]

Daniel Calvelo dca.gis at gmail.com
Thu Mar 15 17:04:02 EDT 2007


That is the initializing code for the main application object, meaning
to be later called with the mainloop handler. You should have it at
the end of gism.py, within the if __name__ == '__main__' block.

Moritz, I have yesterday's tarball of grassaddons/gui and it seems to
work ok. My setup is debian unstable + wx2.8 from wxcommunity.com. I
even tried it with debians grass6.0 and it kind of works :)

Daniel.

On 3/15/07, Michael Barton <michael.barton at asu.edu> wrote:
> On my copy, line 302 (newest version) is simply....
>
>                    style=wx.DEFAULT_FRAME_STYLE,
>
> This suggests that is it something with your system. I don't know what app =
> GMApp(0) is.
>
> Michael
>
>
> On 3/15/07 10:08 AM, "Moritz Lennert" <mlennert at club.worldonline.be> wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 15/03/07 17:40, Jachym Cepicky wrote:
> >> Hi,
> >>
> >> the only problem seems to be version of wxWidegets (2.8.xx, maybe
> >> 2.8.1.x). It should work with python 2.3
> >
> > I installed 2.8.1.1 on Debian from the Ubuntu packages (installation
> > went smoothly).
> >
> > However, I get the following error message:
> >
> > GRASS 6.3.cvs (BELGIQUE):~/SRC/GRASS/gui > python gism.py
> > Traceback (most recent call last):
> >   File "gism.py", line 302, in ?
> >     app = GMApp(0)
> >   File
> > "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
> > 7757, in __init__
> >     self._BootstrapApp()
> >   File
> > "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
> > 7354, in _BootstrapApp
> >     return _core_.PyApp__BootstrapApp(*args, **kwargs)
> >   File "gism.py", line 282, in OnInit
> >     mainframe = GMFrame(None, -1, "")
> >   File "gism.py", line 83, in __init__
> >     render.Track().SetChbk(self.gm_cb)
> > AttributeError: 'module' object has no attribute 'Track'
> >
> > Is this a problem with my Ubuntu/Debian mix or is there something else ?
> >
> > Moritz
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFF+X13MiPFf/8qzFYRAvLeAKCCgqf4RXEVDGw/bWJNglr3t5AdwACfSjbm
> > nyGg55nTgxmb9WIG46Jr+Sc=
> > =sUQ3
> > -----END PGP SIGNATURE-----
>
> __________________________________________
> 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
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>


-- 
-- Daniel Calvelo Aros




More information about the grass-dev mailing list