3b1b / 3b1b/manim

OSError: libGL.so not found while running embed mode in ManimGL

未關閉
#2,235 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

### Describe the error
I am encountering an `OSError` when trying to run a ManimGL script in embed mode. The error indicates that the `libGL.so` file cannot be found, which prevents the code from executing properly.

### Code and Error
**Code**:
```python
from manimlib import *

class Def(InteractiveScene):
def construct(self):
self.embed()
color = Square()
self.play(
Write(color), run_time=1
)
t = TexText("Requested Square")
t.set_color_by_gradient([BLUE, YELLOW_A])
self.add(t)
self.wait(2)
```

**Error**:
```
OSError: libGL.so: cannot open shared object file: No such file or directory
```

### Environment
**OS System**: Ubuntu on Termux (Android)
**manim version**: master
**python version**: 3.12.6

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

該錯誤在 ManimGL 執行 embed mode 時發生,可能是因為缺少 OpenGL 函式庫。檢查 manimlib/scene/interactive_scene.py 中的 embed 方法和 OpenGL 初始化。研究 ManimGL 在不同系統上如何載入 libGL.so,特別是 Ubuntu on Termux。查找文件中的系統依賴檢查或安裝說明。透過確認所需的 OpenGL 函式庫已安裝且可訪問來驗證修復。

由索引模型根據 Issue 內容生成。

評估

領域
desktop
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。