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


Groups > comp.lang.python > #85591

Re: Odd version scheme

References <54DCD8A5.9050907@yahoo.no>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2015-02-12 09:56 -0700
Subject Re: Odd version scheme
Newsgroups comp.lang.python
Message-ID <mailman.18694.1423760235.18130.python-list@python.org> (permalink)

Show all headers | 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