Advertisement
Guest User

Untitled

a guest
Nov 28th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.48 KB | None | 0 0
  1. pi@raspberry:~ $ pip3 install psutil
  2. Collecting psutil
  3. Exception:
  4. Traceback (most recent call last):
  5.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 138, in _new_conn
  6.     (self.host, self.port), self.timeout, **extra_kw)
  7.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/connection.py", line 75, in create_connection
  8.     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  9.   File "/usr/lib/python3.5/socket.py", line 733, in getaddrinfo
  10.     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  11. socket.gaierror: [Errno -2] Name or service not known
  12.  
  13. During handling of the above exception, another exception occurred:
  14.  
  15. Traceback (most recent call last):
  16.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen
  17.     chunked=chunked)
  18.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 350, in _make_request
  19.     self._validate_conn(conn)
  20.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 837, in _validate_conn
  21.     conn.connect()
  22.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 281, in connect
  23.     conn = self._new_conn()
  24.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 147, in _new_conn
  25.     self, "Failed to establish a new connection: %s" % e)
  26. requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb6066dac>: Failed to establish a new connection: [Errno -2] Name or service not known
  27.  
  28. During handling of the above exception, another exception occurred:
  29.  
  30. Traceback (most recent call last):
  31.   File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
  32.     status = self.run(options, args)
  33.   File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
  34.     wb.build(autobuilding=True)
  35.   File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
  36.     self.requirement_set.prepare_files(self.finder)
  37.   File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
  38.     ignore_dependencies=self.ignore_dependencies))
  39.   File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
  40.     require_hashes
  41.   File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link
  42.     self.link = finder.find_requirement(self, upgrade)
  43.   File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement
  44.     all_candidates = self.find_all_candidates(req.name)
  45.   File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates
  46.     for page in self._get_pages(url_locations, project_name):
  47.   File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages
  48.     page = self._get_page(location)
  49.   File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page
  50.     return HTMLPage.get_page(link, session=self.session)
  51.   File "/usr/lib/python3/dist-packages/pip/index.py", line 792, in get_page
  52.     "Cache-Control": "max-age=600",
  53.   File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
  54.     return self.request('GET', url, **kwargs)
  55.   File "/usr/lib/python3/dist-packages/pip/download.py", line 386, in request
  56.     return super(PipSession, self).request(method, url, *args, **kwargs)
  57.   File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
  58.     resp = self.send(prep, **send_kwargs)
  59.   File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
  60.     r = adapter.send(request, **kwargs)
  61.   File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
  62.     resp = super(CacheControlAdapter, self).send(request, **kw)
  63.   File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
  64.     timeout=timeout
  65.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
  66.     _stacktrace=sys.exc_info()[2])
  67.   File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
  68.     total -= 1
  69. TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement