I've trying to figure out why my python code is giving me the following error (I read other post here, but I cannot find the issue). The error is the following:
"test_block/top_block.py", line 33, in __init__
0, 0, 0, 0, 0, 1, 1, 1)
TypeError: unbound method make() must be called with my_block instance as first argument (got int instance instead)"
My code is the following:
class top_block(grc_wxgui.top_block_gui):
def __init__(self):
grc_wxgui.top_block_gui.__init__(self, title="Top Block")
_icon_path = "/usr/share/icons/hicolor/32x32/apps/gnuradio-grc.png"
self.SetIcon(wx.Icon(_icon_path, wx.BITMAP_TYPE_ANY))
self.samp_rate = samp_rate = 32000
self.extras_my_block_0 = gr_extras.my_block(2, 29, 10, 0, -0.1, 0.1, -0.01,
0, 0, 0, 0, 0, 1, 1, 1)
self.extras_message_dumper_0 = gr_extras.message_dumper()
self.connect((self.extras_my_block_0, 0), (self.extras_message_dumper_0, 0))
def get_samp_rate(self):
return self.samp_rate
def set_samp_rate(self, samp_rate):
self.samp_rate = samp_rate
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
(options, args) = parser.parse_args()
tb = top_block()
tb.Run(True)
Thanks for your help,
Jose