Odd version scheme

Gisle Vanem gvanem at yahoo.no
Thu Feb 12 11:45:25 EST 2015


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.

-- 
--gv



More information about the Python-list mailing list