I tried the flow graph shown below, but I get the following error and cannot run it. What could be the cause? Thanks.
Executing: /usr/bin/python3 -u /home/nomo/fft.py
Traceback (most recent call last):
File "/home/nomo/fft.py", line 230, in <module>
main()
File "/home/nomo/fft.py", line 208, in main
tb = top_block_cls()
File "/home/nomo/fft.py", line 159, in __init__
self.fft_vxx_0 = fft.fft_vcc(fftsize, True, window.blackmanharris(1024), True, 1)
AttributeError: type object 'fft' has no attribute 'fft_vcc'
You've got a name conflict: You try to use the fft
module (as imported in your python by from gnuradio import fft
, but you also have declared the ID of this flowgraph class to be fft
. So, Python picks the wrong one.
Pick any other Id
in your Options
block and the error will go away.