From de9219e64652c17f0989c3ca27c35fb6e0901b22 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Thu, 6 Feb 2020 10:10:53 -0800 Subject: [PATCH] require more recent urllib3 to avoid this error: https://github.com/internetarchive/warcprox/issues/148 2020-01-28 14:42:44,851 2023 ERROR MitmProxyHandler(tid=2037,started=2020-01-28T20:42:44.834551,client=127.0.0.1:49100) warcprox.warcprox.WarcProxyHandler.do_COMMAND(mitmproxy.py:442) problem processing request 'GET / HTTP/1.1': TypeError("connection_from_host() got an unexpected keyword argument 'pool_kwargs'",) Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/warcprox/mitmproxy.py", line 413, in do_COMMAND self._connect_to_remote_server() File "/usr/local/lib/python3.5/dist-packages/warcprox/warcproxy.py", line 189, in _connect_to_remote_server return warcprox.mitmproxy.MitmProxyHandler._connect_to_remote_server(self) File "/usr/local/lib/python3.5/dist-packages/warcprox/mitmproxy.py", line 277, in _connect_to_remote_server pool_kwargs={'maxsize': 12, 'timeout': self._socket_timeout}) TypeError: connection_from_host() got an unexpected keyword argument 'pool_kwargs' --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 96089bb..c8306b8 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ deps = [ 'warctools>=4.10.0', 'urlcanon>=0.3.0', 'doublethink>=0.2.0.dev87', - 'urllib3>=1.14', + 'urllib3>=1.23', 'requests>=2.0.1', 'PySocks>=1.6.8', 'cryptography>=2.3',