question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot use png files in ShowCreation

See original GitHub issue

version (installed through pipenv) manimce==2020.8.9

code:

class snoo_test_scene(Scene):
	def construct(self):
		snoo = ImageMobject('snoo.png')
		self.play(ShowCreation(snoo))

issue: NotImplementedError

here's the complete traceback

(manimce_fresh) blah@notebook:~/desktops/d4/manimce_fresh/snoo_testing$ manim snoo_testing.py scene3 -pl
[09:02:51] INFO     Read configuration files: ['/home/blah/desktops/d4/manimce_fresh/.venv/lib/python3.7/site-packages/manim/default.cfg'] config.py:93
[09:02:52] DEBUG    STREAM b'IHDR' 16 13                  PngImagePlugin.py:153
           DEBUG    STREAM b'sBIT' 41 4                   PngImagePlugin.py:153
           DEBUG    b'sBIT' 41 4 (unknown)                PngImagePlugin.py:660
           DEBUG    STREAM b'IDAT' 57 8192                PngImagePlugin.py:153



Traceback (most recent call last):
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/__main__.py", line 184, in main
    scene = SceneClass()
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/scene/scene.py", line 71, in __init__
    self.construct()
  File "snoo_testing.py", line 80, in construct
    self.play(ShowCreation(snoo))
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/scene/scene.py", line 859, in wrapper
    func(self, *args, **kwargs)
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/scene/scene.py", line 951, in play
    self.begin_animations(animations)
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/scene/scene.py", line 880, in begin_animations
    animation.begin()
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/animation/animation.py", line 54, in begin
    self.interpolate(0)
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/animation/animation.py", line 107, in interpolate
    self.interpolate_mobject(self.rate_func(alpha))
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/animation/animation.py", line 120, in interpolate_mobject
    self.interpolate_submobject(*mobs, sub_alpha)
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/animation/creation.py", line 21, in interpolate_submobject
    submob.pointwise_become_partial(start_submob, *self.get_bounds(alpha))
  File "/home/blah/desktops/d4/snoo_testing/.venv/lib/python3.7/site-packages/manim/mobject/mobject.py", line 1063, in pointwise_become_partial
    raise NotImplementedError("Please override in a child class.")
NotImplementedError: Please override in a child class.

snoo.png

snoo

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leotrscommented, Aug 31, 2020

We are in the process of building more extensive documentation here https://manimce.readthedocs.io/en/latest/. This site just went up today. Unfortunately, the animations are not thoroughly documented yet.

3b1b/manim and manim CE are not necessarily compatible. We are trying to keep it as backwards compatible as possible, but in the future, they will surely start to diverge a bit.

That issue you posted on 3b1b was closed in September 2019. Manim CE was forked a few months ago. So my guess is that 3b1b will behave the same in regards to applying ShowCreation to PNGs. But I would have to try to make sure.

0reactions
leotrscommented, Aug 31, 2020

Thanks @tshrpl for reporting and @Aathish04 for confirming. Closing this in favor of #389

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can Manim import PNG files with transparency channel? #739
So I suppose that Manim can import PNG files. However, the open question, does transparency channels are transparent? Especially when it comes ...
Read more >
Tested Solutions: Can't Open PNG Files on Windows 10/11?
Can't open PNG files on Windows 10/11? Look no further. The professional solutions on how to open png files are introduced in this...
Read more >
Solved: Cannot see .png files stored in sharepoint library...
In the studio it works well but in the mobile it doesn't show the images of a gallery that are hyperlink/hyperlink of .png...
Read more >
Show creation date information for sequences created.
I'm very satisfied with the switch, except for the issue that I can't tell when a sequence was created. This seems like such...
Read more >
NameError: name 'ShowCreation' is not defined : r/manim
Now, when I try the very first activity listed here I get this error. I cannot find how to resolve it. r/manim -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found