I'm trying to use manim but geting this error message:
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\sony\scoop\apps\python\current\Scripts\manim.exe_main.py", line 4, in
File "C:\Users\sony\scoop\apps\python\current\Lib\site-packages\manim_init.py", line 30, in
from .animation.rotation import *
File "C:\Users\sony\scoop\apps\python\current\Lib\site-packages\manim\animation\rotation.py", line 20, in
class Rotating(Animation):
File "C:\Users\sony\scoop\apps\python\current\Lib\site-packages\manim\animation\rotation.py", line 23, in Rotating
mobject: Mobject,
^^^^^^^ NameError: name 'Mobject' is not defined. Did you mean: 'object'?
[13248] Execution returned code=1 in 14.226 seconds returned signal null
This is the code I attempted to run:
from manim import *
import numpy as np
class Wave(Scene):
def construct(self):
a = Axes(x_range=[-1, 10], y_range=[-1, 10]) # Fixed x_range syntax
graph = a.plot(lambda x: np.sin(x), color=BLUE)
self.add(a, graph) # Added Axes to the scene
I have tried rebooting my computer and uninstalling/reinstalling Manim, but the issue persists. What is the cause, and how can I resolve this error?