Forum: GNU Radio 'BoxSizer' object has no attribute 'AddStretchSpacer'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jay K. (Guest)
on 2009-03-18 13:19
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.
Johnathan C. (Guest)
on 2009-03-18 16:19
(Received via mailing list)
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
Jay K. (Guest)
on 2009-03-20 08:44
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.
This topic is locked and can not be replied to.