Forum: GNU Radio uhd_fft fails

Aed4de86bda84c7b1c5032905775f64d?d=identicon&s=25 M. Ranganathan (Guest)
on 2013-03-19 17:21
(Received via mailing list)
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 <module>
    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'
558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus D. Leech (Guest)
on 2013-03-19 18:38
(Received via mailing list)
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
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
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.
C539637020fd56193dd6daec746c4a84?d=identicon&s=25 Tom Rondeau (Guest)
on 2013-03-19 19:34
(Received via mailing list)
On Tue, Mar 19, 2013 at 1:37 PM, Marcus D. Leech <mleech@ripnet.com>
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 Leech
> 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
Aed4de86bda84c7b1c5032905775f64d?d=identicon&s=25 M. Ranganathan (Guest)
on 2013-03-19 20:22
(Received via mailing list)
Verified the fix. Thanks!
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.