# Error when running GNU radio built from script

**URL:** <https://www.ruby-forum.com/t/error-when-running-gnu-radio-built-from-script/242973>\
**Category:** GNU Radio\
**Created:** [August 12, 2015, 1:53am UTC](https://www.ruby-forum.com/t/error-when-running-gnu-radio-built-from-script/242973 "2015-08-12T01:53:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 12, 2015, 1:53am UTC](https://www.ruby-forum.com/t/error-when-running-gnu-radio-built-from-script/242973/1 "2015-08-12T01:53:56Z")

</div>

Dear,  
I installed GNU radio from build\_gnuradio script successful.  
Then I tried a simple FM receiver and I got this warning :

UHD Warning:  
Could not locate USRP1 firmware. Please run:  
“/usr/local/lib/uhd/utils/uhd\_images\_downloader.py”

Then as it said, I tried to run that .py file and got this :

Traceback (most recent call last):  
File “./uhd\_images\_downloader”, line 26, in   
import requests  
ImportError: No module named requests

Could you please help me with this ? Im using USRP1.  
Before that, I used to install GNU radio from apt-get, I got exactly  
problem, then I ran uhd\_images\_downloader from /usr/lib/utils and it  
worked. I also tried this time, it downloaded the images, but when i run  
GNU radio the same thing happen.

Thanks

---

<div class="post-metadata">

**Author:** ![trbhoang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@trbhoang](https://www.ruby-forum.com/u/trbhoang)\
**Post date:** [August 13, 2015, 7:37pm UTC](https://www.ruby-forum.com/t/error-when-running-gnu-radio-built-from-script/242973/2 "2015-08-13T19:37:58Z")

</div>

Hi Hoang,

current UHD master uses the “requests” python library. I think we might  
be forgetting to cleanly document and check that requirement; hence,  
build-gnuradio doesn’t automatically install that library.

I don’t know which distribution you are using, but if you’re using  
fedora, you can “yum install python-requests”.

Best regards,  
Marcus

---

<div class="post-metadata">

**Author:** ![trbhoang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@trbhoang](https://www.ruby-forum.com/u/trbhoang)\
**Post date:** [August 13, 2015, 7:44pm UTC](https://www.ruby-forum.com/t/error-when-running-gnu-radio-built-from-script/242973/3 "2015-08-13T19:44:59Z")

</div>

Sorry for not reply sooner,  
I also figure out that python need request library,  
Then I install it. and the problem was fixed.  
following is way I install requests library:

install python pip : sudo apt-get install python-pip  
install requests lib : sudo pip install requests

Thank you Marcus

On Thu, Aug 13, 2015 at 1:36 PM, Marcus Müller  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![trbhoang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@trbhoang](https://www.ruby-forum.com/u/trbhoang)\
**Post date:** [August 13, 2015, 8:23pm UTC](https://www.ruby-forum.com/t/error-when-running-gnu-radio-built-from-script/242973/4 "2015-08-13T20:23:32Z")

</div>

Hi!

Don’t worry, that’s something everyone is happy about when noticed.  
For future readers:  
sudo apt-get install python-requests  
should have worked too (and is preferable, usually, because it allows  
your distribution to keep the library up-to-date).

Best regards,  
Marcus
