Advertisement
kopyl

Untitled

Mar 22nd, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. Olehs-MacBook-Pro:backend MVP olehkopyl$ docker-compose up
  2. Traceback (most recent call last):
  3. File "/usr/local/lib/python3.8/site-packages/requests/packages/urllib3/util/timeout.py", line 122, in _validate_timeout
  4. float(value)
  5. TypeError: float() argument must be a string or a number, not 'Timeout'
  6.  
  7. During handling of the above exception, another exception occurred:
  8.  
  9. Traceback (most recent call last):
  10. File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
  11. return self.version(api_version=False)["ApiVersion"]
  12. File "/usr/local/lib/python3.8/site-packages/docker/api/daemon.py", line 181, in version
  13. return self._result(self._get(url), json=True)
  14. File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
  15. return f(self, *args, **kwargs)
  16. File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 237, in _get
  17. return self.get(url, **self._set_request_timeout(kwargs))
  18. File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in get
  19. return self.request('GET', url, **kwargs)
  20. File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
  21. resp = self.send(prep, **send_kwargs)
  22. File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
  23. r = adapter.send(request, **kwargs)
  24. File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
  25. resp = conn.urlopen(
  26. File "/usr/local/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py", line 532, in urlopen
  27. timeout_obj = self._get_timeout(timeout)
  28. File "/usr/local/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py", line 298, in _get_timeout
  29. return Timeout.from_float(timeout)
  30. File "/usr/local/lib/python3.8/site-packages/requests/packages/urllib3/util/timeout.py", line 152, in from_float
  31. return Timeout(read=timeout, connect=timeout)
  32. File "/usr/local/lib/python3.8/site-packages/requests/packages/urllib3/util/timeout.py", line 95, in __init__
  33. self._connect = self._validate_timeout(connect, 'connect')
  34. File "/usr/local/lib/python3.8/site-packages/requests/packages/urllib3/util/timeout.py", line 124, in _validate_timeout
  35. raise ValueError("Timeout value %s was %s, but it must be an "
  36. ValueError: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.
  37.  
  38. During handling of the above exception, another exception occurred:
  39.  
  40. Traceback (most recent call last):
  41. File "/usr/local/bin/docker-compose", line 8, in <module>
  42. sys.exit(main())
  43. File "/usr/local/lib/python3.8/site-packages/compose/cli/main.py", line 81, in main
  44. command_func()
  45. File "/usr/local/lib/python3.8/site-packages/compose/cli/main.py", line 200, in perform_command
  46. project = project_from_options('.', options)
  47. File "/usr/local/lib/python3.8/site-packages/compose/cli/command.py", line 60, in project_from_options
  48. return get_project(
  49. File "/usr/local/lib/python3.8/site-packages/compose/cli/command.py", line 152, in get_project
  50. client = get_client(
  51. File "/usr/local/lib/python3.8/site-packages/compose/cli/docker_client.py", line 41, in get_client
  52. client = docker_client(
  53. File "/usr/local/lib/python3.8/site-packages/compose/cli/docker_client.py", line 170, in docker_client
  54. client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
  55. File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 197, in __init__
  56. self._version = self._retrieve_server_version()
  57. File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 221, in _retrieve_server_version
  58. raise DockerException(
  59. docker.errors.DockerException: Error while fetching server API version: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.
  60. Olehs-MacBook-Pro:backend MVP olehkopyl$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement