[PyQt] PyQt5 error after re-install of Anaconda

HARRIOTT, John john.harriott at baesystems.com
Tue May 26 08:28:10 BST 2015

If there was a problem with Qt install then why was it working before? BTW The Qt install is fine for C++ apps I develop.

I should mention Anaconda has PyQt4. Perhaps there is a problem having both, even though I have PyQt5 site package in one of my user folders, rather than a system folder.


-----Original Message-----
From: PyQt [mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of Phil Thompson
Sent: Monday, 25 May 2015 5:48 PM
To: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] PyQt5 error after re-install of Anaconda

On 25/05/2015 6:30 am, HARRIOTT, John wrote:
> 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_())

Something is wrong with your Qt installation.

PyQt mailing list    PyQt at riverbankcomputing.com
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.

More information about the PyQt mailing list