Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86269

How to apply python patch for issue9729

Date 2015-02-23 16:09 -0500
Subject How to apply python patch for issue9729
From Sada Shirol <get2sada@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.19101.1424725795.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

​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,

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

How to apply python patch for issue9729 Sada Shirol <get2sada@gmail.com> - 2015-02-23 16:09 -0500

csiph-web