#1151536 manim-ce: FTBFS: E ValueError: Invalid mode for data type

#1151536#5
Date:
2026-10-21 13:44:55 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:manim-ce, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
                raise TypeError(msg) from e
        if mode is not None:
            if mode != typemode and mode not in color_modes:
                msg = "Invalid mode for data type"
/usr/lib/python3/dist-packages/PIL/Image.py:3451: ValueError
----------------------------- Captured stdout call -----------------------------
                    INFO     Reading config file:                   utils.py:124
                             /<<PKGBUILDDIR>>
                             /.pybuild/cpython3_3.14/build/manim/_c
                             onfig/default.cfg
                    INFO     Reading config file:                   utils.py:131
                             /<<PKGBUILDDIR>>
                             /.pybuild/cpython3_3.14/build/manim/ut
                             ils/testing/config_graphical_tests_mon
                             oframe.cfg
                    INFO     Caching disabled.              cairo_renderer.py:81
------------------------------ Captured log call -------------------------------
INFO     manim:utils.py:124 Reading config file: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/_config/default.cfg
INFO     manim:utils.py:131 Reading config file: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/utils/testing/config_graphical_tests_monoframe.cfg
INFO     manim:cairo_renderer.py:81 Caching disabled.
=============================== warnings summary ===============================
tests/module/animation/test_animation.py::test_single_animation_zero_run_time_with_more_animations
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/scene/scene.py:1706: RuntimeWarning: invalid value encountered in scalar divide
    alpha = t / animation.run_time

tests/module/animation/test_animation.py::test_single_animation_zero_run_time_with_more_animations
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/scene/scene.py:1706: RuntimeWarning: divide by zero encountered in scalar divide
    alpha = t / animation.run_time

tests/module/mobject/graphing/test_number_line.py::test_start_and_end_at_same_point
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/mobject/geometry/line.py:239: UserWarning: put_start_and_end_on has been called on a closed loop or zero-length mobject. DashedLine will be shifted to start point instead.
    return super().put_start_and_end_on(start, end)

tests/test_graphical_units/test_coordinate_systems.py::test_implicit_graph
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/utils/testing/_frames_testers.py:67: UserWarning: Mismatch of 9 pixel values in frame -1 against control data in /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_graphical_units/control_data/coordinate_system/implicit_graph.npz. Below error threshold, continuing...
    warnings.warn(

tests/test_graphical_units/test_polyhedra.py::test_ConvexHull3D
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/manim/utils/testing/_frames_testers.py:67: UserWarning: Mismatch of 3 pixel values in frame -1 against control data in /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_graphical_units/control_data/polyhedra/ConvexHull3D.npz. Below error threshold, continuing...
    warnings.warn(