discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Error while testing a new block


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Error while testing a new block
Date: Fri, 18 Nov 2011 11:08:52 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]