Skip to content

Persistent ImportError: _register_font failing on Termux (Python 3.13, aarch64) #126

@kushalnandigama

Description

@kushalnandigama

Description:I am trying to run Manim on a Xiaomi device via Termux. Despite manually installing and linking every required dependency, I am stuck in a loop of ImportError: cannot import name '_register_font'.
Environment:
Device: Xiaomi utilizing HyperOS
OS: Termux (Android 14+)Python: 3.13.13ManimPango: v0.6.1
Technical Details:I have used readelf -d to verify the NEEDED shared libraries (image_51.png). I have manually copied and linked:libpango-1.0.so.0libpangocairo-1.0.so.0libcairo.so.2libglib-2.0.solibandroid-support.so (linked as libintl.so)Despite these files being present in the same directory as the .so extension, the import continues to fail as shown in image_53.png. It seems there is a pathing or loading issue specific to this Python 3.13 / Android / aarch64 combination.

Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions