Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work on Windows (window with the animation seems blank) #2102

Open
foxypiratecove37350 opened this issue Feb 24, 2024 · 6 comments
Open

Comments

@foxypiratecove37350
Copy link

Describe the error

When I try to use on Windows, it seems work at the begining, but when the window with normaly the animation opens, this window is just blank, with nothing. I tested with manimgl example_scenes.py OpeningManimExample and the code from the tutorial in the docs (Quick Start - manim documentation), the same. I also tried with the flag -o to make an output, and the output seems empty.

Code and Error

Code:
The example_scenes.py file, then this code from the docs:

from manimlib import *

class SquareToCircle(Scene):
    def construct(self):
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)
        square = Square()

        self.play(ShowCreation(square))
        self.wait()
        self.play(ReplacementTransform(square, circle))
        self.wait()

Error:
Firstly, I tried only the command in the README.md and I had this error:

ManimGL v1.6.1
[00:49:28] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363                    --config`
[00:49:29] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)
[00:49:31] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)
[00:50:29] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363                    --config`
[00:50:30] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)

So I set temporary_storage to the value of %temp%: C:/Users/user/AppData/Local/Temp, and now I have only this error:

ManimGL v1.6.1
[01:10:21] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362
           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363
                    --config`
[01:10:29] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362
           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363
                    --config`

But I don't see anything in the window: the window is blank.

Environment

OS System: Windows 11
manim version: master 1.6.1
python version: 3.11.1

@cklim24
Copy link

cklim24 commented Feb 26, 2024

Describe the error

When I try to use on Windows, it seems work at the begining, but when the window with normaly the animation opens, this window is just blank, with nothing. I tested with manimgl example_scenes.py OpeningManimExample and the code from the tutorial in the docs (Quick Start - manim documentation), the same. I also tried with the flag -o to make an output, and the output seems empty.

Code and Error

Code:
The example_scenes.py file, then this code from the docs:

from manimlib import *

class SquareToCircle(Scene):
    def construct(self):
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)
        square = Square()

        self.play(ShowCreation(square))
        self.wait()
        self.play(ReplacementTransform(square, circle))
        self.wait()

Error:
Firstly, I tried only the command in the README.md and I had this error:

ManimGL v1.6.1
[00:49:28] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363                    --config`
[00:49:29] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)
[00:49:31] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)
[00:50:29] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363                    --config`
[00:50:30] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)

So I set temporary_storage to the value of %temp%: C:/Users/user/AppData/Local/Temp, and now I have only this error:

ManimGL v1.6.1
[01:10:21] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362
           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363
                    --config`
[01:10:29] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362
           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363
                    --config`

But I don't see anything in the window: the window is blank.

Environment

OS System: Windows 11
manim version: master 1.6.1
python version: 3.11.1

@foxypiratecove37350
Copy link
Author

Describe the error

When I try to use on Windows, it seems work at the begining, but when the window with normaly the animation opens, this window is just blank, with nothing. I tested with manimgl example_scenes.py OpeningManimExample and the code from the tutorial in the docs (Quick Start - manim documentation), the same. I also tried with the flag -o to make an output, and the output seems empty.

Code and Error

Code:
The example_scenes.py file, then this code from the docs:

from manimlib import *

class SquareToCircle(Scene):
    def construct(self):
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)
        square = Square()

        self.play(ShowCreation(square))
        self.wait()
        self.play(ReplacementTransform(square, circle))
        self.wait()

Error:
Firstly, I tried only the command in the README.md and I had this error:

ManimGL v1.6.1
[00:49:28] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363                    --config`
[00:49:29] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)
[00:49:31] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)
[00:50:29] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363                    --config`
[00:50:30] WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. config.py:327                    So it is recommended to specify the `temporary_storage` in the config file (.yml)

So I set temporary_storage to the value of %temp%: C:/Users/user/AppData/Local/Temp, and now I have only this error:

ManimGL v1.6.1
[01:10:21] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362
           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363
                    --config`
[01:10:29] INFO     Using the default configuration file, which you can modify in `c:\dcmt\manim\manimlib\default_config.yml`          config.py:362
           INFO     If you want to create a local configuration file, you can create a file named `custom_config.yml`, or run `manimgl config.py:363
                    --config`

But I don't see anything in the window: the window is blank.

Environment

OS System: Windows 11
manim version: master 1.6.1
python version: 3.11.1

What do you want to say me?

@tianmaoyu
Copy link

tianmaoyu commented Mar 30, 2024

@foxypiratecove37350 @cklim24 @shalunov @napsternxg @charliepark

这个问题我也遇到过,可能是您电脑硬件GPU设置问题,opengl 无法使用你的gpu 渲染. 你可以按照下面的步骤试试

一, 如果你是windows 请 进入 设置:

image

二, 把你的 python.exe 添加到 可以使用 gpu

image

image

三,进行下面的设置

image

不出意外就行了

image

@foxypiratecove37350
Copy link
Author

@tianmaoyu Can you use english screenshots please? I don't speak chinese so it's complicated.

@tianmaoyu
Copy link

@foxypiratecove37350

Then add your python.exe to it.

image

@tianmaoyu
Copy link

image
image

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

No branches or pull requests

3 participants