[IPython-dev] pyside, pyqt import testing question

Julian Taylor jtaylor.debian at googlemail.com
Thu May 3 16:14:12 EDT 2012


Hi,
Debian received this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671363

In short:
the ipython-qtconsole package depends on qt or pyside.
pyside is split into several components in Debian and sometime people
don't have all installed.
Debian packages can't depend on pyqt or (pyside.x and pyside.y) so the
package uses this as a workaround to not pull everything:
Depends: python-qt4 | python-pyside.qtcore,
         python-qt4 | python-pyside.qtgui,
         python-qt4 | python-pyside.qtsvg,

This has the issue that when pyqt is installed but the pyside
installation is incomplete ipython qtconsole won't start:
  File "/usr/lib/python2.7/dist-packages/IPython/external/qt.py", line
62, in <module>
    from PySide import QtCore, QtGui, QtSvg

external/qt.py only checks if import PySide succeeds and the fixes
itself to that, even if PySide turns out to be incomplete later and pyqt
would available as a fallback.

Why is the check split up into two parts like that?
Would there be any issues in making a complete PySide import test before
settling on it?

As this is a Debian only issue I'm fine with caring a Debian only patch
for it if it will not have any unforeseen consequences.

Cheers,
Julian Taylor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120503/e3ace32c/attachment.sig>


More information about the IPython-dev mailing list