usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

UHD dual-install issue

BH
brendan.horsfield@vectalabs.com
Mon, Apr 19, 2021 7:15 AM

Hi All,

I have just upgraded my laptop to the latest version of GNU Radio Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to monitor a block of spectrum with my USRP B210.  Unfortunately the flowgraph won’t run (even though it ran in my old GNU Radio setup), and instead prints the following message to the console:

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 244, in <module>

main()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in main

tb = top_block_cls()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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

The above message suggests GRC is calling version 003.010.003.000-0 of the UHD driver.  This is weird, as last week I installed version 3.15.0.0 of the UHD driver on my laptop, after first uninstalling the old driver (or so I thought…).

However, if I run uhd_usrp_probe or uhd_find_devices, I get a message confirming that I am indeed running v3.15.0.0 of the UHD driver:

  • linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de

If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I am pretty sure there should only be one of them present!

This “dual-install” problem seems to be fairly common among USRP/GNU Radio users, but so far I haven’t found any actual solutions.

There is also a second error message in the above console output: “EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex”.  This is baffling, as I have run the script “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am confident that the FPGA images have downloaded successfully (for the record, they are in /usr/local/share/uhd/images).

If anyone can tell me how to resolve these problems, I would be very grateful!

Regards,

Brendan.

Hi All, I have just upgraded my laptop to the latest version of GNU Radio Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph won’t run (even though it ran in my old GNU Radio setup), and instead prints the following message to the console: 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 244, in <module> main() File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in main tb = top_block_cls() File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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 The above message suggests GRC is calling version **003.010.003.000-0** of the UHD driver. This is weird, as last week I installed version **3.15.0.0** of the UHD driver on my laptop, after first uninstalling the old driver (or so I thought…). However, if I run uhd_usrp_probe or uhd_find_devices, I get a message confirming that I am indeed running v3.15.0.0 of the UHD driver: * linux; GNU C++ version 7.5.0; Boost_106501; **UHD_3.15.0.HEAD-0-gaea0e2de** If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files **libuhd.so.003.010.003** and **libuhd.so.3.15.0** are both present — but I am pretty sure there should only be one of them present! This “dual-install” problem seems to be fairly common among USRP/GNU Radio users, but so far I haven’t found any actual solutions. There is also a second error message in the above console output: **“EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex”**. This is baffling, as I have run the script “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am confident that the FPGA images have downloaded successfully (for the record, they are in /usr/local/share/uhd/images). If anyone can tell me how to resolve these problems, I would be very grateful! Regards, Brendan.
MD
Marcus D. Leech
Mon, Apr 19, 2021 1:57 PM

On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote:

Hi All,

I have just upgraded my laptop to the latest version of GNU Radio
Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to
monitor a block of spectrum with my USRP B210. Unfortunately the
flowgraph won’t run (even though it ran in my old GNU Radio setup),
and instead prints the following message to the console:

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
244, in <module>

main()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line
220, in main

tb = top_block_cls()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87,
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

The above message suggests GRC is calling version 003.010.003.000-0
of the UHD driver. This is weird, as last week I installed version
3.15.0.0 of the UHD driver on my laptop, after first uninstalling
the old driver (or so I thought…).

However, if I run uhd_usrp_probe or uhd_find_devices, I get a message
confirming that I am indeed running v3.15.0.0 of the UHD driver:

 linux; GNU C++ version 7.5.0; Boost_106501;
 *UHD_3.15.0.HEAD-0-gaea0e2de*

If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files
libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but
I am pretty sure there should only be one of them present!

This “dual-install” problem seems to be fairly common among USRP/GNU
Radio users, but so far I haven’t found any actual solutions.

There is also a second error message in the above console output:
“EnvironmentError: IOError: Could not find path for image:
usrp_b200_fw.hex”
. This is baffling, as I have run the script
“/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and
am confident that the FPGA images have downloaded successfully (for
the record, they are in /usr/local/share/uhd/images).

If anyone can tell me how to resolve these problems, I would be very
grateful!

Regards,

Brendan.

That means that the version of Gnu Radio you used to produce whatever
app you have is linked against UHD 3.10.3, whereas all
your UHD utilities are linked against the newer version.

What happens when you run:

gnuradio-config-info -v

What is in your PYTHONPATH?  Is it perhaps pointing to older python
code, and you're picking up older (very older) python modules that
are themselves linked against both an older GR and older UHD?

On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote: > > Hi All, > > I have just upgraded my laptop to the latest version of GNU Radio > Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to > monitor a block of spectrum with my USRP B210. Unfortunately the > flowgraph won’t run (even though it ran in my old GNU Radio setup), > and instead prints the following message to the console: > > 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 > 244, in <module> > > main() > > File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line > 220, in main > > tb = top_block_cls() > > File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, > 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 > > The above message suggests GRC is calling version *003.010.003.000-0* > of the UHD driver. This is weird, as last week I installed version > *3.15.0.0* of the UHD driver on my laptop, after first uninstalling > the old driver (or so I thought…). > > However, if I run uhd_usrp_probe or uhd_find_devices, I get a message > confirming that I am indeed running v3.15.0.0 of the UHD driver: > > * > > linux; GNU C++ version 7.5.0; Boost_106501; > *UHD_3.15.0.HEAD-0-gaea0e2de* > > If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files > *libuhd.so.003.010.003* and *libuhd.so.3.15.0* are both present — but > I am pretty sure there should only be one of them present! > > This “dual-install” problem seems to be fairly common among USRP/GNU > Radio users, but so far I haven’t found any actual solutions. > > There is also a second error message in the above console output: > *“EnvironmentError: IOError: Could not find path for image: > usrp_b200_fw.hex”*. This is baffling, as I have run the script > “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and > am confident that the FPGA images have downloaded successfully (for > the record, they are in /usr/local/share/uhd/images). > > If anyone can tell me how to resolve these problems, I would be very > grateful! > > Regards, > > Brendan. > > That means that the version of Gnu Radio you used to produce whatever app you have is linked against UHD 3.10.3, whereas all your UHD *utilities* are linked against the newer version. What happens when you run: gnuradio-config-info -v What is in your PYTHONPATH? Is it perhaps pointing to older python code, and you're picking up older (very older) python modules that are themselves linked against both an older GR and older UHD?
BH
Brendan Horsfield
Mon, Apr 19, 2021 9:58 PM

Hi Marcus,

Running gnuradio-config-info -v returns the following:
v3.8.2.0-112-ge20ffa3c

My PYTHONPATH is as follows:

/usr/local/lib/python3.6/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk3

I should also mention that my approach to date has been to use PyBOMBS to
install GNU Radio, after installing UHD driver v3.15.0.0 from source.
However, both times I have attempted this, the PyBOMBS installer has asked
me whether I want to rebuild UHD from source or keep the existing binary.
When I choose "keep existing", the installer crashes out with an error
message (both times).

Brendan.

On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech patchvonbraun@gmail.com
wrote:

On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote:

Hi All,

I have just upgraded my laptop to the latest version of GNU Radio
Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to
monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph
won’t run (even though it ran in my old GNU Radio setup), and instead
prints the following message to the console:

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 244, in
<module>

main()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in
main

tb = top_block_cls()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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

The above message suggests GRC is calling version 003.010.003.000-0 of
the UHD driver. This is weird, as last week I installed version 3.15.0.0
of the UHD driver on my laptop, after first uninstalling the old driver (or
so I thought…).

However, if I run uhd_usrp_probe or uhd_find_devices, I get a message
confirming that I am indeed running v3.15.0.0 of the UHD driver:

-

linux; GNU C++ version 7.5.0; Boost_106501;
*UHD_3.15.0.HEAD-0-gaea0e2de*

If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files
libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I
am pretty sure there should only be one of them present!

This “dual-install” problem seems to be fairly common among USRP/GNU Radio
users, but so far I haven’t found any actual solutions.

There is also a second error message in the above console output: “EnvironmentError:
IOError: Could not find path for image: usrp_b200_fw.hex”
. This is
baffling, as I have run the script
“/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am
confident that the FPGA images have downloaded successfully (for the
record, they are in /usr/local/share/uhd/images).

If anyone can tell me how to resolve these problems, I would be very
grateful!

Regards,

Brendan.

That means that the version of Gnu Radio you used to produce whatever app
you have is linked against UHD 3.10.3, whereas all
your UHD utilities are linked against the newer version.

What happens when you run:

gnuradio-config-info -v

What is in your PYTHONPATH?  Is it perhaps pointing to older python code,
and you're picking up older (very older) python modules that
are themselves linked against both an older GR and older UHD?


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Hi Marcus, Running gnuradio-config-info -v returns the following: *v3.8.2.0-112-ge20ffa3c* My PYTHONPATH is as follows: /usr/local/lib/python3.6/dist-packages /usr/lib/python2.7 /usr/lib/python2.7/plat-x86_64-linux-gnu /usr/lib/python2.7/lib-tk /usr/lib/python2.7/lib-old /usr/lib/python2.7/lib-dynload /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/gtk-2.0 /usr/lib/python2.7/dist-packages/wx-3.0-gtk3 I should also mention that my approach to date has been to use PyBOMBS to install GNU Radio, after installing UHD driver v3.15.0.0 from source. However, both times I have attempted this, the PyBOMBS installer has asked me whether I want to rebuild UHD from source or keep the existing binary. When I choose "keep existing", the installer crashes out with an error message (both times). Brendan. On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech <patchvonbraun@gmail.com> wrote: > On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote: > > Hi All, > > I have just upgraded my laptop to the latest version of GNU Radio > Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to > monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph > won’t run (even though it ran in my old GNU Radio setup), and instead > prints the following message to the console: > > 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 244, in > <module> > > main() > > File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in > main > > tb = top_block_cls() > > File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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 > > The above message suggests GRC is calling version *003.010.003.000-0* of > the UHD driver. This is weird, as last week I installed version *3.15.0.0* > of the UHD driver on my laptop, after first uninstalling the old driver (or > so I thought…). > > However, if I run uhd_usrp_probe or uhd_find_devices, I get a message > confirming that I am indeed running v3.15.0.0 of the UHD driver: > > - > > linux; GNU C++ version 7.5.0; Boost_106501; > *UHD_3.15.0.HEAD-0-gaea0e2de* > > If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files > *libuhd.so.003.010.003* and *libuhd.so.3.15.0* are both present — but I > am pretty sure there should only be one of them present! > > This “dual-install” problem seems to be fairly common among USRP/GNU Radio > users, but so far I haven’t found any actual solutions. > > There is also a second error message in the above console output: *“EnvironmentError: > IOError: Could not find path for image: usrp_b200_fw.hex”*. This is > baffling, as I have run the script > “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am > confident that the FPGA images have downloaded successfully (for the > record, they are in /usr/local/share/uhd/images). > > If anyone can tell me how to resolve these problems, I would be very > grateful! > > Regards, > > Brendan. > > That means that the version of Gnu Radio you used to produce whatever app > you have is linked against UHD 3.10.3, whereas all > your UHD *utilities* are linked against the newer version. > > What happens when you run: > > gnuradio-config-info -v > > What is in your PYTHONPATH? Is it perhaps pointing to older python code, > and you're picking up older (very older) python modules that > are themselves linked against both an older GR and older UHD? > > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com >
MD
Marcus D Leech
Mon, Apr 19, 2021 10:01 PM

My guess is that PyBombs is finding the old UHD and using that to build GR.

Sent from my iPhone

On Apr 19, 2021, at 5:58 PM, Brendan Horsfield brendan.horsfield@vectalabs.com wrote:


Hi Marcus,

Running gnuradio-config-info -v returns the following:  v3.8.2.0-112-ge20ffa3c

My PYTHONPATH is as follows:

/usr/local/lib/python3.6/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk3

I should also mention that my approach to date has been to use PyBOMBS to install GNU Radio, after installing UHD driver v3.15.0.0 from source.  However, both times I have attempted this, the PyBOMBS installer has asked me whether I want to rebuild UHD from source or keep the existing binary.  When I choose "keep existing", the installer crashes out with an error message (both times).

Brendan.

On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech patchvonbraun@gmail.com wrote:
On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote:

Hi All,

I have just upgraded my laptop to the latest version of GNU Radio Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph won’t run (even though it ran in my old GNU Radio setup), and instead prints the following message to the console:

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 244, in <module>

main()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in main

tb = top_block_cls()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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

The above message suggests GRC is calling version 003.010.003.000-0 of the UHD driver. This is weird, as last week I installed version 3.15.0.0 of the UHD driver on my laptop, after first uninstalling the old driver (or so I thought…).

However, if I run uhd_usrp_probe or uhd_find_devices, I get a message confirming that I am indeed running v3.15.0.0 of the UHD driver:

linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de

If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I am pretty sure there should only be one of them present!

This “dual-install” problem seems to be fairly common among USRP/GNU Radio users, but so far I haven’t found any actual solutions.

There is also a second error message in the above console output: “EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex”. This is baffling, as I have run the script “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am confident that the FPGA images have downloaded successfully (for the record, they are in /usr/local/share/uhd/images).

If anyone can tell me how to resolve these problems, I would be very grateful!

Regards,

Brendan.

That means that the version of Gnu Radio you used to produce whatever app you have is linked against UHD 3.10.3, whereas all
your UHD utilities are linked against the newer version.

What happens when you run:

gnuradio-config-info -v

What is in your PYTHONPATH?  Is it perhaps pointing to older python code, and you're picking up older (very older) python modules that
are themselves linked against both an older GR and older UHD?


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

My guess is that PyBombs is finding the old UHD and using that to build GR. Sent from my iPhone > On Apr 19, 2021, at 5:58 PM, Brendan Horsfield <brendan.horsfield@vectalabs.com> wrote: > >  > Hi Marcus, > > Running gnuradio-config-info -v returns the following: v3.8.2.0-112-ge20ffa3c > > My PYTHONPATH is as follows: > > /usr/local/lib/python3.6/dist-packages > /usr/lib/python2.7 > /usr/lib/python2.7/plat-x86_64-linux-gnu > /usr/lib/python2.7/lib-tk > /usr/lib/python2.7/lib-old > /usr/lib/python2.7/lib-dynload > /usr/local/lib/python2.7/dist-packages > /usr/lib/python2.7/dist-packages > /usr/lib/python2.7/dist-packages/gtk-2.0 > /usr/lib/python2.7/dist-packages/wx-3.0-gtk3 > > I should also mention that my approach to date has been to use PyBOMBS to install GNU Radio, after installing UHD driver v3.15.0.0 from source. However, both times I have attempted this, the PyBOMBS installer has asked me whether I want to rebuild UHD from source or keep the existing binary. When I choose "keep existing", the installer crashes out with an error message (both times). > > Brendan. > > > >> On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech <patchvonbraun@gmail.com> wrote: >> On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote: >>> Hi All, >>> >>> I have just upgraded my laptop to the latest version of GNU Radio Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph won’t run (even though it ran in my old GNU Radio setup), and instead prints the following message to the console: >>> >>> 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 244, in <module> >>> >>> main() >>> >>> File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in main >>> >>> tb = top_block_cls() >>> >>> File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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 >>> >>> The above message suggests GRC is calling version 003.010.003.000-0 of the UHD driver. This is weird, as last week I installed version 3.15.0.0 of the UHD driver on my laptop, after first uninstalling the old driver (or so I thought…). >>> >>> However, if I run uhd_usrp_probe or uhd_find_devices, I get a message confirming that I am indeed running v3.15.0.0 of the UHD driver: >>> >>> linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de >>> >>> If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I am pretty sure there should only be one of them present! >>> >>> This “dual-install” problem seems to be fairly common among USRP/GNU Radio users, but so far I haven’t found any actual solutions. >>> >>> There is also a second error message in the above console output: “EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex”. This is baffling, as I have run the script “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am confident that the FPGA images have downloaded successfully (for the record, they are in /usr/local/share/uhd/images). >>> >>> If anyone can tell me how to resolve these problems, I would be very grateful! >>> >>> Regards, >>> >>> Brendan. >>> >>> >> That means that the version of Gnu Radio you used to produce whatever app you have is linked against UHD 3.10.3, whereas all >> your UHD *utilities* are linked against the newer version. >> >> What happens when you run: >> >> gnuradio-config-info -v >> >> What is in your PYTHONPATH? Is it perhaps pointing to older python code, and you're picking up older (very older) python modules that >> are themselves linked against both an older GR and older UHD? >> >> >> _______________________________________________ >> USRP-users mailing list -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com
MD
Marcus D Leech
Mon, Apr 19, 2021 10:11 PM

so if you run Python interactively then:

Import uhd

Then look at uhd.file

