12-03-2024 07:31 AM
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.
Thanks.
Solved! Go to Solution.
12-03-2024 07:50 AM
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,
12-03-2024 09:29 AM
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?
12-03-2024 09:55 AM
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.