cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11850) cannot use cql since upgrading python to 2.7.11+
Date Fri, 22 Jul 2016 16:20:20 GMT

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

Tyler Hobbs commented on CASSANDRA-11850:
-----------------------------------------

bq. The only final nit is that I'm still a bit unsure if this meets the critical requirement
to go on 2.1 though, WDYT Stefania? In particular I'm not sure at which point we stop supporting
python upgrades. Tyler Hobbs Would you have any suggestion on this?

I just hit this problem yesterday after upgrading to the latest Ubuntu.  The workarounds are
not simple -- you have to upgrade the bundled python driver, and if you try to upgrade it
to the latest python driver release, you need to also modify cqlsh to remove references to
{{PagedResult}}.  Given that this completely breaks cqlsh in 2.1 on a common Linux distro
and the workaround sucks, I would argue that this is just critical enough to be included in
2.1.

> cannot use cql since upgrading python to 2.7.11+
> ------------------------------------------------
>
>                 Key: CASSANDRA-11850
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11850
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>         Environment: Development
>            Reporter: Andrew Madison
>            Assignee: Stefania
>              Labels: cqlsh
>             Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x
>
>
> OS: Debian GNU/Linux stretch/sid 
> Kernel: 4.5.0-2-amd64 #1 SMP Debian 4.5.4-1 (2016-05-16) x86_64 GNU/Linux
> Python version: 2.7.11+ (default, May  9 2016, 15:54:33)
> [GCC 5.3.1 20160429]
> cqlsh --version: cqlsh 5.0.1
> cassandra -v: 3.5 (also occurs with 3.0.6)
> Issue:
> when running cqlsh, it returns the following error:
> cqlsh -u dbarpt_usr01
> Password: *****
> Connection error: ('Unable to connect to any servers', {'odbasandbox1': TypeError('ref()
does not take keyword arguments',)})
> I cleared PYTHONPATH:
> python -c "import json; print dir(json); print json.__version__"
> ['JSONDecoder', 'JSONEncoder', '__all__', '__author__', '__builtins__', '__doc__', '__file__',
'__name__', '__package__', '__path__', '__version__', '_default_decoder', '_default_encoder',
'decoder', 'dump', 'dumps', 'encoder', 'load', 'loads', 'scanner']
> 2.0.9
> Java based clients can connect to Cassandra with no issue. Just CQLSH and Python clients
cannot.
> nodetool status also works.
> Thank you for your help.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message