What location is it getting UHD from?

Sent from my iPhone

On Apr 19, 2021, at 6:01 PM, Marcus D Leech patchvonbraun@gmail.com wrote:

My guess is that PyBombs is finding the old UHD and using that to build GR.

Sent from my iPhone

On Apr 19, 2021, at 5:58 PM, Brendan Horsfield brendan.horsfield@vectalabs.com wrote:


Hi Marcus,

Running gnuradio-config-info -v returns the following:  v3.8.2.0-112-ge20ffa3c

My PYTHONPATH is as follows:

/usr/local/lib/python3.6/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk3

I should also mention that my approach to date has been to use PyBOMBS to install GNU Radio, after installing UHD driver v3.15.0.0 from source.  However, both times I have attempted this, the PyBOMBS installer has asked me whether I want to rebuild UHD from source or keep the existing binary.  When I choose "keep existing", the installer crashes out with an error message (both times).

Brendan.

On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech patchvonbraun@gmail.com wrote:
On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote:

Hi All,

I have just upgraded my laptop to the latest version of GNU Radio Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph won’t run (even though it ran in my old GNU Radio setup), and instead prints the following message to the console:

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 244, in <module>

main()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in main

tb = top_block_cls()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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

The above message suggests GRC is calling version 003.010.003.000-0 of the UHD driver. This is weird, as last week I installed version 3.15.0.0 of the UHD driver on my laptop, after first uninstalling the old driver (or so I thought…).

However, if I run uhd_usrp_probe or uhd_find_devices, I get a message confirming that I am indeed running v3.15.0.0 of the UHD driver:

linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de

If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I am pretty sure there should only be one of them present!

This “dual-install” problem seems to be fairly common among USRP/GNU Radio users, but so far I haven’t found any actual solutions.

There is also a second error message in the above console output: “EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex”. This is baffling, as I have run the script “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am confident that the FPGA images have downloaded successfully (for the record, they are in /usr/local/share/uhd/images).

If anyone can tell me how to resolve these problems, I would be very grateful!

Regards,

Brendan.

That means that the version of Gnu Radio you used to produce whatever app you have is linked against UHD 3.10.3, whereas all
your UHD utilities are linked against the newer version.

What happens when you run:

gnuradio-config-info -v

What is in your PYTHONPATH?  Is it perhaps pointing to older python code, and you're picking up older (very older) python modules that
are themselves linked against both an older GR and older UHD?


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

so if you run Python interactively then: Import uhd Then look at uhd.__file__ What location is it getting UHD from? Sent from my iPhone > On Apr 19, 2021, at 6:01 PM, Marcus D Leech <patchvonbraun@gmail.com> wrote: > > My guess is that PyBombs is finding the old UHD and using that to build GR. > > Sent from my iPhone > >>> On Apr 19, 2021, at 5:58 PM, Brendan Horsfield <brendan.horsfield@vectalabs.com> wrote: >>> >>  >> Hi Marcus, >> >> Running gnuradio-config-info -v returns the following: v3.8.2.0-112-ge20ffa3c >> >> My PYTHONPATH is as follows: >> >> /usr/local/lib/python3.6/dist-packages >> /usr/lib/python2.7 >> /usr/lib/python2.7/plat-x86_64-linux-gnu >> /usr/lib/python2.7/lib-tk >> /usr/lib/python2.7/lib-old >> /usr/lib/python2.7/lib-dynload >> /usr/local/lib/python2.7/dist-packages >> /usr/lib/python2.7/dist-packages >> /usr/lib/python2.7/dist-packages/gtk-2.0 >> /usr/lib/python2.7/dist-packages/wx-3.0-gtk3 >> >> I should also mention that my approach to date has been to use PyBOMBS to install GNU Radio, after installing UHD driver v3.15.0.0 from source. However, both times I have attempted this, the PyBOMBS installer has asked me whether I want to rebuild UHD from source or keep the existing binary. When I choose "keep existing", the installer crashes out with an error message (both times). >> >> Brendan. >> >> >> >>> On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech <patchvonbraun@gmail.com> wrote: >>> On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote: >>>> Hi All, >>>> >>>> I have just upgraded my laptop to the latest version of GNU Radio Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph won’t run (even though it ran in my old GNU Radio setup), and instead prints the following message to the console: >>>> >>>> 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 244, in <module> >>>> >>>> main() >>>> >>>> File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, in main >>>> >>>> tb = top_block_cls() >>>> >>>> File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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 >>>> >>>> The above message suggests GRC is calling version 003.010.003.000-0 of the UHD driver. This is weird, as last week I installed version 3.15.0.0 of the UHD driver on my laptop, after first uninstalling the old driver (or so I thought…). >>>> >>>> However, if I run uhd_usrp_probe or uhd_find_devices, I get a message confirming that I am indeed running v3.15.0.0 of the UHD driver: >>>> >>>> linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de >>>> >>>> If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I am pretty sure there should only be one of them present! >>>> >>>> This “dual-install” problem seems to be fairly common among USRP/GNU Radio users, but so far I haven’t found any actual solutions. >>>> >>>> There is also a second error message in the above console output: “EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex”. This is baffling, as I have run the script “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am confident that the FPGA images have downloaded successfully (for the record, they are in /usr/local/share/uhd/images). >>>> >>>> If anyone can tell me how to resolve these problems, I would be very grateful! >>>> >>>> Regards, >>>> >>>> Brendan. >>>> >>>> >>> That means that the version of Gnu Radio you used to produce whatever app you have is linked against UHD 3.10.3, whereas all >>> your UHD *utilities* are linked against the newer version. >>> >>> What happens when you run: >>> >>> gnuradio-config-info -v >>> >>> What is in your PYTHONPATH? Is it perhaps pointing to older python code, and you're picking up older (very older) python modules that >>> are themselves linked against both an older GR and older UHD? >>> >>> >>> _______________________________________________ >>> USRP-users mailing list -- usrp-users@lists.ettus.com >>> To unsubscribe send an email to usrp-users-leave@lists.ettus.com
BH
Brendan Horsfield
Mon, Apr 19, 2021 10:21 PM

