[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help GRC with USRP N300

From: Michael Dickens
Subject: Re: Help GRC with USRP N300
Date: Wed, 12 Feb 2020 08:50:08 -0500

Hi Jean Marie - 2 thoughts:

1) Did you run "sudo ldconfig" after installation? Always a good idea to do that after installing anything, to update to LD cache.

2) If you run
/usr/bin/python2 -c "import sys; print(sys.path)"
is one of the paths "/usr/local/lib/python2.7/dist-packages"?  If not, then you need to add that path to the shell environment PYTHONPATH variable, and add it to one of the shell login command scripts. For example if you use BASH, then you could add the following to ~/.bashrc:
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:$PYTHONPATH
so that when you login this path is automatically available. You can, of course, set it in your current terminal to test / verify that doing so fixes the issue.

Hope this is useful! - MLD

On Wed, Feb 12, 2020 at 8:43 AM Jean Marie Brieussel <address@hidden> wrote:


I installed UHD V3.15.0.0 and GNURadio V3.7.13.4 the loaded FPGA image is the XG. I checked the correct functioning of UHD and GNURadio as well as the USRP N300 with UHD, the tests are correct. I checked that the N300 is seen by the host PC, see the result below:

jmf6etu@JM-F6ETU:~$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de
-- UHD Device 0
Device Address:
    serial: 31C037E
    claimed: False
    product: n300
    type: n3xx

I did the small classic test program under GRC, see the attached screenshot, (I hope that the attached files are visible on this discussion list).

In copy if below the Terminal information lines:

jmf6etu@JM-F6ETU:~$ gnuradio-companion
Gtk-Message: 14:15:09.794: Failed to load module "canberra-gtk-module"
<<< Welcome to GNU Radio Companion >>>

Block paths:

Loading: "/home/jmf6etu/Bureau/Appli_GNU/FM_exemplegrc.grc"
>>> Done

Loading: "/home/jmf6etu/Bureau/Appli_GNU/gene.grc"
>>> Done

Generating: '/home/jmf6etu/Bureau/Appli_GNU/fm_exemple.py'

Executing: /usr/bin/python2 -u /home/jmf6etu/Bureau/Appli_GNU/fm_exemple.py

Traceback (most recent call last):
  File "/home/jmf6etu/Bureau/Appli_GNU/fm_exemple.py", line 25, in <module>
    from gnuradio import uhd
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/__init__.py", line 135, in <module>
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/__init__.py", line 38, in _prepare_uhd_swig
    import uhd_swig
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", line 17, in <module>
    _uhd_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", line 16, in swig_import_helper
    return importlib.import_module('_uhd_swig')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
ImportError: No module named _uhd_swig

>>> Done (return code 1)

Advice to solve my problems is welcome.

Best Regards,

Jean Marie

Michael Dickens
Ettus Research Technical Support
Email: address@hidden
Web: https://ettus.com/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]