You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Hoskin (JIRA)" <ji...@apache.org> on 2014/09/25 04:20:34 UTC
[jira] [Resolved] (CASSANDRA-8001) CQLSH broken in Mac OS 10.9.5
[ https://issues.apache.org/jira/browse/CASSANDRA-8001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hoskin resolved CASSANDRA-8001.
----------------------------------------
Resolution: Fixed
> CQLSH broken in Mac OS 10.9.5
> -----------------------------
>
> Key: CASSANDRA-8001
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8001
> Project: Cassandra
> Issue Type: Bug
> Environment: Mac OS 10.9.5, homebrew python 2.7, cql 4.1.1
> Reporter: Jonathan Hoskin
>
> Since upgrading to Mac OS 10.9.5, cqlsh has stopped working.
> Here is the error trace I get:
> {quote}
> $ cqlsh -u USER -k KEYSPACE HOST
> Traceback (most recent call last):
> File "/usr/local/bin/cqlsh", line 2044, in <module>
> main(*read_options(sys.argv[1:], os.environ))
> File "/usr/local/bin/cqlsh", line 2030, in main
> display_float_precision=options.float_precision)
> File "/usr/local/bin/cqlsh", line 480, in __init__
> cql_version=cqlver, transport=transport)
> File "/usr/local/lib/python2.7/site-packages/cql/connection.py", line 143, in connect
> consistency_level=consistency_level, transport=transport)
> File "/usr/local/lib/python2.7/site-packages/cql/connection.py", line 59, in __init__
> self.establish_connection()
> File "/usr/local/lib/python2.7/site-packages/cql/thrifteries.py", line 157, in establish_connection
> self.client.login(AuthenticationRequest(credentials=self.credentials))
> File "/usr/local/lib/python2.7/site-packages/cql/cassandra/Cassandra.py", line 454, in login
> self.send_login(auth_request)
> File "/usr/local/lib/python2.7/site-packages/cql/cassandra/Cassandra.py", line 461, in send_login
> args.write(self._oprot)
> File "/usr/local/lib/python2.7/site-packages/cql/cassandra/Cassandra.py", line 2769, in write
> oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
> TypeError: expected string or Unicode object, NoneType found
> {quote}
> At first I suspected that some system dependency had changed, so I have clean reinstalled python, pip and cql. The error persists.
> I have also tested the cqlsh command on another Mac running OS 10.9.2 and it can connect fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)