title: Cannot connect to cassandra through pycharm python console, but can connect via python in a terminal
body: <p>I am trying to connect to the cassandra 2.1.5 using the latest python driver. It works like a charm if I run python on a terminal, or if I run a python code from pycharm.</p>
  
  <pre><code>from cassandra.cluster import Cluster;
  k = Cluster();
  k.connect('mykeyspace');
  </code></pre>
  
  <p>However, if I try to do it from python console inside pycharm (or If I use debug mode and step through the code), the last line:</p>
  
  <pre><code>k.connect('mykeyspace');
  </code></pre>
  
  <p>Throws me an operation timedout error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;input&gt;", line 1, in &lt;module&gt;
    File "/home/rajee/workspace/bemoss_os/env/local/lib/python2.7/site-packages/cassandra/cluster.py", line 755, in connect
      self.control_connection.connect()
    File "/home/rajee/workspace/bemoss_os/env/local/lib/python2.7/site-packages/cassandra/cluster.py", line 1868, in connect
      self._set_new_connection(self._reconnect_internal())
    File "/home/rajee/workspace/bemoss_os/env/local/lib/python2.7/site-packages/cassandra/cluster.py", line 1903, in _reconnect_internal
      raise NoHostAvailable("Unable to connect to any servers", errors)
  NoHostAvailable: ('Unable to connect to any servers', {'127.0.0.1': OperationTimedOut('errors=None, last_host=None',)})
  </code></pre>
  
  <p>So, Why can't I connect to the Cassandra server via python-console (and the debugger?). Looks like something got to do with ports, but I don't know exactly how the debugger and the console works.
  To repeat, I can connect to the server via python ran in terminal.</p>
  
  <p>Any Solutions?</p>
  
  <p>Further Infos:
  The python console is run as follows:
  <img src="https://i.stack.imgur.com/2gLE3.png" alt="enter image description here"></p>
  
  <p>The python debugger is run as follows:
  <img src="https://i.stack.imgur.com/p2dCL.png" alt="enter image description here"></p>
  
  <p>Thank you.</p>