Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mathsvisualization opened this issue Oct 25, 2024 · 2 comments
Open

Comments

@mathsvisualization
Copy link

mathsvisualization commented Oct 25, 2024

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

@hgrigolli
Copy link

I had a similar error, libGL was a fallback for a exception on libEGL. One solution that worked for me was
sudo apt-get install freeglut3-dev

@mathsvisualization
Copy link
Author

I had a similar error, libGL was a fallback for a exception on libEGL. One solution that worked for me was sudo apt-get install freeglut3-dev

Its work ( Thanks )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants