title: Why does cqlsh fail with LookupError: unknown encoding?
body: <p>I've just installed Cassandra using <code>brew</code> on Mac OS X 10.9.4:</p>
  
  <pre><code>➜  ~  brew info cassandra
  cassandra: stable 2.1.0
  http://cassandra.apache.org
  /usr/local/Cellar/cassandra/2.0.9 (3466 files, 79M) *
    Built from source
  From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/cassandra.rb
  ==&gt; Caveats
  If you plan to use the CQL shell (cqlsh), you will need the Python CQL library
  installed. Since Homebrew prefers using pip for Python packages, you can
  install that using:
  
    pip install cql
  
  To have launchd start cassandra at login:
      ln -sfv /usr/local/opt/cassandra/*.plist ~/Library/LaunchAgents
  Then to load cassandra now:
      launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
  ➜  ~  uname -a
  Darwin xxx 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
  </code></pre>
  
  <p>As advised in the above info message, to install <code>cql</code> I executed <code>sudo easy_install pip</code> followed by <code>pip install cql</code>.</p>
  
  <p>With the software installed, upon executing <code>cqlsh</code> I'm facing the error:</p>
  
  <pre><code>➜  ~  cqlsh
  Traceback (most recent call last):
    File "/usr/local/bin/cqlsh", line 2084, in &lt;module&gt;
      main(*read_options(sys.argv[1:], os.environ))
    File "/usr/local/bin/cqlsh", line 2067, in main
      single_statement=options.execute)
    File "/usr/local/bin/cqlsh", line 509, in __init__
      self.output_codec = codecs.lookup(encoding)
  LookupError: unknown encoding:
  </code></pre>
  
  <p>How can I fix it?</p>