python - Pygame 初始化函数损坏
问题描述
我最近发现了一个错误
import pygame
pygame.init()
给我这个错误
pygame 2.0.1 (SDL 2.0.14, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 90
Current serial number in output stream: 91
这个问题是新的和意想不到的,所以我认为它可能只是 pygame 不能与 python 3.9.2 一起工作。有谁知道解决方法?我尝试使用 3.8,但没有任何改变。如果重要的话,我正在使用 pop os。
谢谢你的帮助
解决方案
重新启动我的电脑解决了这个问题,但我仍然无法使用 pygame 2.0.0。
推荐阅读
- sql - Oracle SQL 中具有相同列名的多个表连接
- c# - 使用 ITextSharp TextRenderInfo.GetTextRenderMode 忽略 pdf 中的隐藏文本
- c# - 设置 TargetFramework=net472 仍然给出错误“无法加载文件或程序集'netstandard,版本 = 2.1.0.0”
- aws-api-gateway - 如何防止 CDK 为新域名创建默认基本路径映射
- c++ - 我无法让我的向量显示其内容 C++
- java - Apache Beam 的 BigQueryIO (Java):无法将 TIMESTAMP 字段写入 BigQuery——fastxml.jackson 异常“类型不支持”
- python - 过滤 pyspark DataFrame 时出错
- twilio - 多
在出站呼叫时,响应显示“Digits=timeout”,呼叫提前断开 - arrays - 如何通过 str 遍历并将每个标记分配给作为全局变量的数组
- flutter - 我有清单
我需要转换 ApplicationMeta 类型