Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. nicolas@PC-Nicolas:~/crypto_le_bon_gros_fun$ python3
  2. Python 3.5.2 (default, Nov 17 2016, 17:05:23)
  3. [GCC 5.4.0 20160609] on linux
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> from client import *
  6. Traceback (most recent call last):
  7. File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
  8. h.request(req.get_method(), req.selector, req.data, headers)
  9. File "/usr/lib/python3.5/http/client.py", line 1106, in request
  10. self._send_request(method, url, body, headers)
  11. File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
  12. self.endheaders(body)
  13. File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
  14. self._send_output(message_body)
  15. File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
  16. self.send(msg)
  17. File "/usr/lib/python3.5/http/client.py", line 877, in send
  18. self.connect()
  19. File "/usr/lib/python3.5/http/client.py", line 849, in connect
  20. (self.host,self.port), self.timeout, self.source_address)
  21. File "/usr/lib/python3.5/socket.py", line 693, in create_connection
  22. for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  23. File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo
  24. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  25. socket.gaierror: [Errno -2] Name or service not known
  26.  
  27. During handling of the above exception, another exception occurred:
  28.  
  29. Traceback (most recent call last):
  30. File "<stdin>", line 1, in <module>
  31. File "/home/nicolas/crypto_le_bon_gros_fun/client.py", line 507, in <module>
  32. c.connexion()
  33. File "/home/nicolas/crypto_le_bon_gros_fun/client.py", line 213, in connexion
  34. self.post('/bin/login', user="danielmiller", password="$!5JDqkj7G")
  35. File "/home/nicolas/crypto_le_bon_gros_fun/client.py", line 167, in post
  36. return self._query(url, request, data)
  37. File "/home/nicolas/crypto_le_bon_gros_fun/client.py", line 77, in _query
  38. with urllib.request.urlopen(request, data) as connexion:
  39. File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
  40. return opener.open(url, data, timeout)
  41. File "/usr/lib/python3.5/urllib/request.py", line 466, in open
  42. response = self._open(req, data)
  43. File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
  44. '_open', req)
  45. File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
  46. result = func(*args)
  47. File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
  48. return self.do_open(http.client.HTTPConnection, req)
  49. File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
  50. raise URLError(err)
  51. urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
  52. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement