[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When i want to run some RFNOC blocks in Gnuradio i faced with errors
From: |
Vasil Velichkov |
Subject: |
Re: When i want to run some RFNOC blocks in Gnuradio i faced with errors module 'ettus' has no attribute 'device3' |
Date: |
Mon, 10 Jan 2022 13:01:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
Hi sp h,
On 10/01/2022 10.28, sp h wrote:
> When I removed device 3 block I had these errors
>
> File "/home/sp/Downloads/default474.py", line 192, in main
> tb = top_block_cls()
> File "/home/sp/Downloads/default474.py", line 143, in __init__
> self.ettus_rfnoc_digital_gain_0 = ettus.rfnoc_generic(
> AttributeError: module 'ettus' has no attribute 'rfnoc_generic'
>
> with device 3 block in the GRC file, I had these errors...
>
> main()
> File "/home/sp/Downloads/default474.py", line 199, in main
> tb = top_block_cls()
> File "/home/sp/Downloads/default474.py", line 76, in __init__
> self.device3 = usrp = ettus.device3(uhd.device_addr_t(
> ",".join(('type=x300', '')) ))
> AttributeError: module 'ettus' has no attribute 'device3'
A possible reason for errors like above is undefined reference/symbol in the
OOT's shared object (.so) file. Go in the gr-ettus' build director, execute
"ldd -r ./libs/libgnuradio-ettus.so" and provide its full output.
Also open python/__init__.py, change ImportError to ModuleNotFoundError then
rebuild and reinstall.
See https://github.com/gnuradio/gnuradio/issues/4761
Regards,
Vasil