Hi John, On 13/06/2021 14.34, John Murphy wrote: > The blocks pull in > gr-fft and (for the lfsr stuff) gr-digital. There is a source block, a > general block, and a couple noblock utility classes in the custom OOT > module. > But when I attempt to run a flowgraph containing these OOT blocks in GRC I > get the "module attribute error module has no component block" (sic).
One possible reason is that you have undefined references in the .so file. To resolve this you need to link both gr-fft and gr-digital. In you top level CMakeLists.txt you need to add gr-fft and gr-digital in the Gnuradio's find_package list. find_package(Gnuradio "3.8" REQUIRED COMPONENTS blocks filter fft digital) And then in lib/CMakeLists.txt you need to link those to your OOT module target_link_libraries(myOOTblocks gnuradio::gnuradio-runtime gnuradio::gnuradio-fft gnuradio::gnuradio-digital) Also open python/__init__.py and change except ImportError: to except ModuleNotFoundError: See also https://wiki.gnuradio.org/index.php/GNU_Radio_3.8_OOT_Module_Porting_Guide#GNU_Radio_Components Regards, Vasil