[USRP-users] Reg : Image Downloader

Marcus D. Leech mleech at ripnet.com
Wed Oct 21 14:30:11 EDT 2015


On 10/21/2015 02:25 PM, Sumit Kumar wrote:
> BAAM !
>
> *Putting -E worked with the original code. (The one without proxy 
> modification)*
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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 -E 
> ./uhd_images_downloader.py
> UHD_IMAGES_DIR environment variable is set.
> Default install location: /usr/local/share/uhd/images
> 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/tmpT_ASbW/uhd-images_003.010.git-53-gb48fe5bb.zip
> 36363 kB / 36363 kB (100%)
>
> Images successfully installed to: /usr/local/share/uhd/images
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> But I am wondering, why build-gnuradio script threw error at the first 
> place ?
Because it doesn't use the -E option when calling the downloader.

I'll update it to do that, but I don't recall this coming up before.


>
> On Wed, Oct 21, 2015 at 11:31 PM, Marcus D. Leech <mleech at ripnet.com 
> <mailto:mleech at ripnet.com>> wrote:
>
>     On 10/21/2015 01:58 PM, Sumit Kumar wrote:
>>     Ahh .... my bad. I did a wrong export. But again the result is same :
>>
>>     *This is with properly patched python code for proxy :*
>>
>>     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/tmplrI1CR/uhd-images_003.010.git-53-gb48fe5bb.zip
>>     36363 kB / 36363 kB (100%)
>>
>>     Images successfully installed to: /usr/local/share/uhd/images
>>
>>     *This is for original code :*
>>
>>     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/tmpfHQTdy/uhd-images_003.010.git-53-gb48fe5bb.zip
>>     Downloader raised an unhandled exception:
>>     HTTPConnectionPool(host='files.ettus.com
>>     <http://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 <mailto:support at ettus.com>
>>
>     BOOM!
>
>     sudo doesn't export environment variables, unless you ask it nice,
>     with the -E option.
>
>
>
>
>
>
>
> -- 
> 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/1c91a076/attachment-0002.html>


More information about the USRP-users mailing list