# PyBOMBS installed gnuradio: uhd\_usrp\_sink not found

**URL:** <https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263>\
**Category:** GNU Radio\
**Created:** [May 21, 2014, 9:40am UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263 "2014-05-21T09:40:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 21, 2014, 9:40am UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263/1 "2014-05-21T09:40:35Z")

</div>

After installing gnuradio using PyBOMBS, the USRP Sink and Source blocks  
are unavailable.  
Below is the message:

1). To verify uhd has been installed:

```
[03:25pm] activecat@rs: ~/download/gnuradio/pybombs $ ./pybombs 

```

install  
uhd  
Settled on prefix: /usr/local  
Initializing environmental variables…

/usr/local/python/:/usr/local/lib/python2.6/site-packages/:/usr/local/lib64/python2.6/site-packages/:/usr/local/lib/python2.6/dist-packages/:/usr/local/lib64/python2.6/dist-packages/:/usr/local/lib/python2.7/site-packages/:/usr/local/lib64/python2.7/site-packages/:/usr/local/lib/python2.7/dist-packages/:/usr/local/lib64/python2.7/dist-packages/:/usr/local/python/:/usr/local/lib/python2.6/site-packages/:/usr/local/lib64/python2.6/site-packages/:/usr/local/lib/python2.6/dist-packages/:/usr/local/lib64/python2.6/dist-packages/:/usr/local/lib/python2.7/site-packages/:/usr/local/lib64/python2.7/site-packages/:/usr/local/lib/python2.7/dist-packages/:/usr/local/lib64/python2.7/dist-packages/  
---------- loading recipes -------------------  
Loading recipes …  
Loading recipes … done  
---------- loading recipes finished ----------

```
checking for uhd
True
uhd already installed

```

2). To execute GRC and load the flowgraph:

```
activecat@rs: ~/download/gnuradio/pybombs $ gnuradio-companion
Warning: Block key "blocks_ctrlport_monitor_performance" not found 

```

when  
loading category tree.  
Warning: Block key “blocks\_ctrlport\_monitor\_performance” not found  
when  
loading category tree.  
\<\<\< Welcome to GNU Radio Companion v3.7.4git-257-gcb0bc7f0 \>\>\>

```
Preferences file: /home/activecat/.grc
Block paths:
    /usr/local/share/gnuradio/grc/blocks
    /home/activecat/.grc_gnuradio

Loading:

```

“/home/activecat/Dropbox/gr-activecat/examples/1002\_quad\_PLL.grc”  
\>\>\> Done

```
Showing:

```

“/home/activecat/Dropbox/gr-activecat/examples/1002\_quad\_PLL.grc”

```
Loading:

```

“/home/activecat/Dropbox/gr-activecat/examples/4001\_tx\_works.grc”  
\>\>\> Error: Block key “uhd\_usrp\_sink” not found in Platform - grc(GNU  
Radio Companion)  
None  
\>\>\> Done

```
Showing:

```

“/home/activecat/Dropbox/gr-activecat/examples/4001\_tx\_works.grc”

3). The error message (part of above message):

```
>>> Error: Block key "*uhd_usrp_sink*" not found in Platform - 

```

grc(GNU  
Radio Companion)

4). System info:

```
activecat@rs: ~ $ uname -a
Linux mmuDESKTOP 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3+deb7u1 i686

```

GNU/Linux

```
activecat@rs: ~ $ gcc --version
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There 

```

is  
NO  
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

```
activecat@rs: ~ $ cmake --version
cmake version 2.8.9

```

How to solve this?

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 21, 2014, 10:37am UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263/2 "2014-05-21T10:37:14Z")

</div>

Have you run:

./pybombs env

…and then run:

source …/target/setup\_env.sh (alter file path to taste)

Mike

–  
Mike J. M0MIK BSc MIET  
Ettus R. Technical Support  
Email: removed\_email\_address@domain.invalid  
Web: [http://ettus.com](http://ettus.com)

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 21, 2014, 1:33pm UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263/3 "2014-05-21T13:33:52Z")

</div>

The “UHD Source” GRC block uses the file called “uhd\_usrp\_source.xml”.  
Make sure that this is in your GRC path.

To set the GRC path you need to go into the ~/.gnuradio folder and  
create a  
config.conf file and add the following tweaked with your actual path to  
the  
“UHD source” block:

[grc]  
global\_blocks\_path = /usr/local/share/gnuradio/grc/blocks

Mike

–  
Mike J. M0MIK BSc MIET  
Ettus R. Technical Support  
Email: removed\_email\_address@domain.invalid  
Web: [http://ettus.com](http://ettus.com)

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 22, 2014, 7:54am UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263/4 "2014-05-22T07:54:57Z")

</div>

On Wed, May 21, 2014 at 7:31 PM, Mike J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Mike

Unfortunately, the file “uhd\_usrp\_source.xml” doesn’t exist at all.  
I’ve searched it in both “/usr/local” and “~/download/gnuradio/target”,  
the  
file simply does not exists!

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 21, 2014, 12:29pm UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263/5 "2014-05-21T12:29:14Z")

</div>

On Wed, May 21, 2014 at 4:35 PM, Mike J.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Have you run:
> 
> ./pybombs env
> 
> …and then run:
> 
> source ../target/setup\_env.sh (alter file path to taste)
> 
> Mike

Yes, this has been performed.  
During gnuradio installation, I configured the prefix to /usr/local due  
to  
a reason mentioned in  
[http://gnuradio.4.n7.nabble.com/PyBOMBS-install-gnuradio-3-7-4-td48343.html](http://gnuradio.4.n7.nabble.com/PyBOMBS-install-gnuradio-3-7-4-td48343.html)

Hence, I had performed these:  
sudo ./pybombs install gnuradio —\> install gnuradio to  
/usr/local  
sudo ./pybombs env —\> refresh settings in  
/usr/local/setup\_env.sh

source /usr/local/setup\_env.sh  
gnuradio-companion

With these the uhd becomes not available in GRC.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [May 22, 2014, 11:58am UTC](https://www.ruby-forum.com/t/pybombs-installed-gnuradio-uhd-usrp-sink-not-found/241263/6 "2014-05-22T11:58:05Z")

</div>

This means that UHD was not installed correctly.

If running the following doesn’t find anything then hunt down and remove  
any ghost version of UHD that makes Pybombs think that it is installed  
and  
then reinstall it using pybombs:

sudo find / -name uhd\_usrp\_source.xml

Mike

–  
Mike J. M0MIK BSc MIET  
Ettus R. Technical Support  
Email: removed\_email\_address@domain.invalid  
Web: [http://ettus.com](http://ettus.com)
