manim icon indicating copy to clipboard operation
manim copied to clipboard

"First steps with Manim" doesn't work in manim docker image's Jupyter Lab

Open EugZol opened this issue 1 year ago • 3 comments

Preliminaries

Description of error

  • Use manimcommunity/manim docker image
  • Bind directory with First Steps with Manim.ipynb file
  • Run the file with jupyter lab

Installation logs

Terminal output
https://pastebin.com/KdXaqUKb

System specifications

System Details
- OS - Windows 10 (19045.5011) + WSL (10.0.19041.4522 (WinBuild.160101.0800)) + Docker Desktop (4.11.1)
- RAM: 32G
- Python version (`python/py/python3 --version`): from manim docker image
- Installed modules (provide output from `pip list`): from manim docker image

Additional comments

Cell 1 gives a warning:

/usr/local/lib/python3.11/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

Cell 2 renders.

Cell 3 gives an error: https://pastebin.com/KHejrpJ1

EugZol avatar Oct 31 '24 18:10 EugZol

Does removing the quality options (-qm) from the magic command resolve the issue? You can alternatively set the render quality preset via config.quality = "medium_quality".

behackl avatar Oct 31 '24 18:10 behackl

I get exactly the same Couldn't find ffmpeg or avconv message when trying to follow the quickstart in which we just create a scene.py file (and don't attempt to use Jupyter).

So that part of this issue seems to be independent of whether you use Jupyter.

I tried explicitly specifying the stable tag. The manim docker instructions say to use manimcommunity/manim which produced this warning, but when I tried manimcommunity/manim:stable, I no longer saw that Couldn't find ffmpeg or avconv warning.

So you could try that.

idg10 avatar Dec 01 '24 12:12 idg10

The latest image does not need ffmpeg/avconf any longer: while the warning is printed, it should be inconsequential.

The issue here is mainly about the error in step 3.

behackl avatar Dec 01 '24 13:12 behackl