spyder: Spyder crashes after I upgraded to 3.2.0 because of OpenGL issues

I just upgraded Spyder to 3.2.0 (Python 3), and it stopped working. Specifically, when I tried launching it at a terminal with spyder, I got the following message:

WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Aborted (core dumped)

It seems like a problem stemming from OpenGL? I tried making a fresh virtualenv and just installed spyder and pyqt5, and it still doesn’t work…

However, the same works in Python 2.

What steps will reproduce the problem?

  1. mkvirtualenv --python=/usr/bin/python3 testenv
  2. pip install pyqt5 spyder
  3. spyder

Versions and main components

  • Spyder Version: 3.2.0
  • Python Version: 3.5.2
  • Qt Version: 5.9.1
  • PyQt Version: 5.9
  • Operating system: Ubuntu 16.04 LTS

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

As For Me, i just conda install pyqt=4 and then conda install tensorflow-gpu (something you need, which will install pyqt5 automaticly) thing goes well now, maybe it just because i miss something when i install spyder

@ccordoba12 I also this error before the Failed to create OpenGL context message :

AttributeError: '_ModuleMock' object has no attribute 'PLUGIN_CLASS'

Any idea ?