<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Sumit,<br>
    <br>
    just another hunch: maybe the environment gets lost due to "sudo".
    what does<br>
    sudo sh -c 'echo "$http_proxy" '<br>
    (please not the single ' and double " quotation marks) say?<br>
    <br>
    Best regards,<br>
    Marcus<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/21/2015 07:58 PM, Sumit Kumar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOExtcSN8+9JK2HP_7G61s_Jh5RSp91CUaA1CrEbszfCBA0VSg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Ahh .... my bad. I did a wrong export. But again the
            result is same :<br>
            <br>
          </div>
          <b>This is with properly patched python code for proxy :</b><br>
          <br>
          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ <b>echo
            $http_proxy</b><br>
          <b><a moz-do-not-send="true"
              href="http://proxy.iiit.ac.in:8080/">http://proxy.iiit.ac.in:8080/</a></b><br>
          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ sudo
          ./uhd_images_downloader.py<br>
          Images destination:      /usr/local/share/uhd/images<br>
          Downloading images from: <a moz-do-not-send="true"
href="http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip">http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip</a><br>
          Downloading images to:  
          /tmp/tmplrI1CR/uhd-images_003.010.git-53-gb48fe5bb.zip<br>
          36363 kB / 36363 kB (100%)<br>
          <br>
          Images successfully installed to: /usr/local/share/uhd/images<br>
          <br>
        </div>
        <b>This is for original code :</b><br>
        <br>
        sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ <b>echo
          $http_proxy</b><br>
        <b><a moz-do-not-send="true"
            href="http://proxy.iiit.ac.in:8080/">http://proxy.iiit.ac.in:8080/</a></b><br>
        sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$ sudo
        ./uhd_images_downloader.py<br>
        Images destination:      /usr/local/share/uhd/images<br>
        Downloading images from: <a moz-do-not-send="true"
href="http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip">http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip</a><br>
        Downloading images to:  
        /tmp/tmpfHQTdy/uhd-images_003.010.git-53-gb48fe5bb.zip<br>
        Downloader raised an unhandled exception:
        HTTPConnectionPool(host='<a moz-do-not-send="true"
          href="http://files.ettus.com">files.ettus.com</a>', 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)<br>
        You can run this again with the '--verbose' flag to see more
        information<br>
        If the problem persists, please email the output to: <a
          moz-do-not-send="true" href="mailto:support@ettus.com">support@ettus.com</a><br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Oct 21, 2015 at 11:17 PM,
          Marcus Müller <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:marcus.mueller@ettus.com" target="_blank">marcus.mueller@ettus.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hm, that's
              conflicting: <br>
              <span class=""> <br>
                sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$
                export http_proxy="<a moz-do-not-send="true"
                  href="http://proxy.iiit.ac.in" target="_blank">http://proxy.iiit.ac.in</a>"<br>
                sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$
                echo $http_proxy<br>
                <a moz-do-not-send="true" href="http://proxy.iiit.ac.in"
                  target="_blank">http://proxy.iiit.ac.in</a><br>
                <br>
              </span> Best regards,<br>
              Marcus
              <div>
                <div class="h5"><br>
                  <div>On 10/21/2015 07:46 PM, Sumit Kumar wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">No it is there. Pasting again from
                      the previous mail:<br>
                      <br>
                      sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$
                      cat /etc/environment<br>
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"<br>
                      http_proxy="<a moz-do-not-send="true"
                        href="http://proxy.iiit.ac.in:8080/"
                        target="_blank">http://proxy.iiit.ac.in:8080/</a>"<br>
                      https_proxy="<a moz-do-not-send="true"
                        href="https://proxy.iiit.ac.in:8080/"
                        target="_blank">https://proxy.iiit.ac.in:8080/</a>"<br>
                      ftp_proxy="<a moz-do-not-send="true"
                        href="ftp://proxy.iiit.ac.in:8080/"
                        target="_blank">ftp://proxy.iiit.ac.in:8080/</a>"<br>
                      socks_proxy="socks://<a moz-do-not-send="true"
                        href="http://proxy.iiit.ac.in:8080/"
                        target="_blank">proxy.iiit.ac.in:8080/</a>"<br>
                      UHD_IMAGES_DIR="/usr/local/lib/uhd/images"<br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Wed, Oct 21, 2015 at
                        11:12 PM, Marcus Müller <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:marcus.mueller@ettus.com"
                            target="_blank">marcus.mueller@ettus.com</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> Hi
                            Sumit!<br>
                            <br>
                            Your environment variables don't contain the
                            port (8080), but the code you added does
                            specify it. <br>
                            <br>
                            Best regards,<br>
                            Marcus
                            <div>
                              <div><br>
                                <br>
                                <div>On 10/21/2015 07:34 PM, Sumit Kumar
                                  wrote:<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">In the file attached,
                                    in line 29 and 85, the setting is
                                    mentioned. <br>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">On Wed, Oct
                                      21, 2015 at 11:01 PM, Sumit Kumar
                                      <span dir="ltr"><<a
                                          moz-do-not-send="true"
                                          href="mailto:cogwsn@gmail.com"
                                          target="_blank">cogwsn@gmail.com</a>></span>
                                      wrote:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div dir="ltr"><b>Without
                                            patching the python file for
                                            proxy settings : </b><br>
                                          <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          echo $http_proxy<br>
                                          <a moz-do-not-send="true"
                                            href="http://proxy.iiit.ac.in:8080/"
                                            target="_blank">http://proxy.iiit.ac.in:8080/</a><br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          sudo
                                          ./uhd_images_downloader.py<br>
                                          Images destination:     
                                          /usr/local/share/uhd/images<br>
                                          Downloading images from: <a
                                            moz-do-not-send="true"
href="http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip"
                                            target="_blank">http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip</a><br>
                                          Downloading images to:  
                                          /tmp/tmpYdMJh_/uhd-images_003.010.git-53-gb48fe5bb.zip<span><br>
                                            Downloader raised an
                                            unhandled exception:
                                            HTTPConnectionPool(host='<a
                                              moz-do-not-send="true"
                                              href="http://files.ettus.com"
                                              target="_blank">files.ettus.com</a>',

                                            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)<br>
                                            You can run this again with
                                            the '--verbose' flag to see
                                            more information<br>
                                            If the problem persists,
                                            please email the output to:
                                            <a moz-do-not-send="true"
                                              href="mailto:support@ettus.com"
                                              target="_blank">support@ettus.com</a><br>
                                          </span>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          export http_proxy="<a
                                            moz-do-not-send="true"
                                            href="http://proxy.iiit.ac.in"
                                            target="_blank">http://proxy.iiit.ac.in</a>"<br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          echo $http_proxy<br>
                                          <a moz-do-not-send="true"
                                            href="http://proxy.iiit.ac.in"
                                            target="_blank">http://proxy.iiit.ac.in</a><br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          sudo
                                          ./uhd_images_downloader.py<br>
                                          Images destination:     
                                          /usr/local/share/uhd/images<br>
                                          Downloading images from: <a
                                            moz-do-not-send="true"
href="http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip"
                                            target="_blank">http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip</a><br>
                                          Downloading images to:  
                                          /tmp/tmpAl8zE4/uhd-images_003.010.git-53-gb48fe5bb.zip<span><br>
                                            Downloader raised an
                                            unhandled exception:
                                            HTTPConnectionPool(host='<a
                                              moz-do-not-send="true"
                                              href="http://files.ettus.com"
                                              target="_blank">files.ettus.com</a>',

                                            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)<br>
                                            You can run this again with
                                            the '--verbose' flag to see
                                            more information<br>
                                            If the problem persists,
                                            please email the output to:
                                            <a moz-do-not-send="true"
                                              href="mailto:support@ettus.com"
                                              target="_blank">support@ettus.com</a><br>
                                            <br>
                                          </span>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
                                          <br>
                                          <br>
                                          <b>Now patching the python
                                            file for proxy settings(in
                                            another terminal) :</b><br>
                                          <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          echo $http_proxy<br>
                                          <a moz-do-not-send="true"
                                            href="http://proxy.iiit.ac.in:8080/"
                                            target="_blank">http://proxy.iiit.ac.in:8080/</a><br>
                                          sumit@sumit-ThinkCentre-M72e:/usr/local/lib/uhd/utils$


                                          sudo
                                          ./uhd_images_downloader.py<br>
                                          Images destination:     
                                          /usr/local/share/uhd/images<br>
                                          Downloading images from: <a
                                            moz-do-not-send="true"
href="http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip"
                                            target="_blank">http://files.ettus.com/binaries/images/uhd-images_003.010.git-53-gb48fe5bb.zip</a><br>
                                          Downloading images to:  
                                          /tmp/tmpIxp5HY/uhd-images_003.010.git-53-gb48fe5bb.zip<br>
                                          36363 kB / 36363 kB (100%)<br>
                                          <br>
                                          Images successfully installed
                                          to:
                                          /usr/local/share/uhd/images<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
                                          <br>
                                        </div>
                                        <div class="gmail_extra">
                                          <div>
                                            <div><br>
                                              <div class="gmail_quote">On
                                                Wed, Oct 21, 2015 at
                                                10:44 PM, Marcus Müller
                                                <span dir="ltr"><<a
                                                    moz-do-not-send="true"
href="mailto:marcus.mueller@ettus.com" target="_blank">marcus.mueller@ettus.com</a>></span>
                                                wrote:<br>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">I'm
                                                  really out of my depth
                                                  here, Sumit. The
                                                  manual proxy
                                                  specification<br>
                                                  should really do the
                                                  same as the
                                                  environment variable.
                                                  I can follow the<br>
                                                  code path manually.<br>
                                                  My guess is that
                                                  somethings slightly
                                                  different; I know I'm
                                                  getting a<br>
                                                  little too persistent,
                                                  but what does<br>
                                                  <br>
                                                  echo "$http_proxy"<br>
                                                  <br>
                                                  say?<br>
                                                  <br>
                                                  Best regards,<br>
                                                  Marcus<br>
                                                  <div>
                                                    <div><br>
                                                      On 10/21/2015
                                                      07:12 PM, Sumit
                                                      Kumar wrote:<br>
                                                      > But it is not
                                                      working when I am
                                                      removing the proxy
                                                      settings from the<br>
                                                      > python
                                                      code(even after
                                                      exporting it to
                                                      the shell)<br>
                                                      <br>
                                                    </div>
                                                  </div>
                                                </blockquote>
                                              </div>
                                              <br>
                                              <br clear="all">
                                              <br>
                                            </div>
                                          </div>
                                          <span>-- <br>
                                            <div>Sumit kumar<br>
                                              Research Assistant<br>
                                              Communication Research
                                              Center<br>
                                              IIIT Hyderabad, India<br>
                                              +91-7799081452<br>
                                              <br>
                                            </div>
                                          </span></div>
                                      </blockquote>
                                    </div>
                                    <br>
                                    <br clear="all">
                                    <br>
                                    -- <br>
                                    <div>Sumit kumar<br>
                                      Research Assistant<br>
                                      Communication Research Center<br>
                                      IIIT Hyderabad, India<br>
                                      +91-7799081452<br>
                                      <br>
                                    </div>
                                  </div>
                                </blockquote>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <br>
                      -- <br>
                      <div>Sumit kumar<br>
                        Research Assistant<br>
                        Communication Research Center<br>
                        IIIT Hyderabad, India<br>
                        +91-7799081452<br>
                        <br>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature">Sumit kumar<br>
          Research Assistant<br>
          Communication Research Center<br>
          IIIT Hyderabad, India<br>
          +91-7799081452<br>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>