Wednesday, May 5, 2021

Re: Block not found in module although it is there

Hi Ralf,

On 05/05/2021 17.38, Ralf Gorholt wrote:
> AttributeError: module 'dl5eu' has no attribute 'dvbt_ofdm_synchronization'
> Can anybody give me a hint what is happening here?

You most probably need to link the gnuradio's fft component to your OOT block. In your CMakeLists.txt find the line that contains `find_package(gnuradio "3.8" ...` and add fft to the list of components. It should looks like this

find_package(Gnuradio "3.8" REQUIRED COMPONENTS blocks filter fft)

and then in lib/CMakeLists.txt you need to link the gnuradio-fft. Something similar to

target_link_libraries(dl5eu gnuradio::gnuradio-runtime gnuradio::gnuradio-fft)

Also open python/__init__.py and

except ImportError:

to

except ModuleNotFoundError:

You can find some more info in https://wiki.gnuradio.org/index.php/GNU_Radio_3.8_OOT_Module_Porting_Guide#GNU_Radio_Components

Regards,
Vasil

No comments:

Post a Comment