USRP Software Radio

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot run benchmark_rate

Solved!
Go to solution

Hi,

 

I tried to run the benchmark_rate.cpp and benchmark_rate.py but cannot. Do you have any idea whether it is because the uhd installation or my system settings.

BIXUT_0-1733232627159.pngBIXUT_1-1733232644413.png

Thanks.

0 Kudos
Message 1 of 4
(290 Views)

BIXUT,

the error indicates that uhd python support is not present in your python version. Looks like you are attempting to run the benmark_rate.py directly from source. How did you installer UHD?

If you installed UHD via linux package manager you would also need to install the package python3-uhd to install the UHD Python API into your system python version.

 

Regards,

 

0 Kudos
Message 2 of 4
(282 Views)

Hi,

 

I just follow the steps in https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_L.... I think it is Building and installing UHD from source code. How can I install the package python3-uhd? Do I need to install the UHD again?

0 Kudos
Message 3 of 4
(257 Views)
Solution
Accepted by topic author BIXUT

Hi BIXUT,

on linux the python API typically is included when you build from source. 

If you build into a custom prefix (not installed you custom build to /usr/local/) than you may also need to tell python where to find the python API.

export PYTHONPATH=$LOCALPREFIX/lib/python3.12/site-packages:$PYTHONPATH


I would also expect that you would run the benchmark_rate tool from your installation location, so either /usr/local/lib/uhd/examples/benchmark_rate or $LOCALPREFIX/lib/uhd/examples/benchmark_rate.

0 Kudos
Message 4 of 4
(251 Views)