If you want a guarantee that your Docker will always have the same UHD, then building from source is actually not a bad idea. I would check why the Python API is missing in your source build. There's two places to check:
1) The cmake output might say something like "Python libraries missing" 2) If CMake is successful, and everything is built and installed correctly, then maybe the Python libs are not being installed into the right (or an unexpected location). --M On Tue, Sep 16, 2025 at 12:59 PM <[email protected]> wrote: > Hi! > > For a long time, i used the default UHD installation that ships with > Ubuntu which is version 4.1.0.5.3 and I wanted to upgrade it (e.g. > 4.9.0.0). It seems that the best option is using the next commands: > > sudo add-apt-repository ppa:ettusresearch/uhd > sudo apt-get update > sudo apt-get install libuhd-dev uhd-host > > While this is very convenient, I’d like to install the exact same UHD > version across differents devices and even in a devcontainer. The problem > is that *PPA builds for Jammy and other versions change quickly* (e.g. > ~jammy1, ~jammy2, ~jammy3), so I’m worried this could break reproducibility > over time. I need to match my N310 and X410 images with a stable UHD > version. > > I also tried *building from source*, which works: > > git clone https://github.com/EttusResearch/uhd.git > > cd uhd > > git checkout v4.9.0.0 > > cd host > > mkdir build && cd build > > cmake .. > > make -j$(nproc) > > sudo make install > > sudo ldconfig > > However, this approach feels too heavy to repeat frequently, and I > additionally needed the Python API. > > After installing, *import uhd* initially failed: > > >>> import uhd > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > ModuleNotFoundError: No module named 'uhd' > > > Could you recommend any other way to achieve this goal? I’m fine with > using a version other than 4.9.0.0, but I’d like to test the improvements > you introduced over my current version, especially regarding RFNoC. > > Best Regards, > > Álvaro > _______________________________________________ > USRP-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] >
_______________________________________________ USRP-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
