calibre-debug -c "import sip; print 'SIP', sip.SIP_VERSION_STR; from PyQt4 import Qt; print 'Qt', Qt.PYQT_VERSION_STR"