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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F75f393a86b5a518b1f7a8d3ca97cf67?d=identicon&s=25 Jay Kumar (songsfreak)
on 2009-03-16 12:29
Hello Everyone,
   I have freshely installed Gnuradio-3.1.3 on Red Hat Enterprise Linux
4.Everything is working fine.I have installed
python-wxPython- for wx-gui interface.But
whenever i try to run the program I m getting "Attribute
Error" as shown below:-

[root@localhost python]# ./
Traceback (most recent call last):
  File "./", line 306, in ?
    main ()
  File "./", line 302, in main
    app = stdgui2.stdapp(app_top_block, "USRP FFT", nstatus=1)
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/", line
36, in __init__
    wx.App.__init__ (self, redirect=False)
"/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/", line
5301, in __init__
"/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/", line
4980, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/", line
39, in OnInit
    frame = stdframe (self.top_block_maker, self.title, self._nstatus)
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/", line
60, in __init__
    self.panel = stdpanel (self, self, top_block_maker)
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/", line
81, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "./", line 124, in __init__
line 175, in __init__ = fft_window(self, parent, size=size)
line 308, in __init__
    self.control_panel = control_panel(self)
line 241, in __init__
AttributeError: 'BoxSizer' object has no attribute 'AddStretchSpacer'

I am very new to gnuradio installation.Please help me out.

D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2009-03-16 15:20
(Received via mailing list)
On Mon, Mar 16, 2009 at 4:29 AM, Jay Kumar <> wrote:

>  File
> "/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/", line
> 5301, in __init__
>    self._BootstrapApp()
>  File
> "/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi/wx/", line
> 4980, in _BootstrapApp
>    return _core_.PyApp__BootstrapApp(*args, **kwargs)

It appears that the system actually already had wxPython 2.5.3
installed, and that is what is being found by GNU Radio.  You will
need to uninstall that version, and ensure that the wxPython RPM you
manually installed is found.

Could you send the file config.log from your GNU Radio source tree?
We should be testing that the version we find is at least 2.6 (for
3.1.3), and either we're not doing that or our test has a bug.


C01923474e5c07a74b6d32bfbb512c16?d=identicon&s=25 Hew How Chee (Guest)
on 2009-03-16 16:07
(Received via mailing list)
Hi Jay,

Did you manage to install using the script

'python install'

I faced the same problem last week during installation of release 1.3.1
on Fedora 6. I use wxPython-src- and need to do the following to
enable the second stage install of wxPython.

#export CFLAGS=-I/src/wxPython-src- (due to some
missing include files)
#export LDFLAGS=-L/src/wxPython-src- (some missing libraries)
#python install UNICODE=0 BUILD_GLCANVAS=0

Basically, the idea is to set CFLAGS and LDFLAGS to the missing files

My 'wx-config --list' gives the following

#wx-config --list

  Default config is gtk2-ansi-release-2.8

Default config will be used for output

Legacy configs available in /usr/local:

After getting pass the second stage install the error

"AttributeError: 'BoxSizer' object has no attribute 'AddStretchSpacer'"

should be gone.

This topic is locked and can not be replied to.