ManimPango icon indicating copy to clipboard operation
ManimPango copied to clipboard

ManimPango could not import and load the necessary shared libraries.

Open shubhampalgkp14 opened this issue 1 year ago • 1 comments

I am just writing the basic code of Manim and getting this error.

from manim import * class CreateCircle(Scene): def construct(self): circle = Circle() # create a circle circle.set_fill(PINK, opacity=0.5) # set the color and transparency self.play(Create(circle)) # show the circle on screen

ERROR:

File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manimpango/init.py", line 14, in from .register_font import * # isort:skip # noqa: F403,F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manimpango/register_font.py", line 6, in from ._register_font import ( ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/shubham-pal/anaconda3/envs/manim_env/bin/manim", line 5, in from manim.main import main File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manim/init.py", line 29, in from .animation.numbers import * File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manim/animation/numbers.py", line 10, in from manim.mobject.text.numbers import DecimalNumber File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manim/mobject/text/numbers.py", line 16, in from manim.mobject.text.text_mobject import Text File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manim/mobject/text/text_mobject.py", line 65, in import manimpango File "/home/shubham-pal/anaconda3/envs/manim_env/lib/python3.11/site-packages/manimpango/init.py", line 35, in raise ImportError(msg) ImportError:

ManimPango could not import and load the necessary shared libraries. This error may occur when ManimPango and its dependencies are improperly set up. Please make sure the following versions are what you expect:

ManimPango v0.6.0, Python v3.11.11

If you believe there is a greater problem, feel free to contact us or create an issue on GitHub:

Discord: https://www.manim.community/discord/ GitHub: https://github.com/ManimCommunity/ManimPango/issues

Original error: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

shubhampalgkp14 avatar Jan 28 '25 13:01 shubhampalgkp14

在Linux终端添加 export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7

JonnyDing avatar Mar 12 '25 08:03 JonnyDing

@JonnyDing said (in English): Add in Linux terminal export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7

gogo100people avatar Aug 09 '25 18:08 gogo100people

Sorry for the late response, this missed my inbox, but if your issue is still not solved, rebuilding manimpango should fix it. You can use the command below if you used pip to install manimpango.

pip install ManimPango --force --no-cache --no-binary :all:

I'll be closing this issue. Please comment if you need any other help with this.

naveen521kk avatar Aug 21 '25 15:08 naveen521kk