PyQt QtGui Error: Undefined Symbol



  • Error: Undefined symbols within QtGui.so in PyQt5[edit]

    Before the migration to this wiki, hagen23 and iugo reported a similar problem in PyQt4:
    http://qt-project.org/forums/viewthread/51029/
    I would suspect that their solution would be the same.
    Problem:
    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/QtGui.so: 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 http://tinyurl.com/kza5uob and remaking the current stable versions of "sip" and "PyQt5" I was able to load and execute an application originally run on Fedora 19.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.