Hi Jean-Philippe, On 22/07/2022 15.47, Vasil Velichkov wrote: > Hi Jean-Philippe, > > On 22/07/2022 15.32, Jean-Philippe Buchet wrote: >> When I run the python script, removing the gru import, it stops and : > > Can you share this script? > >> taps=filter.firdies.low_pass(1.0, sample_rate, bw, bw*options, >> transition_width, filter.firdies.WIN_HANN) >> >> the error message is : type object >> 'gnuradio.filter.filter_python.firdies' has no attribute 'WIN_HANN" > > Looks like a typo, try changing firdies to firdes > > taps=filter.firdes.low_pass(1.0, sample_rate, bw, bw*options, > transition_width, filter.firdes.WIN_HANN)
Also try changing filter.firdes.WIN_HANN to fft.window.WIN_HANN taps=filter.firdes.low_pass(1.0, sample_rate, bw, bw*options, transition_width, fft.window.WIN_HANN) and make sure that fft module is imported in your script. from gnuradio import fft Regards, Vasil