ManimPango could not import and load the necessary shared libraries.
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
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
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
在Linux终端添加 export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7
@JonnyDing said (in English): Add in Linux terminal export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7
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.