Importing uhd in Python 3:
/usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/
uhd.cpython-36m-x86_64-linux-gnu.so

(Note that this is an alternative Python UHD module written by Christian
Hahn, which I have been evaluating for the last few days.)

Trying to import uhd in Python 2 (which I never use) returns an error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/init.py", line 10,
in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, in
<module>
# "iter" and "next" attributes instead.
ImportError: cannot import name libpyuhd

Brendan.

On Tue, Apr 20, 2021 at 8:11 AM Marcus D Leech patchvonbraun@gmail.com
wrote:

so if you run Python interactively then:

Import uhd

Then look at uhd.file

What location is it getting UHD from?

Sent from my iPhone

On Apr 19, 2021, at 6:01 PM, Marcus D Leech patchvonbraun@gmail.com
wrote:

My guess is that PyBombs is finding the old UHD and using that to build
GR.

Sent from my iPhone

On Apr 19, 2021, at 5:58 PM, Brendan Horsfield <
brendan.horsfield@vectalabs.com> wrote:


Hi Marcus,

Running gnuradio-config-info -v returns the following:
v3.8.2.0-112-ge20ffa3c

My PYTHONPATH is as follows:

/usr/local/lib/python3.6/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk3

I should also mention that my approach to date has been to use PyBOMBS to
install GNU Radio, after installing UHD driver v3.15.0.0 from source.
However, both times I have attempted this, the PyBOMBS installer has asked
me whether I want to rebuild UHD from source or keep the existing binary.
When I choose "keep existing", the installer crashes out with an error
message (both times).

Brendan.

On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech patchvonbraun@gmail.com
wrote:

On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote:

Hi All,

I have just upgraded my laptop to the latest version of GNU Radio
Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to
monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph
won’t run (even though it ran in my old GNU Radio setup), and instead
prints the following message to the console:

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 244,
in <module>

main()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220,
in main

tb = top_block_cls()

File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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

The above message suggests GRC is calling version 003.010.003.000-0 of
the UHD driver. This is weird, as last week I installed version
3.15.0.0 of the UHD driver on my laptop, after first uninstalling the
old driver (or so I thought…).

However, if I run uhd_usrp_probe or uhd_find_devices, I get a message
confirming that I am indeed running v3.15.0.0 of the UHD driver:

-

linux; GNU C++ version 7.5.0; Boost_106501;
*UHD_3.15.0.HEAD-0-gaea0e2de*

If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files
libuhd.so.003.010.003 and libuhd.so.3.15.0 are both present — but I
am pretty sure there should only be one of them present!

This “dual-install” problem seems to be fairly common among USRP/GNU
Radio users, but so far I haven’t found any actual solutions.

There is also a second error message in the above console output: “EnvironmentError:
IOError: Could not find path for image: usrp_b200_fw.hex”
. This is
baffling, as I have run the script
“/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am
confident that the FPGA images have downloaded successfully (for the
record, they are in /usr/local/share/uhd/images).

If anyone can tell me how to resolve these problems, I would be very
grateful!

Regards,

Brendan.

That means that the version of Gnu Radio you used to produce whatever app
you have is linked against UHD 3.10.3, whereas all
your UHD utilities are linked against the newer version.

What happens when you run:

gnuradio-config-info -v

