Ubuntu Pastebin

Paste from tsimonq2 at Fri, 22 Jan 2016 16:52:24 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
simon@semantic:~$ python
Python 2.7.11 (default, Jan 11 2016, 21:04:40) 
[GCC 5.3.1 20160112] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import launchpadlib
>>> lp = Launchpad.login_with('Test', 'production')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'Launchpad' is not defined
>>> from launchpadlib.launchpad import Launchpad
>>> import sys
>>> lp = Launchpad.login_with('Test', 'production')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 544, in login_with
    credential_save_failed, version)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 351, in _authorize_token_and_login
    credentials = authorization_engine(credentials, credential_store)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 543, in __call__
    request_token_string = self.get_request_token(credentials)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 560, in get_request_token
    token_format=Credentials.DICT_TOKEN_FORMAT)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 192, in get_request_token
    response, content = _http_post(url, headers, params)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 112, in _http_post
    url, method='POST', headers=headers, body=urlencode(params))
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1570, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1317, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1252, in _conn_request
    conn.connect()
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1044, in connect
    raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
Download as text