ManimCommunity / ManimCommunity/ManimPango

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

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
62
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the _register_font ImportError on Termux with Python 3.13.13, ManimPango 0.6.1, and aarch64. Review the extension's native-library loading and the dependencies listed in the report, then verify whether the import succeeds on the stated environment or document the unsupported combination.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.