[USRP-users] Reg : Image Downloader

Sumit Kumar cogwsn at gmail.com
Wed Oct 21 13:31:56 EDT 2015


*Without patching the python file for proxy settings : *

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ echo $http_proxy
http://proxy.iiit.ac.in:8080/
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ sudo
./uhd_images_downloader.py
Images destination:      /usr/local/share/uhd/images
Downloading images from:
http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip
Downloading images to:
/tmp/tmpYdMJh_/uhd-images_003.010.git-53-gb48fe5bb.zip
Downloader raised an unhandled exception: HTTPConnectionPool(host='
files.ettus.com', port=80): Max retries exceeded with url:
/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip (Caused by <class
'socket.error'>: [Errno 111] Connection refused)
You can run this again with the '--verbose' flag to see more information
If the problem persists, please email the output to: support at ettus.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ export http_proxy="
http://proxy.iiit.ac.in"
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ echo $http_proxy
http://proxy.iiit.ac.in
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ sudo
./uhd_images_downloader.py
Images destination:      /usr/local/share/uhd/images
Downloading images from:
http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip
Downloading images to:
/tmp/tmpAl8zE4/uhd-images_003.010.git-53-gb48fe5bb.zip
Downloader raised an unhandled exception: HTTPConnectionPool(host='
files.ettus.com', port=80): Max retries exceeded with url:
/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip (Caused by <class
'socket.error'>: [Errno 111] Connection refused)
You can run this again with the '--verbose' flag to see more information
If the problem persists, please email the output to: support at ettus.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


*Now patching the python file for proxy settings(in another terminal) :*

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ echo $http_proxy
http://proxy.iiit.ac.in:8080/
sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ sudo
./uhd_images_downloader.py
Images destination:      /usr/local/share/uhd/images
Downloading images from:
http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip
Downloading images to:
/tmp/tmpIxp5HY/uhd-images_003.010.git-53-gb48fe5bb.zip
36363 kB / 36363 kB (100%)

Images successfully installed to: /usr/local/share/uhd/images
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


On Wed, Oct 21, 2015 at 10:44 PM, Marcus Müller <marcus.mueller at ettus.com>
wrote:

> I'm really out of my depth here, Sumit. The manual proxy specification
> should really do the same as the environment variable. I can follow the
> code path manually.
> My guess is that somethings slightly different; I know I'm getting a
> little too persistent, but what does
>
> echo "$http_proxy"
>
> say?
>
> Best regards,
> Marcus
>
> On 10/21/2015 07:12 PM, Sumit Kumar wrote:
> > But it is not working when I am removing the proxy settings from the
> > python code(even after exporting it to the shell)
>
>


-- 
Sumit kumar
Research Assistant
Communication Research Center
IIIT Hyderabad, India
+91-7799081452
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20151021/2afd67a1/attachment-0002.html>


More information about the USRP-users mailing list