3b1b / 3b1b/manim

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

Open
#2,235 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
93.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

### 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.