On 11/18/2011 10:20 AM, André Selva wrote: > Hello! > > I was learning how to make a block, using the "how to make a block > tutorial", and when I develop a little block for tests, I got the error > message displayed below. The error occurred when i ran the python tests. > > ====================================================================== > ERROR: test_001_quad_ff (__main__.qa_rtdsp) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "./qa_rtdsp.py", line 29, in setUp > self.fg = gr.flow_graph () > AttributeError: 'module' object has no attribute 'flow_graph' >
That looks like the old API which was deprecated years ago. Its not gr.top_block() Perhaps you should take a look at the latest howto. My personal favorite howto: http://gnuradio.org/cgit/gnuradio.git/tree/gr-howto-write-a-block-cmake -Josh _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio