← Back to team overview

ubuntu-phone team mailing list archive

Re: "Unable to find the server at api.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