title: stuck in process sock.connect(sa) or making connections
body: <p>I just set up Kali with GNOME3.38 desktop, and also have set up the python development tools I usually use. But when I start to use <code>imapclient</code> in the interactive python shell and do: <code>conn = IMAPClient('imap.gmail.com', ssl=True)</code> or:</p>
  <pre><code>with requests.get('https://chromedriver.storage.googleapis.com/LATEST_RELEASE') as response:
         print(response)
  </code></pre>
  <p>nothing really happens rather than just be stuck. I hit <code>Ctrl + C</code> to stop the process and I see the <strong>same tracebacks.</strong></p>
  <pre><code>&gt;&gt;&gt; import requests
  &gt;&gt;&gt; with requests.get('https://chromedriver.storage.googleapis.com/LATEST_RELEASE') as response:
  ...     response.raise_for_status()
  ... 
  ^CTraceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/usr/lib/python3/dist-packages/requests/api.py&quot;, line 76, in get
      return request('get', url, params=params, **kwargs)
    File &quot;/usr/lib/python3/dist-packages/requests/api.py&quot;, line 61, in request
      return session.request(method=method, url=url, **kwargs)
    File &quot;/usr/lib/python3/dist-packages/requests/sessions.py&quot;, line 542, in request
      resp = self.send(prep, **send_kwargs)
    File &quot;/usr/lib/python3/dist-packages/requests/sessions.py&quot;, line 655, in send
      r = adapter.send(request, **kwargs)
    File &quot;/usr/lib/python3/dist-packages/requests/adapters.py&quot;, line 439, in send
      resp = conn.urlopen(
    File &quot;/usr/lib/python3/dist-packages/urllib3/connectionpool.py&quot;, line 699, in urlopen
      httplib_response = self._make_request(
    File &quot;/usr/lib/python3/dist-packages/urllib3/connectionpool.py&quot;, line 382, in _make_request
      self._validate_conn(conn)
    File &quot;/usr/lib/python3/dist-packages/urllib3/connectionpool.py&quot;, line 1012, in _validate_conn
      conn.connect()
    File &quot;/usr/lib/python3/dist-packages/urllib3/connection.py&quot;, line 353, in connect
      conn = self._new_conn()
    File &quot;/usr/lib/python3/dist-packages/urllib3/connection.py&quot;, line 169, in _new_conn
      conn = connection.create_connection(
    File &quot;/usr/lib/python3/dist-packages/urllib3/util/connection.py&quot;, line 86, in create_connection
      sock.connect(sa)
  KeyboardInterrupt
  </code></pre>
  <p>and for the imapclient:</p>
  <pre><code>&gt;&gt;&gt; conn = IMAPClient('imap.gmail.com', ssl=True)
  ^CTraceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/home/kali/.local/lib/python3.9/site-packages/imapclient/imapclient.py&quot;, line 284, in __init__
      self._imap = self._create_IMAP4()
    File &quot;/home/kali/.local/lib/python3.9/site-packages/imapclient/imapclient.py&quot;, line 321, in _create_IMAP4
      return tls.IMAP4_TLS(
    File &quot;/home/kali/.local/lib/python3.9/site-packages/imapclient/tls.py&quot;, line 44, in __init__
      imaplib.IMAP4.__init__(self, host, port)
    File &quot;/usr/lib/python3.9/imaplib.py&quot;, line 202, in __init__
      self.open(host, port, timeout)
    File &quot;/home/kali/.local/lib/python3.9/site-packages/imapclient/tls.py&quot;, line 49, in open
      sock = socket.create_connection(
    File &quot;/usr/lib/python3.9/socket.py&quot;, line 831, in create_connection
      sock.connect(sa)
  KeyboardInterrupt
  </code></pre>
  <p>Now, I didn't really mess with anything else in my kali machine.. But is it GNOME that's causing this, or is there something wrong with the files in kali?</p>
  <p>Another problem is that <code>pip install [library_name]</code> takes too long to process. My internet speed is okay for the speed, btw.</p>