discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] New module constructor


From: Brooke Hayden
Subject: [Discuss-gnuradio] New module constructor
Date: Fri, 15 Mar 2013 11:36:57 -0400

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?

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 = "">  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

reply via email to

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