Advertisement
Guest User

translator

a guest
Jul 8th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. [alucard@arch ~/Downloads]$ python -m srtranslator film.srt -i en -o hu
  2. Traceback (most recent call last):
  3. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
  4. conn = connection.create_connection(
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/util/connection.py", line 95, in create_connection
  7. raise err
  8. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
  9. sock.connect(sa)
  10. ConnectionRefusedError: [Errno 111] Connection refused
  11.  
  12. During handling of the above exception, another exception occurred:
  13.  
  14. Traceback (most recent call last):
  15. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
  16. httplib_response = self._make_request(
  17. ^^^^^^^^^^^^^^^^^^^
  18. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
  19. self._validate_conn(conn)
  20. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
  21. conn.connect()
  22. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connection.py", line 358, in connect
  23. self.sock = conn = self._new_conn()
  24. ^^^^^^^^^^^^^^^^
  25. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
  26. raise NewConnectionError(
  27. urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f0a18b13750>: Failed to establish a new connection: [Errno 111] Connection refused
  28.  
  29. During handling of the above exception, another exception occurred:
  30.  
  31. Traceback (most recent call last):
  32. File "/home/alucard/.local/lib/python3.11/site-packages/requests/adapters.py", line 489, in send
  33. resp = conn.urlopen(
  34. ^^^^^^^^^^^^^
  35. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen
  36. retries = retries.increment(
  37. ^^^^^^^^^^^^^^^^^^
  38. File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
  39. raise MaxRetryError(_pool, url, error or ResponseError(cause))
  40. urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.us-proxy.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0a18b13750>: Failed to establish a new connection: [Errno 111] Connection refused'))
  41.  
  42. During handling of the above exception, another exception occurred:
  43.  
  44. Traceback (most recent call last):
  45. File "/home/alucard/.local/lib/python3.11/site-packages/fp/fp.py", line 32, in get_proxy_list
  46. page = requests.get(self.__website(repeat))
  47. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. File "/home/alucard/.local/lib/python3.11/site-packages/requests/api.py", line 73, in get
  49. return request("get", url, params=params, **kwargs)
  50. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. File "/home/alucard/.local/lib/python3.11/site-packages/requests/api.py", line 59, in request
  52. return session.request(method=method, url=url, **kwargs)
  53. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  54. File "/home/alucard/.local/lib/python3.11/site-packages/requests/sessions.py", line 587, in request
  55. resp = self.send(prep, **send_kwargs)
  56. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  57. File "/home/alucard/.local/lib/python3.11/site-packages/requests/sessions.py", line 701, in send
  58. r = adapter.send(request, **kwargs)
  59. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  60. File "/home/alucard/.local/lib/python3.11/site-packages/requests/adapters.py", line 565, in send
  61. raise ConnectionError(e, request=request)
  62. requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.us-proxy.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0a18b13750>: Failed to establish a new connection: [Errno 111] Connection refused'))
  63.  
  64. The above exception was the direct cause of the following exception:
  65.  
  66. Traceback (most recent call last):
  67. File "<frozen runpy>", line 198, in _run_module_as_main
  68. File "<frozen runpy>", line 88, in _run_code
  69. File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/__main__.py", line 107, in <module>
  70. translator = builtin_translators[args.translator](**translator_args)
  71. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  72. File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/translators/deepl_scrap.py", line 62, in __init__
  73. self._rotate_proxy()
  74. File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/translators/deepl_scrap.py", line 88, in _rotate_proxy
  75. proxy = create_proxy()
  76. ^^^^^^^^^^^^^^
  77. File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/translators/selenium_utils.py", line 27, in create_proxy
  78. proxy = FreeProxy(country_id=country_id).get()
  79. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  80. File "/home/alucard/.local/lib/python3.11/site-packages/fp/fp.py", line 68, in get
  81. proxy_list = self.get_proxy_list(repeat)
  82. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  83. File "/home/alucard/.local/lib/python3.11/site-packages/fp/fp.py", line 35, in get_proxy_list
  84. raise FreeProxyException(
  85. fp.errors.FreeProxyException: Request to https://www.us-proxy.org failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement