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


Groups > comp.lang.python > #85591

Re: Odd version scheme

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.news.ox.ac.uk!news.ox.ac.uk!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'failing': 0.07; 'odd': 0.07; 'string': 0.09; 'skip:% 20': 0.09; 'subject:version': 0.09; 'python': 0.11; '4.10': 0.16; 'really?': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'seems': 0.21; 'feb': 0.22; 'appears': 0.22; '(in': 0.22; 'fine': 0.24; 'compare': 0.26; 'gets': 0.27; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'raise': 0.29; 'message-id:@mail.gmail.com': 0.30; 'comparison': 0.31; 'skip:q 20': 0.31; 'problem': 0.35; 'received:209.85': 0.35; 'skip:s 30': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'scheme': 0.36; 'wrong': 0.37; 'received:209': 0.37; 'to:addr :python-list': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'numbers': 0.61; 'simple': 0.61; '2015': 0.84; '9:45': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=vCieVEvyCLtrcOp8VSGtPt4NA+sZAtQ80B5BcB9yFPs=; b=0gYHoghqxiMvyLanWM4n7v3FE7wZyhvsZVjULrqUUZCeMibOLVRVaJrymMJf8IytAD F7gLNu06Bd805faDs62ciSTcO4dlAb3nTRvmqzMvKkAxDNcHdG6zExaZfNlEZ8q9pLpX /KGV0tyuidYy8alFaKL+Xz1ewm97D/tT0Jch2x8gAQH2R6VRyNewyNwciViQri6bt3cX +cUs9w1lqaR0n00k0byJ4Pxs5CodjUW6U3EYXY+MwHlYS9X2oEcVlFz/cTMZkBPHmDda CUmMZYYAXDGjRAOnsqO3vUsBnVd4bHM7juse5sSBk5A2GPdyWSuGE6uGxW6GLpWFPxke JWyg==
X-Received by 10.66.221.194 with SMTP id qg2mr8148820pac.106.1423760225948; Thu, 12 Feb 2015 08:57:05 -0800 (PST)
MIME-Version 1.0
In-Reply-To <54DCD8A5.9050907@yahoo.no>
References <54DCD8A5.9050907@yahoo.no>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 12 Feb 2015 09:56:25 -0700
Subject Re: Odd version scheme
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.18694.1423760235.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1423760235 news.xs4all.nl 2967 [2001:888:2000:d::a6]:46924
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:85591

Show key headers only | View raw


On Thu, Feb 12, 2015 at 9:45 AM, Gisle Vanem <gvanem@yahoo.no> wrote:
> I tried using Interactive Python with a PyQt4 console:
>   "IPython.exe qtconsole"
>
> But got a
>   "ImportError: IPython requires PyQT4 >= 4.7, found 4.10.4"
>
> Looking at Ipython's check (in site-packages\IPython\external\qt.py):
>   if QtCore.PYQT_VERSION_STR < '4.7':
>       raise ImportError("IPython requires PyQt4 >= 4.7, found
> %s"%QtCore.PYQT_VERSION_STR)
>
> So even if '4.10' < '4.7', my '4.10' is newer. What odd version scheme is
> this really? I just edited that line to read:
>  if QtCore.PYQT_VERSION_STR < '4.10':
>
> Seems to be working fine now.

There's nothing wrong with the version scheme; 4.10 is a greater
version than 4.7. The problem appears to be IPython using a simple
lexicographical string comparison to compare the version numbers and
failing when it gets to a number that isn't a single digit.

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


Thread

Re: Odd version scheme Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-12 09:56 -0700

csiph-web