[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] No attribute problem with "general" block
From: |
Martin Braun (CEL) |
Subject: |
Re: [Discuss-gnuradio] No attribute problem with "general" block |
Date: |
Tue, 12 Mar 2013 09:36:41 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Feng Lin,
change 'gr.block' to 'gr.basic_block'.
gr.block is the syntax used in the grextras package.
MB
On Mon, Mar 11, 2013 at 03:34:13PM -0500, Feng Lin wrote:
> Hi Martin and all,
>
>
> I am trying to use "gr_modtool" to generate signal processing blocks in
> python.
>
> In the current case, I am trying to use block type "general" (gr.block) to do
> a
> covariance matrix calculation.
>
>
> Unfortunately, when I was running the program, I got the errors:
>
>
> Traceback (most recent call last):
>
> File "./covariance_calc.py", line 11, in <module>
>
> from samp_cov import samp_cov
>
> File "/home/alexzh/gr-modtool/gr-howto/python/samp_cov.py", line 45, in
> <module>
>
> class samp_cov(gr.block):
>
> AttributeError: 'module' object has no attribute 'block'
>
>
> I have updated gnuradio version to 3.6.3, and gr_modtool is the latest version
> downloaded from github.
>
> The command I used to add a new block was "./gr_modtool.py add -t general -l
> python samp_cov"
>
> Even when I upgraded gnuradio version to 3.6.4, this issue still existed.
>
>
> If I changed to use hier block by "./gr_modtool.py add -t hier -l python
> samp_cov", it works OK.
>
> However, I do need the general block to work.
>
>
> Can anyone help me with this problem? Thanks a lot.
>
>
> Best wishes,
>
>
> Eric
>
>
>
>
>
--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin Braun
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu
KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
pgpUOwpUVxivW.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Discuss-gnuradio] No attribute problem with "general" block,
Martin Braun (CEL) <=