discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Error in creating block


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Error in creating block
Date: Thu, 02 Apr 2015 12:21:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Vishwanatha,

the generated python is bogus; the "------>line31...<------" should not be there. This indicates that there is something wrong with your GRC XML file, most probably the python command in the <make></make> tag is failing. Reading the line "cannot find 'loop_bw': digital.costas_loop_cc($loop_bw, $order)",
I'd assume that you meant to use loop_bw as a parameter to your block's constructor/make function, but maybe forgot to define it somewhere else (or you've got a typo).

Greetings,
Marcus

On 04/02/2015 11:03 AM, Vishwanatha H G wrote:
Hi..
 I crated a block named 'costas_loop_cc'. but when I connect to test this block with NULL sink and NULL Source, shows the error like this:
Error 1:
Generating: "/home/lekha/top_block.py"
Executing: "/home/lekha/top_block.py"

  File "/home/lekha/top_block.py", line 31
    self.costas_loop_cc_0 = -------->
                                    ^
SyntaxError: invalid syntax

>>> Done

the part of the generated  top_block.py code related to error is:
   ##################################################
        # Blocks
        ##################################################
        self.costas_loop_cc_0 = -------->line 31
        cannot find 'loop_bw': digital.costas_loop_cc($loop_bw, $order)
        <--------
        self.blocks_null_source_0 = blocks.null_source(gr.sizeof_gr_complex*1)
        self.blocks_null_sink_0 = blocks.null_sink(gr.sizeof_gr_complex*1)

        ##################################################
        # Connections
        ##################################################
        self.connect((self.blocks_null_source_0, 0), (self.costas_loop_cc_0, 0))
        self.connect((self.costas_loop_cc_0, 0), (self.blocks_null_sink_0, 0))

I wish it is a small error but I couldn’t  get. while creating a block when I execute  gr_modtool makexml command it shows the error :

AttributeError: 'NoneType' object has no attribute 'group'.

 what does it mean AttributeError? Is there any relation with this to above mentioned error. thanks for your advice



_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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