mottosso / Qt.py

Minimal Python 2 & 3 shim around all Qt bindings - PySide, PySide2, PyQt4 and PyQt5.
MIT License
914 stars 254 forks source link

Include the module name that failed to import in warning #350

Closed MHendricks closed 4 years ago

MHendricks commented 4 years ago

On windows, if a required dll is missing you get the exception message DLL load failed: The specified module could not be found.. This makes means that you have to test each import manually so you can debug the problem.

This pull request adds the name of the module that failed to import to the warning.

Old: Qt.py [warning]: ImportError: DLL load failed: The specified module could not be found. New: Qt.py [warning]: ImportError(QtXmlPatterns): DLL load failed: The specified module could not be found.

mottosso commented 4 years ago

Nice one. :) Could you version this to 1.3.2 and I'll make a new release?

MHendricks commented 4 years ago

Version updated

mottosso commented 4 years ago

Released, thanks @MHendricks!