I have PyQt5 installed, but my os.environ['QT_API'] returns 'pyqt', erroneously classifying my PyQt version as PyQt4 and resulting in an ImportError when the following PyQt4 import inevitably fails. When I modified the check at the beginning of formlayout.py to attempt the PyQt5 imports instead, everything works perfectly, so this is a false positive failure.