Friday, April 20, 2018

[Discuss-gnuradio] New OOT block error AttributeError: 'module' object has no attribute

Hi,

I have created an OOT module with my block written in C++ and it works. Now I would like to use a fir filter within my block, in the same way the equalizers in gr-digital do. For example the lms equalizer https://github.com/gnuradio/gnuradio/blob/master/gr-digital/lib/lms_dd_equalizer_cc_impl.h
I have inherited from filter::kernel::fir_filter_ccc and added my code.
I can build and install my block without errors, but when I use it in grc_companion, I get the error

AttributeError: 'module' object has no attribute 'myblock'

This error goes away when I don't inherit the filter. I guess that I need to add something to the CMakeLists.txt files? I have tried copying parts of the gr-digital CMakeLists.txt files to my OOT but it didn't solve the problem.
I also tried to add my block to gr-digital directly. However, I can't build gr-digital following the steps for OOT modules. I installed it using pybombs and that doesn't allow me to modify it.

I would really appreciate if someone can point me in the right direction as I'm a bit lost at the moment.

Regards,
Murray

No comments:

Post a Comment