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


Groups > comp.lang.python > #86282 > unrolled thread

Re: How to apply python patch for issue9729

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-02-23 20:23 -0500
Last post2015-02-23 20:23 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to apply python patch for issue9729 Terry Reedy <tjreedy@udel.edu> - 2015-02-23 20:23 -0500

#86282 — Re: How to apply python patch for issue9729

FromTerry Reedy <tjreedy@udel.edu>
Date2015-02-23 20:23 -0500
SubjectRe: How to apply python patch for issue9729
Message-ID<mailman.19112.1424741024.18130.python-list@python.org>
On 2/23/2015 4:09 PM, Sada Shirol wrote:
> ​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

You should apply the version actually committed (or something based on 
it).  https://hg.python.org/cpython/rev/7f99ac53014a/
This may be the same as the -3 patch but might have been tweaked.

> 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

You should remove the diff for Misc/NEWS, as it is not in your 
installation.  You can also do without the addition to 
Lib/test/test_ssl.py, or add it by hand.  If you can bet a generic patch 
program to just patch Lib/ssl.py, great.  But you could do this by hand.

However, I second the suggestion to install 2.7, especially if you can 
2.7.9, which has this patch, even if you have to download the source and 
compile.  2.7 is more compatible with 3.x than 2.6, and 2.7.9 has 100s 
of little bug fixes compared to 2.6.6.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web