Package Details: manim 0.21.0-1

Git Clone URL: https://aur.archlinux.org/manimce.git (read-only, click to copy)
Package Base: manimce
Description: Animation engine for explanatory math videos (community edition).
Upstream URL: https://github.com/ManimCommunity/manim
Keywords: animation graphics manim maths python
Licenses: custom, MIT
Conflicts: python-manimlib
Submitter: groctel
Maintainer: groctel (naveen521kk)
Last Packager: groctel
Votes: 15
Popularity: 0.179574
First Submitted: 2020-10-24 14:29 (UTC)
Last Updated: 2026-08-18 22:27 (UTC)

Latest Comments

1 2 3 4 Next › Last »

groctel commented on 2026-08-18 22:31 (UTC)

Thank you guys for the check function fixes. I have updated the package to v0.21.0 and skipped some tests depending on the user's environment. What's most important for end users is that the Typst tests won't run if they don't have python-typst installed beforehand, as building that package is a lot of compilation work for basically no benefit if they don't keep it.

Pulec commented on 2026-07-29 16:47 (UTC) (edited on 2026-07-29 16:50 (UTC) by Pulec)

dvisvgm python-pytest texlive-latex texlive-latexextra are needed:

checkdepends=(
     "dvisvgm"
     "python-pytest"
     "texlive-latex"
     "texlive-latexextra"
)

Fix for the check():

-    sed -i 's/-n auto --dist=loadfile//' pyproject.toml # Remove unrecognised pytest args
+    # tests/miscellaneous/test_version.py reads importlib.metadata, and the
+    # checkhealth test needs the manim executable on PATH, so run the suite
+    # against the built wheel rather than the bare source tree
+    local _testdir="$srcdir/test_install"
+    local _site
+    _site="$(python -c 'import sysconfig; print(sysconfig.get_path("purelib").lstrip("/"))')"
+
+    rm -rf "$_testdir"
+    python -m installer --destdir="$_testdir" dist/*.whl

-    # Suppress two failing tests until I find a solution
-    pytest \
-        -k "not test_plugin_warning" \
-        -k "not test_input_file_via_cfg"
+    # pyproject.toml's [tool.pytest.ini_options] addopts pulls in pytest-cov
+    # (and previously pytest-xdist); neither is useful in a package build.
+    # -o overrides the ini value, so this stays correct if upstream edits it.
+    # Suppress two failing tests until I find a solution.
+    PATH="$_testdir/usr/bin:$PATH" \
+    PYTHONPATH="$_testdir/$_site" \
+        pytest -o addopts="" \
+            -k "not test_plugin_warning and not test_input_file_via_cfg"

check() fails on 0.20.1 with pytest: error: unrecognized arguments: --no-cov-on-fail --cov=manim --cov-report --cov-report. Those come from addopts in pyproject.toml, and there's no checkdepends, so nothing pulls in python-pytest-cov (or python-pytest). The sed above it only strips the xdist args, which 0.20.1 no longer has.

You won't see it in a chroot — XDG_SESSION_TYPE is unset there, so check() returns early. It only bites when building from a graphical session.

Once pytest actually runs, three more things surface. 120 tests need LaTeX, which is only an optdepends — and it names texlive-core, which hasn't existed since the texlive split; it's texlive-latex texlive-latexextra dvisvgm now. Two more (test_version, test_manim_checkhealth_subcommand) need manim to be installed, so they only pass when you're upgrading, never on a first build. And the two -k flags don't combine — -k is action="store", so the second overrides the first and test_plugin_warning has never actually been suppressed.

With checkdepends=(dvisvgm python-pytest texlive-latex texlive-latexextra), the sed dropped, the wheel installed to a temp destdir for the test run, and a single -k, I get 875 passed / 0 failed

micwoj92 commented on 2026-02-13 00:12 (UTC)

@Sasoo What you mean are probably check errors.

@groctel You are probably not seeing errors in cleanroot, because the package skips these currently.

    if [ -z "$XDG_SESSION_TYPE" ]; then
        echo "Tests require a graphical environment. Skipping..."
        return
    fi

To fix this, you could use xvfb-run. I tried this attempt, however I was getting segfauls on opengl tests, didn't investigate further:

diff --git a/PKGBUILD b/PKGBUILD
index dca3538..1413095 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -59,6 +59,11 @@ makedepends=(
     "python-setuptools"
     "python-wheel"
 )
+checkdepends=(
+    "python-pytest"
+    "python-pytest-cov"
+    "xorg-server-xvfb"
+)
 optdepends=(
     "python-dearpygui: Graphical frontend"
     "jupyterlab: Jupyter integration"
@@ -76,15 +81,10 @@ build() {
 check() {
     cd "$srcdir/$pkgname-$pkgver"

-    if [ -z "$XDG_SESSION_TYPE" ]; then
-        echo "Tests require a graphical environment. Skipping..."
-        return
-    fi
-
     sed -i 's/-n auto --dist=loadfile//' pyproject.toml # Remove unrecognised pytest args

     # Suppress two failing tests until I find a solution
-    pytest \
+    xvfb-run pytest \
         -k "not test_plugin_warning" \
         -k "not test_input_file_via_cfg"
 }

MithicSpirit commented on 2025-12-31 05:31 (UTC)

There has been an incident that took down a lot of Manim infra. See https://manim.community/ (archived: https://web.archive.org/web/20251227085509/https://manim.community/) for more info (although they are still quite sparse with the details).

viniavila commented on 2025-12-30 21:51 (UTC)

Got error 404 trying to compile this package. Apparently https://github.com/ManimCommunity is down

groctel commented on 2025-10-18 11:52 (UTC)

@Sasoo I'm not getting eny errors in my cleanroot environment. Can you share an error log? Otherwise, lots of errors is not a descriptive report I can iterate on :/

<deleted-account> commented on 2025-10-03 15:24 (UTC)

still get lots of errors when building this

Irfan_hossain commented on 2025-02-28 06:45 (UTC) (edited on 2025-03-01 05:04 (UTC) by Irfan_hossain)

he manim is not installing without this dependencies present

python-pyaudio 
python-opengl 
python-setuptools 
python-flit->used for pyglet
python-av
python-bs4

micwoj92 commented on 2025-02-24 22:24 (UTC)

Needs additional python-poetry-core in makedeps and python-av python-beautifulsoup4 in deps.