[USRP-users] Reg : Image Downloader

Sumit Kumar cogwsn at gmail.com
Wed Oct 21 13:46:03 EDT 2015


No it is there. Pasting again from the previous mail:

sumit at sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/lib/uhd/images:/usr/local/share/uhd/images"
http_proxy="http://proxy.iiit.ac.in:8080/"
https_proxy="https://proxy.iiit.ac.in:8080/"
ftp_proxy="ftp://proxy.iiit.ac.in:8080/"
socks_proxy="socks://proxy.iiit.ac.in:8080/"
UHD_IMAGES_DIR="/usr/local/lib/uhd/images"

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

> Hi Sumit!
>
> Your environment variables don't contain the port (8080), but the code you
> added does specify it.
>
> Best regards,
> Marcus
>
>
> On 10/21/2015 07:34 PM, Sumit Kumar wrote:
>
> 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
>
>
>


-- 
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/5e9da512/attachment-0002.html>


More information about the USRP-users mailing list