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 crashes after I upgraded to 3.2.0 because of OpenGL issues

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Magicwangscommented, Sep 17, 2018

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

1reaction
sebmacommented, Jul 9, 2018

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

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

Any idea ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder crashes on startup and the reset command doesn't ...
I just had the same issue, with Spyder 3.2.8, Anaconda 3.5, Python 3.6 and Windows 10. I fixed it by running anaconda prompt...
Read more >
Bug listing with status RESOLVED with resolution TEST ...
Bug:233 - "Emacs segfaults when merged through the sandbox." status:RESOLVED resolution:TEST-REQUEST severity:critical · Bug:3888 - "yenta_socket module not ...
Read more >
Crashes on launch (OpenGL error) ever since the multiplayer ...
I'm playing inside a Windows 11 virtual machine, but the game worked fine until the multiplayer update. Now it's complaining about having ...
Read more >
Untitled
Update to 1.3.7 - Fix regression in Spyder support - ccmx files were not being handled - Update to latest upstream release -...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
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