[PyQt] PyQt5 error after re-install of Anaconda

HARRIOTT, John john.harriott at baesystems.com
Mon May 25 06:30:23 BST 2015


Hi,

I have been using an Anaconda distro for Python 3.4. on RedHat 6.5
In order to write Qt5 compatible apps I built the appropriate SIP and PyQt5 modules.
My PyQt5 libs are located in my ~/.local/lib/python3.4/lib/PyQt5 folder.

All was good until Anaconda was re-installed. Now I get the following error when I run a python script that requires PyQt5 package:
"This application failed to start because it could not find or load the Qt platform plugin xcb".

I also notice the same error for other workstations that have Anaconda newly installed.

Any clues as to why this is occurring?

When I debug my script it succeeds in importing the packages, but dies when attempting to create a QApplication object.

I checked libqxcb has no missing dependents.
I rebuilt SIP and PyQt5

Below is a code example:

import sys
from PyQt5.QtWidgets import QApplication, QWidget

if __name__=='__main__':
               app = QApplication(sys.argv)
               w = QWidget()
               w.show()
               sys.exit(app.exec_())

Regards John


This email has been sent on behalf of one of the following companies within the BAE Systems Australia group of companies:

    BAE Systems Australia Limited - Australian Company Number 008 423 005
    BAE Systems Australia Defence Pty Limited - Australian Company Number 006 870 846
    BAE Systems Australia Logistics Pty Limited - Australian Company Number 086 228 864

Our registered office is Evans Building, Taranaki Road, Edinburgh Parks,
Edinburgh, South Australia, 5111. If the identity of the sending company is
not clear from the content of this email please contact the sender.

This email and any attachments may contain confidential and legally
privileged information.  If you are not the intended recipient, do not copy or
disclose its content, but please reply to this email immediately and highlight
the error to the sender and then immediately delete the message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150525/4896f78d/attachment.html>


More information about the PyQt mailing list