How to apply python patch for issue9729

Sada Shirol get2sada at gmail.com
Mon Feb 23 16:09:52 EST 2015


​Hi everyone: Below is the error while I try to connect to Cassandra
database with SSL-enable Python driver:

raise NoHostAvailable("Unable to connect to any servers", errors)
cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers',
{'IP Address': TypeError("'member_descriptor' object is not callable",)})
Upon some research found that I need to apply below patch:

http://bugs.python.org/issue9729

There are three version for patch, I assume I should apply the latest
version of the three files - issue9729-3.patch:

issue9729.patch  Dated: 2010-09-14 06:28
issue9729-2.patch Dated:2010-09-14 13:06
issue9729-3.patch Dated:2010-09-14 13:36

How do I apply a patch to python 2.6.6 on Linux?

I tried to use the below patch tool

patch -p1 --dry-run < name.patch

what should be replace for --dry-run in case of python?


Below is my OS:
OS: Linux ------.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64
x86_64 GNU/Linux

Any input is much appreciated.

Thank You,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150223/1a044572/attachment.html>


More information about the Python-list mailing list