Important: Please read the Qt Code of Conduct -

PyQt QtGui Error: Undefined Symbol

  • Error: Undefined symbols within in PyQt5[edit]

    Before the migration to this wiki, hagen23 and iugo reported a similar problem in PyQt4:
    I would suspect that their solution would be the same.
    Python 2.7.3 (default, Mar 18 2014, 05:13:23) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt5 import QtGui
    Results in:
    Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/lib/python2.7/dist-packages/PyQt5/ undefined symbol: _ZNK14QSurfaceFormat10testOptionENS_12FormatOptionE
    Hopefully their solution will apply to PyQt5
    Thanks all.
    --Happycat (talk) 17:54, 6 March 2015 (UTC)

  • This problem has been resolved. Apparently, the libraries available in the distribution are not compatible with each other, or with installation of "sip" or "PyQt5". After installing the .deb file found at and remaking the current stable versions of "sip" and "PyQt5" I was able to load and execute an application originally run on Fedora 19.