What is in your PYTHONPATH?  Is it perhaps pointing to older python code,
and you're picking up older (very older) python modules that
are themselves linked against both an older GR and older UHD?


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Importing uhd in Python 3: /usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/ uhd.cpython-36m-x86_64-linux-gnu.so (Note that this is an alternative Python UHD module written by Christian Hahn, which I have been evaluating for the last few days.) Trying to import uhd in Python 2 (which I never use) returns an error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py", line 10, in <module> File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, in <module> # "__iter__" and "next" attributes instead. ImportError: cannot import name libpyuhd Brendan. On Tue, Apr 20, 2021 at 8:11 AM Marcus D Leech <patchvonbraun@gmail.com> wrote: > so if you run Python interactively then: > > Import uhd > > Then look at uhd.__file__ > > What location is it getting UHD from? > > Sent from my iPhone > > On Apr 19, 2021, at 6:01 PM, Marcus D Leech <patchvonbraun@gmail.com> > wrote: > > My guess is that PyBombs is finding the old UHD and using that to build > GR. > > Sent from my iPhone > > On Apr 19, 2021, at 5:58 PM, Brendan Horsfield < > brendan.horsfield@vectalabs.com> wrote: > >  > Hi Marcus, > > Running gnuradio-config-info -v returns the following: > *v3.8.2.0-112-ge20ffa3c* > > My PYTHONPATH is as follows: > > /usr/local/lib/python3.6/dist-packages > /usr/lib/python2.7 > /usr/lib/python2.7/plat-x86_64-linux-gnu > /usr/lib/python2.7/lib-tk > /usr/lib/python2.7/lib-old > /usr/lib/python2.7/lib-dynload > /usr/local/lib/python2.7/dist-packages > /usr/lib/python2.7/dist-packages > /usr/lib/python2.7/dist-packages/gtk-2.0 > /usr/lib/python2.7/dist-packages/wx-3.0-gtk3 > > I should also mention that my approach to date has been to use PyBOMBS to > install GNU Radio, after installing UHD driver v3.15.0.0 from source. > However, both times I have attempted this, the PyBOMBS installer has asked > me whether I want to rebuild UHD from source or keep the existing binary. > When I choose "keep existing", the installer crashes out with an error > message (both times). > > Brendan. > > > > On Mon, Apr 19, 2021 at 11:58 PM Marcus D. Leech <patchvonbraun@gmail.com> > wrote: > >> On 04/19/2021 03:15 AM, brendan.horsfield@vectalabs.com wrote: >> >> Hi All, >> >> I have just upgraded my laptop to the latest version of GNU Radio >> Companion (ver 3.8.2.0 (Python 3.6.9)), and am now trying to use it to >> monitor a block of spectrum with my USRP B210. Unfortunately the flowgraph >> won’t run (even though it ran in my old GNU Radio setup), and instead >> prints the following message to the console: >> >> 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 244, >> in <module> >> >> main() >> >> File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 220, >> in main >> >> tb = top_block_cls() >> >> File "/home/anyone/Documents/Brendan/GNU-Radio/top_block.py", line 87, 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 >> >> The above message suggests GRC is calling version *003.010.003.000-0* of >> the UHD driver. This is weird, as last week I installed version >> *3.15.0.0* of the UHD driver on my laptop, after first uninstalling the >> old driver (or so I thought…). >> >> However, if I run uhd_usrp_probe or uhd_find_devices, I get a message >> confirming that I am indeed running v3.15.0.0 of the UHD driver: >> >> - >> >> linux; GNU C++ version 7.5.0; Boost_106501; >> *UHD_3.15.0.HEAD-0-gaea0e2de* >> >> If I look in the folder “/usr/lib/x86_64-linux-gnu/”, I find the files >> *libuhd.so.003.010.003* and *libuhd.so.3.15.0* are both present — but I >> am pretty sure there should only be one of them present! >> >> This “dual-install” problem seems to be fairly common among USRP/GNU >> Radio users, but so far I haven’t found any actual solutions. >> >> There is also a second error message in the above console output: *“EnvironmentError: >> IOError: Could not find path for image: usrp_b200_fw.hex”*. This is >> baffling, as I have run the script >> “/usr/local/lib/uhd/utils/uhd_images_downloader.py“ three times, and am >> confident that the FPGA images have downloaded successfully (for the >> record, they are in /usr/local/share/uhd/images). >> >> If anyone can tell me how to resolve these problems, I would be very >> grateful! >> >> Regards, >> >> Brendan. >> >> That means that the version of Gnu Radio you used to produce whatever app >> you have is linked against UHD 3.10.3, whereas all >> your UHD *utilities* are linked against the newer version. >> >> What happens when you run: >> >> gnuradio-config-info -v >> >> What is in your PYTHONPATH? Is it perhaps pointing to older python code, >> and you're picking up older (very older) python modules that >> are themselves linked against both an older GR and older UHD? >> >> >> _______________________________________________ >> USRP-users mailing list -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com >> >
MD
Marcus D. Leech
Mon, Apr 19, 2021 10:34 PM

On 04/19/2021 06:21 PM, Brendan Horsfield wrote:

Importing uhd in Python 3:
/usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/uhd.cpython-36m-x86_64-linux-gnu.so
http://uhd.cpython-36m-x86_64-linux-gnu.so

(Note that this is an alternative Python UHD module written by
Christian Hahn, which I have been evaluating for the last few days.)

Trying to import uhd in Python 2 (which I never use) returns an error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/init.py", line
10, in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10,
in <module>
# "iter" and "next" attributes instead.
ImportError: cannot import name libpyuhd

Brendan.

Given that gr-uhd wants a module called "uhd" to exist, and GR uses
gr-uhd, i'm not sure what will happen with the
name-space pollution that will result.

On 04/19/2021 06:21 PM, Brendan Horsfield wrote: > Importing uhd in Python 3: > /usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/uhd.cpython-36m-x86_64-linux-gnu.so > <http://uhd.cpython-36m-x86_64-linux-gnu.so> > > (Note that this is an alternative Python UHD module written by > Christian Hahn, which I have been evaluating for the last few days.) > > Trying to import uhd in Python 2 (which I never use) returns an error: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py", line > 10, in <module> > File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, > in <module> > # "__iter__" and "next" attributes instead. > ImportError: cannot import name libpyuhd > > Brendan. > Given that gr-uhd wants a module called "uhd" to exist, and GR uses gr-uhd, i'm not sure what will happen with the name-space pollution that will result.
BH
Brendan Horsfield
Mon, Apr 19, 2021 10:51 PM

OK, I didn't realise that GNU Radio needed the Python UHD module to be
installed.  I deliberately excluded the Python API from my UHD driver build
in order to try out Christian's custom Python API.

I will remove the custom API today, and install a "stock" UHD driver with
the Ettus Python API.  Then I will give the GNU Radio installation another
try.

Thanks,
Brendan.

On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech patchvonbraun@gmail.com
wrote:

On 04/19/2021 06:21 PM, Brendan Horsfield wrote:

Importing uhd in Python 3:
/usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/
uhd.cpython-36m-x86_64-linux-gnu.so

(Note that this is an alternative Python UHD module written by Christian
Hahn, which I have been evaluating for the last few days.)

Trying to import uhd in Python 2 (which I never use) returns an error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/init.py", line 10,
in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, in
<module>
# "iter" and "next" attributes instead.
ImportError: cannot import name libpyuhd

Brendan.

Given that gr-uhd wants a module called "uhd" to exist, and GR uses
gr-uhd, i'm not sure what will happen with the
name-space pollution that will result.

