3b1b / manim

Animation engine for explanatory math videos
MIT License
71.13k stars 6.25k forks source link

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

Open mathsvisualization opened 4 weeks ago

mathsvisualization commented 4 weeks ago

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:

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.13