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


Groups > comp.lang.python > #86282

Re: How to apply python patch for issue9729

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'diff': 0.07; 'fixes': 0.07; 'great.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:How': 0.10; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; 'assume': 0.14; '2.7': 0.14; 'errors)': 0.16; 'os:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:patch': 0.16; 'utc': 0.16; 'x86_64': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'python?': 0.22; 'install': 0.23; 'header:User- Agent:1': 0.23; 'error': 0.23; 'replace': 0.24; '(or': 0.24; 'source': 0.25; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'url:bugs': 0.29; 'patch': 0.29; 'raise': 0.29; 'compared': 0.30; 'especially': 0.30; '3.x': 0.31; 'compatible': 0.32; 'skip:c 30': 0.32; 'linux': 0.33; 'url:python': 0.33; 'could': 0.34; 'tool': 0.35; 'something': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'version': 0.36; 'url:org': 0.36; 'should': 0.36; 'generic': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'skip:- 10': 0.38; 'pm,': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'remove': 0.60; 'skip:t 30': 0.61; 'more': 0.64; 'latest': 0.67; '2015': 0.84; 'hand.': 0.84; 'received:fios.verizon.net': 0.84; 'url:cpython': 0.84; 'url:rev': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: How to apply python patch for issue9729
Date Mon, 23 Feb 2015 20:23:24 -0500
References <CANR9iG-Jy7p3h9027kMT-zE4zjH_FKh8WX_Lrt=vxJU40g1OHg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-98-114-97-173.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
In-Reply-To <CANR9iG-Jy7p3h9027kMT-zE4zjH_FKh8WX_Lrt=vxJU40g1OHg@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19112.1424741024.18130.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424741024 news.xs4all.nl 2879 [2001:888:2000:d::a6]:51526
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86282

Show key headers only | View raw


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

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


Thread

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

csiph-web