cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hoskin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8001) CQLSH broken in Mac OS 10.9.5
Date Thu, 25 Sep 2014 02:19:34 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-8001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14147265#comment-14147265
] 

Jonathan Hoskin commented on CASSANDRA-8001:
--------------------------------------------

Ah yes, I understand what you mean now. I have just reinstalled Cassandra locally:

{quote}
brew uninstall cassandra
brew install cassandra
{quote}

This fixed the cqlsh command.


> 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)

Mime
View raw message