With the version of python-cassandra from xenial-proposed I no longer
receive the Traceback.

[  8:22AM 10135 ]  [ bdmurray@impulse:~/source-trees/daisy/trunk ]
 $ ./tools/cql-check-oopses-for-arches.py 
Traceback (most recent call last):
  File "./tools/cql-check-oopses-for-arches.py", line 33, in <module>
    session = cluster.connect(config.cassandra_keyspace)
  File "/usr/lib/python2.7/dist-packages/cassandra/cluster.py", line 755, in 
connect
    self.control_connection.connect()
  File "/usr/lib/python2.7/dist-packages/cassandra/cluster.py", line 1868, in 
connect
    self._set_new_connection(self._reconnect_internal())
  File "/usr/lib/python2.7/dist-packages/cassandra/cluster.py", line 1903, in 
_reconnect_internal
    raise NoHostAvailable("Unable to connect to any servers", errors)
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers', 
{'192.168.10.2': TypeError('ref() does not take keyword arguments',)})
[  8:22AM 10136 ]  [ bdmurray@impulse:~/source-trees/daisy/trunk ]
 $ sudo apt-get install python-cassandra        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  python-snappy python-lz4 python-blist
The following packages will be upgraded:
  python-cassandra
1 upgraded, 0 newly installed, 0 to remove and 143 not upgraded.
Need to get 0 B/122 kB of archives.
After this operation, 2,048 B disk space will be freed.
Sorry, your system lacks support for the snapshot feature
Reading changelogs... Done
(Reading database ... 887629 files and directories currently installed.)
Preparing to unpack .../python-cassandra_2.5.1-1ubuntu0.1_all.deb ...
Unpacking python-cassandra (2.5.1-1ubuntu0.1) over (2.5.1-1) ...
Setting up python-cassandra (2.5.1-1ubuntu0.1) ...
[  8:23AM 10137 ]  [ bdmurray@impulse:~/source-trees/daisy/trunk ]
 $ ./tools/cql-check-oopses-for-arches.py
[  8:23AM 10138 ]  [ bdmurray@impulse:~/source-trees/daisy/trunk ]


** Tags removed: verification-needed
** Tags added: verification-done

** Tags removed: removal-candidate

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1603436

Title:
  Regression in python2.7 SRU breaks python-cassandra

Status in python-cassandra-driver package in Ubuntu:
  Fix Released
Status in python2.7 package in Ubuntu:
  Invalid
Status in python-cassandra-driver source package in Xenial:
  Fix Committed
Status in python2.7 source package in Xenial:
  Invalid
Status in python-cassandra-driver source package in Yakkety:
  Fix Released
Status in python2.7 source package in Yakkety:
  Invalid

Bug description:
  "SRU: backport python 2.7.12 to 16.04 LTS" (bug 1591895) has caused a
  regression in (at least) python-cassandra. Any attempt to connect to a
  cluster fails due to:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/cassandra/cluster.py", line 1894, in 
_reconnect_internal
      return self._try_connect(host)
    File "/usr/lib/python2.7/dist-packages/cassandra/cluster.py", line 1921, in 
_try_connect
      self_weakref = weakref.ref(self, callback=partial(_clear_watcher, 
weakref.proxy(connection)))
  TypeError: ref() does not take keyword arguments

  It would appear that Python 2.7.12 has made the permitted calling
  conventions for weakref.ref() stricter.

  See https://github.com/datastax/python-driver/pull/585 for upstream
  discussion of the issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cassandra-driver/+bug/1603436/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to