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.

Could not Initialize GLX after Conda Update --All

See original GitHub issue

Problem Description

I’m using Spyder on a remote server by SSH and X11 forwarding. After I use conda update --all , spyder stopped launching and has the error: Could not initialize GLX. I have tried adding these lines in start.py

import ctypes
ctypes.CDLL("libGL.so.1", mode=ctypes.RTLD_GLOBAL)
from PyQt5 import QtWebEngineWidgets

and also

export __GLX_VENDOR_LIBRARY_NAME=nvidia

but none of them works.

I also tried

conda install qt=5.6.2

but then I encounter the segmentation fault.

What steps reproduce the problem?

  1. Create a new environment
  2. Install keras, keras gpu, tensorflow, tensorflow gpu, cudatoolkit and dependencies
  3. Conda update --all

Versions

  • Spyder version: 3.2.8
  • Python version: 3.6
  • Qt version: 5.9.5
  • PyQt version: 5.9.2
  • Operating System name/version: CentOS 7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arnonerbacommented, Jul 20, 2018

This does not appear to be fixed in Spyder 3.3.0. Could this be a Qt issue as noted in #7447?

conda install qt=5.6* pyqt=5.6* still works as a temporary fix with Spyder 3.3.0.

0reactions
kentaroy47commented, Apr 16, 2019

Spyder fails with the same error with Spyder 3.3.1. However, by upgrading conda to the newest version, Spyder 3.3.3 worked ok with ssh -X connections

Also found that using TightVNC causes this error and using vnc4server evades the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not Initialize GLX after Conda Update --All
After I use conda update --all , spyder stopped launching and has the error: Could not initialize GLX. I have tried adding these...
Read more >
Installing on Linux - Anaconda Documentation
In order to initialize after the installation process is done, first run source [PATH TO CONDA]/bin/activate and then run conda init . See...
Read more >
Installing Anaconda on Ubuntu 20.04
Anaconda in fact does not recommend initializing conda by default for a few reasons listed below · It will make current pip-managed Python...
Read more >
Troubleshooting — conda 22.11.1.post13+5eef286ca ...
Conda is having problems because it can't find the OpenSSL libraries that it needs. Cause . You may observe this error cropping...
Read more >
NVIDIA CUDA Installation Guide for Linux
To use NVIDIA CUDA on your system, you will need the following installed: CUDA-capable GPU. A supported version of Linux with a gcc...
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