Hi,
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
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).
[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
addr: 192.168.20.2
claimed: False
mgmt_addr: 192.168.10.2
mgmt_addr: 192.168.20.2
product: n300
type: n3xx
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 3.7.13.4 >>>
Block paths:
/usr/local/share/gnuradio/grc/blocks
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>
_prepare_uhd_swig()
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
__import__(name)
ImportError: No module named _uhd_swig
>>> Done (return code 1)
Advice to solve my problems is welcome.
Best Regards,Jean Marie
Read the mailing list of the GNU project right here! The information here is regarding the GNU radio project for USRP radios.
Wednesday, February 12, 2020
Re: Help GRC with USRP N300
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 <f6etu@wanadoo.fr> wrote:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment