Advertisement
Guest User

Untitled

a guest
Nov 17th, 2016
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.63 KB | None | 0 0
  1. /usr/local/lib/python3.6/site-packages/boto3/resources/factory.py in property_loader(self)
  2.     337             if self.meta.data is None:
  3.     338                 if hasattr(self, 'load'):
  4. --> 339                     self.load()
  5.     340                 else:
  6.     341                     raise ResourceLoadException(
  7.  
  8. /usr/local/lib/python3.6/site-packages/boto3/resources/factory.py in do_action(self, *args, **kwargs)
  9.     503             # instance via ``self``.
  10.     504             def do_action(self, *args, **kwargs):
  11. --> 505                 response = action(self, *args, **kwargs)
  12.     506                 self.meta.data = response
  13.     507             # Create the docstring for the load/reload mehtods.
  14.  
  15. /usr/local/lib/python3.6/site-packages/boto3/resources/action.py in __call__(self, parent, *args, **kwargs)
  16.      81                     operation_name, params)
  17.      82
  18. ---> 83         response = getattr(parent.meta.client, operation_name)(**params)
  19.      84
  20.      85         logger.debug('Response: %r', response)
  21.  
  22. /usr/local/lib/python3.6/site-packages/botocore/client.py in _api_call(self, *args, **kwargs)
  23.     249                     "%s() only accepts keyword arguments." % py_operation_name)
  24.     250             # The "self" in this scope is referring to the BaseClient.
  25. --> 251             return self._make_api_call(operation_name, kwargs)
  26.     252
  27.     253         _api_call.__name__ = str(py_operation_name)
  28.  
  29. /usr/local/lib/python3.6/site-packages/botocore/client.py in _make_api_call(self, operation_name, api_params)
  30.     524         else:
  31.     525             http, parsed_response = self._endpoint.make_request(
  32. --> 526                 operation_model, request_dict)
  33.     527
  34.     528         self.meta.events.emit(
  35.  
  36. /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in make_request(self, operation_model, request_dict)
  37.     139         logger.debug("Making request for %s (verify_ssl=%s) with params: %s",
  38.     140                      operation_model, self.verify, request_dict)
  39. --> 141         return self._send_request(request_dict, operation_model)
  40.     142
  41.     143     def create_request(self, params, operation_model=None):
  42.  
  43. /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in _send_request(self, request_dict, operation_model)
  44.     168             request, operation_model, attempts)
  45.     169         while self._needs_retry(attempts, operation_model, request_dict,
  46. --> 170                                 success_response, exception):
  47.     171             attempts += 1
  48.     172             # If there is a stream associated with the request, we need
  49.  
  50. /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in _needs_retry(self, attempts, operation_model, request_dict, response, caught_exception)
  51.     247             event_name, response=response, endpoint=self,
  52.     248             operation=operation_model, attempts=attempts,
  53. --> 249             caught_exception=caught_exception, request_dict=request_dict)
  54.     250         handler_response = first_non_none_response(responses)
  55.     251         if handler_response is None:
  56.  
  57. /usr/local/lib/python3.6/site-packages/botocore/hooks.py in emit(self, event_name, **kwargs)
  58.     225                  handlers.
  59.     226         """
  60. --> 227         return self._emit(event_name, kwargs)
  61.    228
  62.    229     def emit_until_response(self, event_name, **kwargs):
  63.  
  64. /usr/local/lib/python3.6/site-packages/botocore/hooks.py in _emit(self, event_name, kwargs, stop_on_response)
  65.    208         for handler in handlers_to_call:
  66.    209             logger.debug('Event %s: calling handler %s', event_name, handler)
  67. --> 210             response = handler(**kwargs)
  68.    211             responses.append((handler, response))
  69.    212             if stop_on_response and response is not None:
  70.  
  71. /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempts, response, caught_exception, **kwargs)
  72.    181
  73.    182         """
  74. --> 183         if self._checker(attempts, response, caught_exception):
  75.     184             result = self._action(attempts=attempts)
  76.     185             logger.debug("Retry needed, action of: %s", result)
  77.  
  78. /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempt_number, response, caught_exception)
  79.     249     def __call__(self, attempt_number, response, caught_exception):
  80.     250         should_retry = self._should_retry(attempt_number, response,
  81. --> 251                                           caught_exception)
  82.     252         if should_retry:
  83.     253             if attempt_number >= self._max_attempts:
  84.  
  85. /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in _should_retry(self, attempt_number, response, caught_exception)
  86.     267                 attempt_number < self._max_attempts:
  87.     268             try:
  88. --> 269                 return self._checker(attempt_number, response, caught_exception)
  89.     270             except self._retryable_exceptions as e:
  90.     271                 logger.debug("retry needed, retryable exception caught: %s",
  91.  
  92. /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempt_number, response, caught_exception)
  93.     315         for checker in self._checkers:
  94.     316             checker_response = checker(attempt_number, response,
  95. --> 317                                        caught_exception)
  96.     318             if checker_response:
  97.     319                 return checker_response
  98.  
  99. /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempt_number, response, caught_exception)
  100.     221         elif caught_exception is not None:
  101.     222             return self._check_caught_exception(
  102. --> 223                 attempt_number, caught_exception)
  103.     224         else:
  104.     225             raise ValueError("Both response and caught_exception are None.")
  105.  
  106. /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in _check_caught_exception(self, attempt_number, caught_exception)
  107.     357         # the MaxAttemptsDecorator is not interested in retrying the exception
  108.     358         # then this exception just propogates out past the retry code.
  109. --> 359         raise caught_exception
  110.  
  111. /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in _get_response(self, request, operation_model, attempts)
  112.     202                 request, verify=self.verify,
  113.     203                 stream=operation_model.has_streaming_output,
  114. --> 204                 proxies=self.proxies, timeout=self.timeout)
  115.     205         except ConnectionError as e:
  116.     206             # For a connection error, if it looks like it's a DNS
  117.  
  118. /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/sessions.py in send(self, request, **kwargs)
  119.     571
  120.     572         # Send the request
  121. --> 573         r = adapter.send(request, **kwargs)
  122.     574
  123.     575         # Total elapsed time of the request (approximately)
  124.  
  125. /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
  126.     368                     decode_content=False,
  127.     369                     retries=self.max_retries,
  128. --> 370                     timeout=timeout
  129.     371                 )
  130.     372
  131.  
  132. /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
  133.     542             httplib_response = self._make_request(conn, method, url,
  134.     543                                                   timeout=timeout_obj,
  135. --> 544                                                   body=body, headers=headers)
  136.     545
  137.     546             # If we're going to release the connection in ``finally:``, then
  138.  
  139. /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
  140.     347         # conn.request() calls httplib.*.request, not the method in
  141.     348         # urllib3.request. It also calls makefile (recv) on the socket.
  142. --> 349         conn.request(method, url, **httplib_request_kw)
  143.     350
  144.     351         # Reset the timeout for the recv() on the socket
  145.  
  146. /usr/local/lib/python3.6/http/client.py in request(self, method, url, body, headers, encode_chunked)
  147.    1237                 encode_chunked=False):
  148.    1238         """Send a complete request to the server."""
  149. -> 1239         self._send_request(method, url, body, headers, encode_chunked)
  150.    1240
  151.    1241     def _send_request(self, method, url, body, headers, encode_chunked):
  152.  
  153. TypeError: _send_request() takes 5 positional arguments but 6 were given
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement