Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

AttributeError: 'FrameServer' object has no attribute 'scene' #21

Open
BlankHrt opened this issue May 22, 2021 · 1 comment
Open

AttributeError: 'FrameServer' object has no attribute 'scene' #21

BlankHrt opened this issue May 22, 2021 · 1 comment

Comments

@BlankHrt
Copy link

I have download the latest manim-render and open it,
then i copy the code
from manim import *

class FunctionPlotWithLabelledYAxis(GraphScene):
    def __init__(self, **kwargs):
        GraphScene.__init__(
            self,
            y_min=0,
            x_min=0,
            y_max=1,
            x_max=2*PI,
            axes_color=GREEN,
            y_axis_config={"tick_frequency": PI/4},
            x_axis_config={"tick_frequency": PI/4},
            y_labeled_nums=np.arange(0, 1, 1/2),
            x_labeled_nums=np.arange(0, 2*PI, PI/4),
            **kwargs
        )

    def construct(self):
        self.setup_axes(animate=True)
        dot = Dot().move_to(self.coords_to_point(PI / 2, 0))
        func_graph = self.get_graph(lambda x:  np.sin(x))
        self.add(dot)
        self.play(Create(func_graph))

then i run manim scene.py --renderer=webgl -qh in terminal and got an error and electron render show nothing.
AttributeError: 'FrameServer' object has no attribute 'scene'.
Anything wrong with my operation step or code ?

@BlankHrt
Copy link
Author

Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\manim\grpc\impl\frame_server_impl.py", line 219, in FetchSceneData
name=str(self.scene),
AttributeError: 'FrameServer' object has no attribute 'scene'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant