qtconsole icon indicating copy to clipboard operation
qtconsole copied to clipboard

Error about missing Qt binding is misleading

Open astrofrog opened this issue 9 years ago • 1 comments

While setting up tests on CircleCI, I ran into the following error:

ImportError: 
E               Could not load requested Qt binding. Please ensure that
E               PyQt4 >= 4.7, PyQt5 or PySide >= 1.0.3 is available,
E               and only one is imported per session.

However, I had PyQt5 5.2.1 installed with Qt 5.2.1, and these are missing the QtSvg module. Therefore, the real reason that importing qtconsole failed was because either there is a minimum version of Qt5 required, or the Svg bindings are optional and were not installed here (not sure which is the case). So the error message should probably be clarified here.

astrofrog avatar Oct 07 '16 14:10 astrofrog

The message was improved in IPython in ipython/ipython@6cf65baf7120e1c0248a6cff21a82a9c18afc646 - the same change should be made in qtconsole.

takluyver avatar Oct 07 '16 15:10 takluyver