[GRASS-dev] py.monitor: AttributeError: wxFramePtr instance has no attribute 'Bind'

Moritz Lennert mlennert at club.worldonline.be
Fri Jun 16 03:48:36 EDT 2006


Stephan Holl wrote:
> Hello Jáchym,
> 
> On Thu, 15 Jun 2006 17:53:00 +0200 " Jáchym Čepický"
> <jachym.cepicky at centrum.cz> wrote:
> 
>> hallo,
>> thank you for testing!
>> _____________________________________________________________
>>> Od: mlennert at club.worldonline.be
>>> Komu: Jachym Cepicky <jachym.cepicky at centrum.cz>
>>> CC: grass-dev at grass.itc.it
>>> Datum: 15.06.2006 11:49
>>> Předmět: [GRASS-dev] py.monitor: AttributeError: wxFramePtr
>>> instance has no attribute 'Bind'
>>>
>>> Using the latest version of py.monitor (06-06-14-4), I get the
>>> following
>> error:
>>>> ./py.mon start=py0
>>> Traceback (most recent call last):
>>>   File "mon.py", line 314, in ?
>>>     main()
>>>   File "mon.py", line 293, in main
>>>     pymonitor = Monitor(0)
>>>   File
>> "/usr/lib/python2.3/site-packages/wx-2.4-gtk-ansi/wxPython/wx.py",
>> line 1951, in __init__
>>>     _wxStart(self.OnInit)
>>>   File "mon.py", line 53, in OnInit
>>>     self.initToolBar()
>>>   File "mon.py", line 82, in initToolBar
>>>     self.frame.Bind(wx.EVT_TOOL, self.toggleButtons,
>>> id=self.ID_ZOOMIN)
>>> AttributeError: wxFramePtr instance has no attribute 'Bind'
>>>
>>> and an error window which reads:
>>>
>>> XRC resource: Cannot create bitmap from 'bitmap'.
>>>
>>> Moritz
>> currently, I'm not sitting by my computer, but I would say, that I
>> use wx-gtk 2.6. I use something, what is in debian testing. could you
>> try to install python-wxgtk2.6 ? But I'm not shure, it this will
>> help :-(
>>
>> Sholl: Could you try please and send me the result and your
>> configuration? Thanks!
>>
> 
> It seems that your needed package python-wxgtk2.6 is not in sarge. on
> Sarge I have libwxgtk2.4-python installed, which seems to be the
> equivalent.
> 
> Anyway, I have the following errors during
> ./py.mon start=py0
> 
> Traceback (most recent call last):
>   File "py.monitor", line 220, in ?
>     main()
>   File "py.monitor", line 200, in main
>     pymonitor = Monitor(0)
>   File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
> __init__ _wxStart(self.OnInit)
>   File "py.monitor", line 41, in OnInit
>     self.initToolBar()
>   File "py.monitor", line 66, in initToolBar
>     self.frame.Bind(wx.EVT_TOOL, self.toggleButtons, id=self.ID_ZOOMIN)
> AttributeError: wxFramePtr instance has no attribute 'Bind'
> 
> @Moritz: are you on debian sarge as well?


No, I am on Etch/Sid...  and yes, 2.6 is not available on Sarge.

Moritz




More information about the grass-dev mailing list