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.

New Manim version that supports GPU

See original GitHub issue

I get an error in Colab trying to run Manim from “shaders” branch. I see tqdm for each animation, that means they are successful. But then it gets into a loop and I have to stop it with the error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/content/manim/manim.py", line 5, in <module>
    manimlib.main()
  File "/content/manim/manimlib/__init__.py", line 14, in main
    scene.run()
  File "/content/manim/manimlib/scene/scene.py", line 77, in run
    self.tear_down()
  File "/content/manim/manimlib/scene/scene.py", line 96, in tear_down
    self.interact()
  File "/content/manim/manimlib/scene/scene.py", line 104, in interact
    self.update_frame()
  File "/content/manim/manimlib/scene/scene.py", line 139, in update_frame
    self.camera.clear()
  File "/content/manim/manimlib/camera/camera.py", line 114, in clear
    rgba = (*Color(self.background_color).get_rgb(), self.background_opacity)
  File "/usr/local/lib/python3.6/dist-packages/colour.py", line 988, in __init__
    self.web = color if color else 'black'
  File "/usr/local/lib/python3.6/dist-packages/colour.py", line 1006, in __setattr__
    fc(value)
  File "/usr/local/lib/python3.6/dist-packages/colour.py", line 1084, in set_web
    self.hex = web2hex(value)
  File "/usr/local/lib/python3.6/dist-packages/colour.py", line 1005, in __setattr__
    fc = getattr(self, 'set_' + label)
KeyboardInterrupt

UPDATE: If you want to try it in Colab, the code is here.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:45 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pythonian1027commented, Apr 13, 2020

I tried running the project for SIR simulation (https://www.youtube.com/watch?v=gxAaO2rsdIs) and got this error: “~\Anaconda3\envs\manim\lib\site-packages\pyglet\canvas\base.py”, line 194, in get_best_config raise window.NoSuchConfigException() pyglet.window.NoSuchConfigException "

I was able to run the Test case but basically everything else crashed

1reaction
einarfcommented, Mar 30, 2020

I released a new version of moderngl-window what should at least solve the NoSuchConfig for a lot of people. You maye also have to go into the window.py module and set samples = 0.

@t-wolfeadam The shader error you are getting is an error in the glsl code here : https://github.com/3b1b/manim/blob/2ce0b72c440fadbfba990bdac8bc9c2ea8bff4e7/manimlib/shaders/quadratic_bezier_fill_frag.glsl#L41

It should return a float, not an int. Not all GLSL compilers are nice and convert constants for you automatically. I would fix that line and test it again. Make a PR as well while you are at it (if it works) 😄

You may see more of those, but they are quick and easy to fix if you search for the variable or function names reported by the GLSL compiler.

Read more comments on GitHub >

github_iconTop Results From Across the Web

About - manim documentation
Manim is an animation engine for explanatory math videos. You can use it to make math ... Using OpenGL and its GLSL language...
Read more >
Manim Community
Manim is a community-maintained Python library for creating mathematical animations.
Read more >
Nanim: Inspired by 3b1b's manim, I created a GPU ...
Nanim : Inspired by 3b1b's manim, I created a GPU-accelerated framework for smooth animations in Nim! ... UPDATE: I added gif support in...
Read more >
Manim in 2021: GL(OpenGL), CE(Community Edition), & OG ...
I discuss the key differences between each of the new versions of Manim as well as which version you should use.
Read more >
manim - PyPI
Manim is an animation engine for explanatory math videos. It's used to create precise animations programmatically, as demonstrated in the videos of 3Blue1Brown....
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