I think "fftsink.make_fft_sink_c" should be "fftsink.fft_sink_c"
Quoting Anastasopoulos Achilleas <[EMAIL PROTECTED]>: > Dear all, > > I received the USRP, followed the WiKi instruction and > it seems to be working since I get meaningful result when I run > test_usrp_standard_tx and test_usrp_standard_rx. > > I have also updated my gnuradio installation using > tarballs 2.5 > > However I have problems running any of the python > scripts on gnuradio-examples that involve the USRP. > > I have sanitized one of the scripts and it works fine when I > comment out the > from gnuradio import usrp > line > but it gives an error otherwise. > > I attach the simple script and error message. > > Any idea as to what might be wrong? > > Thanks > Achilleas > > > =================================================== > #!/usr/bin/env python > > from gnuradio import gr > > from gnuradio.wxgui import stdgui, fftsink > import wx > > #from gnuradio import usrp > > class nbfm_rx_graph (stdgui.gui_flow_graph): > def __init__(self,frame,panel,vbox,argv): > stdgui.gui_flow_graph.__init__ (self,frame,panel,vbox,argv) > > src = gr.sig_source_c (256e3, gr.GR_SIN_WAVE, 20e3, 1e1) > > usrp_fft, fft_win1 = \ > fftsink.make_fft_sink_c (self, panel, "USRP Output", > 512, > 256e3, 0, 100) > self.connect (src, usrp_fft) > vbox.Add (fft_win1, 1, wx.EXPAND) > > def main(): > app = stdgui.stdapp (nbfm_rx_graph, "NBFM RX") > app.MainLoop () > > if __name__ == '__main__': > main() > > =================================================== > > Traceback (most recent call last): > File "./test2.py", line 29, in ? > main() > File "./test2.py", line 25, in main > app = stdgui.stdapp (nbfm_rx_graph, "NBFM RX") > File "/usr/local/lib/python2.3/site-packages/gnuradio/wxgui/stdgui.py", > line 35, in __init__ > wx.App.__init__ (self) > File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk-ansi/wx/_core.py", > line 5301, in __init__ > self._BootstrapApp() > File "/usr/lib/python2.3/site-packages/wx-2.5.3-gtk-ansi/wx/_core.py", > line 4980, in _BootstrapApp > return _core_.PyApp__BootstrapApp(*args, **kwargs) > File "/usr/local/lib/python2.3/site-packages/gnuradio/wxgui/stdgui.py", > line 38, in OnInit > frame = stdframe (self.flow_graph_maker, self.title) > File "/usr/local/lib/python2.3/site-packages/gnuradio/wxgui/stdgui.py", > line 59, in __init__ > self.panel = stdpanel (self, self, flow_graph_maker) > File "/usr/local/lib/python2.3/site-packages/gnuradio/wxgui/stdgui.py", > line 85, in __init__ > self.fg.start () > File "/usr/local/lib/python2.3/site-packages/gnuradio/gr/flow_graph.py", > line 73, in start > self.scheduler = scheduler (self) > File "/usr/local/lib/python2.3/site-packages/gnuradio/gr/scheduler.py", > line 49, in __init__ > sts = single_threaded_scheduler (list_of_blocks) > File > "/usr/local/lib/python2.3/site-packages/gnuradio/gr/gnuradio_swig_python.py", > line 1484, in single_threaded_scheduler > return _gnuradio_swig_python.single_threaded_scheduler(*args) > TypeError: argument number 1: a 'gr_block_sptr' is expected, > 'gr_block_sptrPtr(<gr_block sig_source_c (0)>)' is received in sequence > element 0 > > ================================================= > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio