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


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

Re: Odd version scheme

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2015-02-12 09:56 -0700
Last post2015-02-12 09:56 -0700
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: Odd version scheme Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-12 09:56 -0700

#85591 — Re: Odd version scheme

FromIan Kelly <ian.g.kelly@gmail.com>
Date2015-02-12 09:56 -0700
SubjectRe: Odd version scheme
Message-ID<mailman.18694.1423760235.18130.python-list@python.org>
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.

[toc] | [standalone]


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


csiph-web