[Top][All Lists]

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

Re: [Discuss-gnuradio] New module constructor

From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] New module constructor
Date: Fri, 15 Mar 2013 17:11:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Mar 15, 2013 at 11:36:57AM -0400, Brooke Hayden wrote:
> We have created a lfm_source_c module. Ran the cmake ../, make, sudo make
> install, and sudo ldconfig commands. All worked fine. When attempting to use
> our new block in python, we received the following error about a constructor
> not being defined. I'm assuming there is just something small wrong with the
> swig file (gr_modtool.py generated). Our block has 6 parameters, all of which
> are doubles, but the last which is a gr_complex. We have constructors defined
> in the .h and .cc files.
> Any ideas of how to fix this problem?

Not without seeing the troublesome code.
gr_modtool simply puts 'include' commands into the .i-file, so I doubt
that's the problem.

> Error:
> Traceback (most recent call last):
>   File "chirp_test.py", line 72, in <module>
>     tx_sink().run()
>   File "chirp_test.py", line 50, in __init__
>     sig0 = tx_test(options.samp_rate)
>   File "chirp_test.py", line 18, in __init__
>     src = radar2.lfm_source_c(sample_rate,10.0,1.0,10000000.0,2.0,0)
>   File "/usr/local/lib/python2.7/dist-packages/radar2/radar2_swig.py", line
> 319, in __init__
>     def __init__(self, *args, **kwargs): raise AttributeError("No constructor
> defined")
> AttributeError: No constructor defined
> Thanks,
> ONU GNU Radio

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

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

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Attachment: pgptV9IZbaHaT.pgp
Description: PGP signature

reply via email to

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