question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder 3.0.1 failed to start, Could not find Qt platform plugin "xcb"

See original GitHub issue

Description of your problem

After a fresh installation of miniconda, and the installation of Spyder, Spyder 3.0.1 fails to start from the console with the error message

This application failed to start because it could not find or load the Qt platform plugin “xcb” in .

Available platform plugins are: xcb (from /home/beberhardt/miniconda3/pkgs/qt-5.6.0-1/plugins/platforms), minimal, offscreen, xcb.

Reinstalling the application may fix this problem. [1] 9578 abort (core dumped) spyder

Please provide any additional information below

Searching for “xcb” I found two closed issues https://github.com/spyder-ide/spyder/search?q=xcb&state=closed&type=Issues&utf8=✓

It was suggested to start Spyder by specifying the path

QT_API=pyqt5 QT_QPA_PLATFORM_PLUGIN_PATH=${CONDA_ENV_PATH}/lib/qt5/plugins/platforms spyder

However, this does not work.

Versions and main components

  • Spyder Version: 3.0.1
  • Python Version: Python 3.5.2
  • Operating system: Linux manjaro 4.4.31-1-MANJARO
  • pyqt 5.6.0 py35_0
  • qt 5.6.0 1
  • qtawesome 0.3.3 py35_0
  • qtconsole 4.2.1 py35_1
  • qtpy 1.1.2 py35_0

Dependencies

Please go to the menu entry Help > Optional Dependencies (or Help > Dependencies), press the button Copy to clipboard and paste the contents below:

Inside Spyder? It does not start.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bcovariantcommented, Nov 23, 2016

I have solved the xcb issue by pip uninstalling PyQt5/QtPy, then reinstalling. There seems to be some conflict between the pip/Arch linux/ conda installed packages that causes this issue (I could also install these packages via the system package manager but using pip seems to work better in this case). Now Spyder 3 is running.

libselinux was installed on my system.

Thanks for the help.

1reaction
bcovariantcommented, Nov 13, 2016

Everything was installed with miniconda/conda, i.e. without anaconda. Then I installed anaconda, however, the same error occurs. Spyder 2.3.9 does work, only the versions 3.x do no at the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find or load the Qt platform plugin "xcb"
I am trying to run this on Rstudio and I'm getting the same error This application failed to start because it could not...
Read more >
Could not load the Qt platform plugin "xcb" - Qt Forum
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. ...
Read more >
Spyder 3.0.1 failed to start, Could not find Qt platform plugin ...
Spyder 3.0.1 failed to start, Could not find Qt platform plugin "xcb ... Spyder 3.0.1 fails to start from the console with the...
Read more >
打不开Anaconda spyder:could not find or load the QT ...
亲测有效,一招解决错误:This application failed to start because not Qt platform plugin could be initialized. 热门推荐 · weixin_43917589的博客.
Read more >
How To Fix "Could Not Find Or Load The Qt Platform Plugin ...
An error was reported when calling matplotlib. pyplot could not find or load the Qt platform plugin "xcb" Generally the reason is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found