OK, I didn't realise that GNU Radio needed the Python UHD module to be installed. I deliberately excluded the Python API from my UHD driver build in order to try out Christian's custom Python API. I will remove the custom API today, and install a "stock" UHD driver with the Ettus Python API. Then I will give the GNU Radio installation another try. Thanks, Brendan. On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech <patchvonbraun@gmail.com> wrote: > On 04/19/2021 06:21 PM, Brendan Horsfield wrote: > > Importing uhd in Python 3: > /usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/ > uhd.cpython-36m-x86_64-linux-gnu.so > > (Note that this is an alternative Python UHD module written by Christian > Hahn, which I have been evaluating for the last few days.) > > Trying to import uhd in Python 2 (which I never use) returns an error: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py", line 10, > in <module> > File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, in > <module> > # "__iter__" and "next" attributes instead. > ImportError: cannot import name libpyuhd > > Brendan. > > Given that gr-uhd wants a module called "uhd" to exist, and GR uses > gr-uhd, i'm not sure what will happen with the > name-space pollution that will result. > > >
MD
Marcus D. Leech
Mon, Apr 19, 2021 10:54 PM

On 04/19/2021 06:51 PM, Brendan Horsfield wrote:

OK, I didn't realise that GNU Radio needed the Python UHD module to be
installed.  I deliberately excluded the Python API from my UHD driver
build in order to try out Christian's custom Python API.

I will remove the custom API today, and install a "stock" UHD driver
with the Ettus Python API.  Then I will give the GNU Radio
installation another try.

Thanks,
Brendan.

Gah.  Sorry.  Brain fart.

Carry on.

so you need to replicate what GR does for UHD in 3.8.  In GR3.7:

from gnuradio import uhd
uhd.file

And see where it's coming from (I don't off the top of my head know what
GR 3.8 idiom is).

On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech
<patchvonbraun@gmail.com mailto:patchvonbraun@gmail.com> wrote:

 On 04/19/2021 06:21 PM, Brendan Horsfield wrote:
 Importing uhd in Python 3:
 /usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/uhd.cpython-36m-x86_64-linux-gnu.so
 <http://uhd.cpython-36m-x86_64-linux-gnu.so>

 (Note that this is an alternative Python UHD module written by
 Christian Hahn, which I have been evaluating for the last few days.)

 Trying to import uhd in Python 2 (which I never use) returns an
 error:

 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py",
 line 10, in <module>
   File "/usr/local/lib/python2.7/dist-packages/uhd/types.py",
 line 10, in <module>
     # "__iter__" and "next" attributes instead.
 ImportError: cannot import name libpyuhd

 Brendan.
 Given that gr-uhd wants a module called "uhd" to exist, and GR
 uses gr-uhd, i'm not sure what will happen with the
   name-space pollution that will result.
On 04/19/2021 06:51 PM, Brendan Horsfield wrote: > OK, I didn't realise that GNU Radio needed the Python UHD module to be > installed. I deliberately excluded the Python API from my UHD driver > build in order to try out Christian's custom Python API. > > I will remove the custom API today, and install a "stock" UHD driver > with the Ettus Python API. Then I will give the GNU Radio > installation another try. > > Thanks, > Brendan. Gah. Sorry. Brain fart. Carry on. so you need to replicate what GR does for UHD in 3.8. In GR3.7: from gnuradio import uhd uhd.__file__ And see where it's coming from (I don't off the top of my head know what GR 3.8 idiom is). > > > On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech > <patchvonbraun@gmail.com <mailto:patchvonbraun@gmail.com>> wrote: > > On 04/19/2021 06:21 PM, Brendan Horsfield wrote: >> Importing uhd in Python 3: >> /usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/uhd.cpython-36m-x86_64-linux-gnu.so >> <http://uhd.cpython-36m-x86_64-linux-gnu.so> >> >> (Note that this is an alternative Python UHD module written by >> Christian Hahn, which I have been evaluating for the last few days.) >> >> Trying to import uhd in Python 2 (which I never use) returns an >> error: >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py", >> line 10, in <module> >> File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", >> line 10, in <module> >> # "__iter__" and "next" attributes instead. >> ImportError: cannot import name libpyuhd >> >> Brendan. >> > Given that gr-uhd wants a module called "uhd" to exist, and GR > uses gr-uhd, i'm not sure what will happen with the > name-space pollution that will result. > >
BH
Brendan Horsfield
Tue, Apr 20, 2021 6:02 AM

Hi Marcus,

Progress update:  Still stuck, but perhaps with some new clues as to what
is going wrong.

I have reinstalled both UHD and GNU Radio:  the former from source, the
latter from binaries as recommended on the GNU Radio website.  I then
performed the following checks:

  • uhd_find_devices & uhd_usrp_probe:  OK
  • PYTHONPATH manually set to /usr/local/lib/python3/dist-packages
  • benchmark_rate & benchmark_rate.py:  OK
  • In Python 3:  from gnuradio import uhd.  RESULT:  linux; GNU C++
    version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown*  (WRONG!
    SHOULD BE UHD v4.0.0.0)*
  • In Python 3:  uhd.file.
    RESULT:  /usr/lib/python3/dist-packages/gnuradio/uhd/init.py
  • From command prompt:  gnuradio-config-info -v.  RESULT:  error while
    loading shared libraries: libgnuradio-runtime.so.3.8.3git: cannot open
    shared object file: No such file or directory  (NOT A GOOD SIGN)

*Observation 1:  *It really looks like the GNU Radio installer is ignoring
my existing, installed UHD driver, and adding its own, older UHD drivers to
my system.  See the following console output for details:

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

