Uhd_fft fails

I see the following error when I run uhd_fft off the “latest” git
version.
Does anybody else have the same issue? Any clues about what could be
causing it?

File “./uhd_fft”, line 340, in
main ()
File “./uhd_fft”, line 336, in main
app = stdgui2.stdapp(app_top_block, “UHD FFT”, nstatus=1)
File
“/users/mranga/proj-dynspect.git/gnuradio/build/install/lib64/python2.6/site-packages/gnuradio/wxgui/stdgui2.py”,
line 38, in init
wx.App.init (self, redirect=False)
File
“/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line
7981, in init
self._BootstrapApp()
File
“/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line
7555, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/users/mranga/proj-dynspect.git/gnuradio/build/install/lib64/python2.6/site-packages/gnuradio/wxgui/stdgui2.py”,
line 42, in OnInit
self._max_noutput_items)
File
“/users/mranga/proj-dynspect.git/gnuradio/build/install/lib64/python2.6/site-packages/gnuradio/wxgui/stdgui2.py”,
line 64, in init
self.panel = stdpanel (self, self, top_block_maker, max_nouts)
File
“/users/mranga/proj-dynspect.git/gnuradio/build/install/lib64/python2.6/site-packages/gnuradio/wxgui/stdgui2.py”,
line 86, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “./uhd_fft”, line 124, in init
self.scope.set_callback(fftsink_callback)
File
“/users/mranga/proj-dynspect.git/gnuradio/build/install/lib64/python2.6/site-packages/gnuradio/gr/hier_block2.py”,
line 54, in getattr
return getattr(self._hb, name)
AttributeError: ‘gr_hier_block2_sptr’ object has no attribute
‘set_callback’

On 03/19/2013 12:19 PM, M. Ranganathan wrote:

“/users/mranga/proj-dynspect.git/gnuradio/build/install/lib64/python2.6/site-packages/gnuradio/wxgui/stdgui2.py”,

File
self.top_block = top_block_maker (frame, self, vbox, sys.argv)

M. Ranganathan


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
I’m going to guess that you’re using the non-gl versions of the FFT
sinks. And uhd_fft was recently updated to include a “frequency setter”
callback.

I have some patches that should fix this – I’ll try to get them in
today.

On Tue, Mar 19, 2013 at 1:37 PM, Marcus D. Leech [email protected]
wrote:

app = stdgui2.stdapp(app_top_block, "UHD FFT", nstatus=1)

File
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
M. Ranganathan


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

Thanks Marcus, I just applied your patch for this.

Note that the callback concept won’t work with nongl stuff, but the
patch at least will allow the rest of the code to work.

Tom

Verified the fix. Thanks!