Python spyder could not initialize GLX

Problem:

Whenever I run spyder, It results in the error below

QXcbConnection: Failed to initialize XRandr 
Qt: XKEYBOARD extension not present on the X server. 
Could not initialize GLX
Aborted (core dumped)

Solution:

1、Simply try:

export QT_XCB_GL_INTEGRATION=none

Then, start the spyder

 

2、Reinstall some packages:

sudo apt-get install libgl1-mesa-dri
sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dri
sudo dpkg-reconfigure xserver-xorg

 

Related:

解决Spyder 黑屏 QOpenGLShader 问题

Ubuntu VNC 打开spyder无法输入(检测不到键盘配置)解决方法

 

https://stackoverflow.com/questions/42291236/python-spyder-could-not-initialize-glx

 

posted @   Jerry_Jin  阅读(1439)  评论(0编辑  收藏  举报
编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
历史上的今天:
2019-01-06 树莓派 温度监控 PWM 控制风扇 shell python c 语言
2019-01-06 树莓派 引脚及接口图 AV接口顺序
2019-01-06 树莓派 MPG视频硬件解码破解 Raspberry Pi Patch for MPEG-2, VC-1 license
点击右上角即可分享
微信分享提示