[USRP-users] Reg : Image Downloader

Sumit Kumar cogwsn at gmail.com
Wed Oct 21 13:34:00 EDT 2015


In the file attached, in line 29 and 85, the setting is mentioned.

On Wed, Oct 21, 2015 at 11:01 PM, Sumit Kumar <cogwsn at gmail.com> wrote:

> *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
>
>


-- 
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/fe652bf9/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uhd_images_downloader.py
Type: text/x-python
Size: 16696 bytes
Desc: not available
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20151021/fe652bf9/attachment.py>


More information about the USRP-users mailing list