*Observation 2:  *Post-installation, GNU Radio is clearly looking in
the wrong place for the FPGA images.  When I open GNU Radio and try to
connect to a UHD block, it is unable to locate the FPGA image for the
block.  It then instructs me to run
*/usr/lib/x86_64-linux-gnu/uhd/utils/uhd_images_downloader.py
*(which incidentally is completely the wrong location for that utility):

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"

I have tried setting the environment variable UHD_IMAGES_DIR in my .bashrc
file as shown below, but it makes no difference:

  • export UHD_IMAGES_DIR=/usr/local/share/uhd/images

Any suggestions?  Should I try installing GNU Radio from source?  Or should
I perhaps direct my questions to the GNU Radio mailing list?

Thanks,
Brendan.

On Tue, Apr 20, 2021 at 8:54 AM Marcus D. Leech patchvonbraun@gmail.com
wrote:

On 04/19/2021 06:51 PM, Brendan Horsfield wrote:

OK, I didn't realise that GNU Radio needed the Python UHD module to be
installed.  I deliberately excluded the Python API from my UHD driver build
in order to try out Christian's custom Python API.

I will remove the custom API today, and install a "stock" UHD driver with
the Ettus Python API.  Then I will give the GNU Radio installation another
try.

Thanks,
Brendan.

Gah.  Sorry.  Brain fart.

Carry on.

so you need to replicate what GR does for UHD in 3.8.  In GR3.7:

from gnuradio import uhd
uhd.file

And see where it's coming from (I don't off the top of my head know what
GR 3.8 idiom is).

On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech patchvonbraun@gmail.com
wrote:

On 04/19/2021 06:21 PM, Brendan Horsfield wrote:

Importing uhd in Python 3:
/usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/
uhd.cpython-36m-x86_64-linux-gnu.so

(Note that this is an alternative Python UHD module written by Christian
Hahn, which I have been evaluating for the last few days.)

Trying to import uhd in Python 2 (which I never use) returns an error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/init.py", line 10,
in <module>
File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, in
<module>
# "iter" and "next" attributes instead.
ImportError: cannot import name libpyuhd

Brendan.

Given that gr-uhd wants a module called "uhd" to exist, and GR uses
gr-uhd, i'm not sure what will happen with the
name-space pollution that will result.

Hi Marcus, Progress update: Still stuck, but perhaps with some new clues as to what is going wrong. I have reinstalled both UHD and GNU Radio: the former from source, the latter from binaries as recommended on the GNU Radio website. I then performed the following checks: - uhd_find_devices & uhd_usrp_probe: OK - PYTHONPATH manually set to /usr/local/lib/python3/dist-packages - benchmark_rate & benchmark_rate.py: OK - In Python 3: from gnuradio import uhd. RESULT: linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown* (WRONG! SHOULD BE UHD v4.0.0.0)* - In Python 3: uhd.__file__. RESULT: /usr/lib/python3/dist-packages/gnuradio/uhd/__init__.py - From command prompt: gnuradio-config-info -v. RESULT: error while loading shared libraries: libgnuradio-runtime.so.3.8.3git: cannot open shared object file: No such file or directory *(NOT A GOOD SIGN)* *Observation 1: *It really looks like the GNU Radio installer is ignoring my existing, installed UHD driver, and adding its own, older UHD drivers to my system. See the following console output for details: 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 *Observation 2: *Post-installation, GNU Radio is clearly looking in the wrong place for the FPGA images. When I open GNU Radio and try to connect to a UHD block, it is unable to locate the FPGA image for the block. It then instructs me to run */usr/lib/x86_64-linux-gnu/uhd/utils/uhd_images_downloader.py *(which incidentally is completely the wrong location for that utility): 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" I have tried setting the environment variable UHD_IMAGES_DIR in my .bashrc file as shown below, but it makes no difference: - export UHD_IMAGES_DIR=/usr/local/share/uhd/images Any suggestions? Should I try installing GNU Radio from source? Or should I perhaps direct my questions to the GNU Radio mailing list? Thanks, Brendan. On Tue, Apr 20, 2021 at 8:54 AM Marcus D. Leech <patchvonbraun@gmail.com> wrote: > On 04/19/2021 06:51 PM, Brendan Horsfield wrote: > > OK, I didn't realise that GNU Radio needed the Python UHD module to be > installed. I deliberately excluded the Python API from my UHD driver build > in order to try out Christian's custom Python API. > > I will remove the custom API today, and install a "stock" UHD driver with > the Ettus Python API. Then I will give the GNU Radio installation another > try. > > Thanks, > Brendan. > > Gah. Sorry. Brain fart. > > Carry on. > > so you need to replicate what GR does for UHD in 3.8. In GR3.7: > > from gnuradio import uhd > uhd.__file__ > > And see where it's coming from (I don't off the top of my head know what > GR 3.8 idiom is). > > > > > > > On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech <patchvonbraun@gmail.com> > wrote: > >> On 04/19/2021 06:21 PM, Brendan Horsfield wrote: >> >> Importing uhd in Python 3: >> /usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/ >> uhd.cpython-36m-x86_64-linux-gnu.so >> >> (Note that this is an alternative Python UHD module written by Christian >> Hahn, which I have been evaluating for the last few days.) >> >> Trying to import uhd in Python 2 (which I never use) returns an error: >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py", line 10, >> in <module> >> File "/usr/local/lib/python2.7/dist-packages/uhd/types.py", line 10, in >> <module> >> # "__iter__" and "next" attributes instead. >> ImportError: cannot import name libpyuhd >> >> Brendan. >> >> Given that gr-uhd wants a module called "uhd" to exist, and GR uses >> gr-uhd, i'm not sure what will happen with the >> name-space pollution that will result. >> >> >> >
loading...