'BoxSizer' object has no attribute 'AddStretchSpacer'


#1

Hello Everyone!!

I have installed Gnuradio-3.1.3 on RedHat Enterprise Linux
4.Everything is working fine ,I have" checked the “Hello World” program
and even the “usrp_oscope.py” p,ogram is working fine,I can the see the
window showing the signals.
But when i try to run the “usrp_fft.py” program I am getting
Attribute Error as showm below:-

Traceback (most recent call last):
File “./usrp_fft.py”, line 306, in ?
main ()
File “./usrp_fft.py”, line 302, in main
app = stdgui2.stdapp(app_top_block, “USRP FFT”, nstatus=1)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui2.py”, line
36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/_core.py”, line
5301, in init
self._BootstrapApp()
File
“/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/_core.py”, line
4980, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui2.py”, line
39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui2.py”, line
60, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui2.py”, line
81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “./usrp_fft.py”, line 124, in init
avg_alpha=options.avg_alpha)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/fftsink2.py”,
line 175, in init
self.win = fft_window(self, parent, size=size)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/fftsink2.py”,
line 308, in init
self.control_panel = control_panel(self)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/fftsink2.py”,
line 241, in init
control_box.AddStretchSpacer()
AttributeError: ‘BoxSizer’ object has no attribute ‘AddStretchSpacer’

I am very new to gnuradio.So kindly help me out.
Thanks.


#2

On Wed, Mar 18, 2009 at 4:19 AM, Jay K. removed_email_address@domain.invalid wrote:

“/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/_core.py”, line

As has already been mentioned, you system is still trying to use
wxPython 2.5.3. You can see this is so by looking at the path
referenced in the error, quoted above. You need to have properly
installed wxPython >= 2.6, and verified the system finds that instead.

Johnathan


#3

Hello Sir,
Actually i was trying to install
python-wxPython-2.8.9.1-1.el4.pp.src.rpm but somehow it could not be
build.So i had to go with the wx-2.5.3-gtk2-ansi.Even i had tried with
the wx-2.8.3-gtk2-ansi but python 2.4 (abi) is required.Can u just tell
me what should i do??In which directory does the rpm
“python-wxPython-2.8.9.1-1.el4.pp.src.rpm” gets installed.I m having
problem with the usrp_fft.py program only.

I am really very new to the Gnuradio installation.So kindly help me
out.