Hi Cédric, I have uninstalled the binary version of GNU Radio and replaced it with version 3.9.0.0, which I built from source as per the instructions on the following web pages:
- https://wiki.gnuradio.org/index.php/InstallingGR#From_Source - https://wiki.gnuradio.org/index.php/ModuleNotFoundError#B._Finding_the_Python_library I have verified the installation as follows: - $ gnuradio-config-info --version --> returns '3.9.0.0' - $ gnuradio-config-info --prefix --> returns '/usr/local' - $ find /usr/local -name gnuradio | grep "packages" --> returns '/usr/local/lib/python3/dist-packages/gnuradio' and '/usr/local/lib/python2.7/dist-packages/gnuradio' - Python3 interpreter: from gnuradio import uhd --> uhd.__file__ --> returns '/usr/local/lib/python3/dist-packages/gnuradio/uhd/__init__.py' - Reinstalled GNU Radio Companion via Ubuntu Software & Updates utility Next, I opened GNU Radio Companion and tried to connect to a UHD source like before. Result: Exactly the same problem as before! GRC is still pulling in UHD 3.10, even though I did not install that version of UHD: linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown UHD Warning: EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex Using images directory: <no images directory located> Set the environment variable 'UHD_IMAGES_DIR' appropriately or follow the below instructions to download the images package. Please run: "/usr/lib/x86_64-linux-gnu/uhd/utils/uhd_images_downloader.py" Traceback (most recent call last): File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 212, in <module> main() File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 188, in main tb = top_block_cls() File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 88, in __init__ channels=list(range(0,1)), File "/usr/lib/python3/dist-packages/gnuradio/uhd/__init__.py", line 125, in constructor_interceptor return old_constructor(*args) File "/usr/lib/python3/dist-packages/gnuradio/uhd/uhd_swig.py", line 3259, in make return _uhd_swig.usrp_source_make(device_addr, stream_args, issue_stream_cmd_on_start) RuntimeError: LookupError: KeyError: No devices found for -----> Device Address: serial: 318425D There is also a new problem: When I try to play an old waveform recording from file (my "Hello World" flowgraph), GRC throws an error regarding the Frequency Sink block: - AttributeError: 'freq_sink_c_sptr' object has no attribute 'set_fft_window_normalized' Brendan. On Tue, Apr 20, 2021 at 9:17 PM Cédric Hannotier via USRP-users < usrp-users@lists.ettus.com> wrote: > On 20/04/21 16:02, Brendan Horsfield wrote: > > I have reinstalled both UHD and GNU Radio: [...], the > > latter from binaries as recommended on the GNU Radio website. > > Do you mean the binaries from your distribution repo > (eg. Ubuntu bionic: https://packages.ubuntu.com/bionic/gnuradio)? > > If yes, it cannot work. > The dependency graph pulls "libuhd003.010.003". > > I guess most GNU Radio binaries won't work > because they are built with other versions of UHD > and hence pull specific versions. > > > The following NEW packages will be installed: > > gnuradio gnuradio-dev libcodec2-0.7 libgnuradio-analog > libgnuradio-audio > > libgnuradio-blocks libgnuradio-channels libgnuradio-digital > libgnuradio-dtv > > libgnuradio-fec libgnuradio-fft libgnuradio-filter libgnuradio-pmt > > libgnuradio-qtgui libgnuradio-runtime libgnuradio-trellis libgnuradio-uhd > > libgnuradio-video-sdl libgnuradio-vocoder libgnuradio-wavelet > > libgnuradio-zeromq libgsm1-dev libqwt-qt5-6 librtlsdr0 *libuhd003.010.003 > > libuhd3.15.0* libvolk2-bin libvolk2-dev libvolk2.0 libvolk2.2 > > python3-networkx python3-zmq rtl-sdr uhd-host > > 0 to upgrade, 34 to newly install, 0 to remove and 20 not to upgrade. > > Need to get 2,310 kB/24.9 MB of archives. > > After this operation, 178 MB of additional disk space will be used. > > Do you want to continue? [Y/n] y > > Strange, I do not see "libgnuradio-uhd" there. > It pulls libuhd3.10, but also libuhd3.15. What was the command? > > > Any suggestions? Should I try installing GNU Radio from source? Or > should > > I perhaps direct my questions to the GNU Radio mailing list? > > IMO, the "easiest path" is building from source. > That way, you are sure it will link with the correct UHD version. > Using binaries are ok as long as UHD and linked UHD to GNU Radio versions > stay sync. > > -- > > Cédric Hannotier > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-le...@lists.ettus.com >
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com