← Back to team overview

ubuntu-phone team mailing list archive

Re: "Unable to find the server atapi.launchpad.net"when ". build/envsetup.sh"

 

Although I change the proxy_info setting, I still have the same issue.
I found the issue is related to function get_hybris() in build/envsetup.sh
function get_hybris() {
    HYBRIS_SRC=ubuntu/hybris
    HYBRIS_SRC_PACKAGE=libhybris
    HYBRIS_SRC_SERIES=saucy


    # Can't exit while sourcing.
    if [ -z $(which pull-lp-source) ]; then
        echo "*************************************************"
        echo "Please apt-get install ubuntu-dev-tools and rerun"
        echo "or build will be incomplete"
        echo "*************************************************"
    fi


    if [ -d $HYBRIS_SRC ]; then
        rm -rf $HYBRIS_SRC
    fi
    pull-lp-source $HYBRIS_SRC_PACKAGE $HYBRIS_SRC_SERIES
    rm ${HYBRIS_SRC_PACKAGE}*.tar.gz ${HYBRIS_SRC_PACKAGE}*.dsc
    mv ${HYBRIS_SRC_PACKAGE}* $HYBRIS_SRC
    rm -rf $HYBRIS_SRC/.pc
}



And I also found https://launchpad.net/ubuntu/saucy/+source/libhybris with three things in it.

libhybris_0.1.0+git20130606+c5d897a.orig.tar.gz (494.7 KiB)

libhybris_0.1.0+git20130606+c5d897a-0ubuntu7.debian.tar.gz (58.9 KiB)

libhybris_0.1.0+git20130606+c5d897a-0ubuntu7.dsc (2.0 KiB)



If I manually mkdir ubuntu/hybris, and untar the above tar.gz in it, would it be the same as what get_hybris()  does?


------------------ Original ------------------
From:  "leon lee"<llrraa@xxxxxx>;
Date:  Mon, Jun 24, 2013 01:12 PM
To:  "ubuntu-phone"<ubuntu-phone@xxxxxxxxxxxxxxxxxxx>; 

Subject:  Re: [Ubuntu-phone] "Unable to find the server atapi.launchpad.net"when ". build/envsetup.sh"



There seems to be some solution in https://bugs.launchpad.net/charms/+bug/1028099:
Launchpad.login_anonymously('charm-tools', 'production', version='devel', proxy_info=httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP, 'proxy.compaq.com', 8080) )
But is it possible to get the proxy_info from environment "http_proxy"?




------------------ Original ------------------
From:  "leon lee"<llrraa@xxxxxx>;
Date:  Mon, Jun 24, 2013 12:59 PM
To:  "ubuntu-phone"<ubuntu-phone@xxxxxxxxxxxxxxxxxxx>; 

Subject:  [Ubuntu-phone] "Unable to find the server at api.launchpad.net"when ". build/envsetup.sh"



I'm using a http proxy, I think maybe I need to do something with proxy_info. Can anyone help on this issue?


error message:
Traceback (most recent call last):
  File "/usr/bin/pull-lp-source", line 142, in <module>
    main()
  File "/usr/bin/pull-lp-source", line 87, in main
    Launchpad.login_anonymously()
  File "/usr/lib/python2.7/dist-packages/ubuntutools/lp/lpapicache.py", line 77, in login_anonymously
    version=api_version)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 373, in login_anonymously
    version=version)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 198, in __init__
    credentials, service_root, cache, timeout, proxy_info, version)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 460, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 299, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 242, in _request
    str(url), method=method, body=data, headers=headers)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 211, in _request_and_retry
    url, method=method, body=body, headers=headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 126, in _request
    LaunchpadOAuthAwareHttp, self)._request(*args)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 130, in _request
    redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1138, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.ServerNotFoundError: Unable to find the server at api.launchpad.net