manim icon indicating copy to clipboard operation
manim copied to clipboard

Unable to run scenes with pi creatures

Open Haffi112 opened this issue 4 years ago • 2 comments

Hi everyone,

I am new to manim so please bear with me. I am trying to run older scenes and for them I am unable to run scenes which involve pi creatures. Is there a standard workaround for this?

In particular I get the following error:

UserWarning: No PiCreatures design with mode plain (self.file_name_prefix, mode))

when running the following command from the manim directory:

python manim.py from_3b1b/old/nn/part1.py -pl

As an example I chose scene number 28.

Any help would be appreciated. In case the images are not available I would be happy with a placeholder just to see and confirm that things work.

Haffi112 avatar Mar 19 '20 16:03 Haffi112

I tried fixing it myself and noticed a couple of problems.

Image assets for creatures were missing. I found some here after reading this Reddit thread. Note that these are not the standard creatures from the 3b1b youtube channel but it was never my goal to replicate that anyway.

The next hurdle is the MEDIA_DIR variable. It is by default set by the constants.py file but in the pi_creature.py file it shows up as an empty string. For the sake of making things work I decided to change it locally in the pi_creature.py file but I assume that is not the intended solution.

It would be great if there were some default assets to replace the normal pi_creatures and a fix for the above problem. Besides these issues I am really happy with manim ^^

Haffi112 avatar Mar 19 '20 17:03 Haffi112

See here and follow the steps in readme.md.

CaftBotti avatar May 26 '23 04:05 CaftBotti