manim icon indicating copy to clipboard operation
manim copied to clipboard

First example command returns error (get_monitors)

Open ultravision3d opened this issue 4 years ago • 8 comments

Describe the error

I want to execute : manimgl example_scenes.py OpeningManimExample

Code and Error

Code: example_scenes.py

Error: Warning: Using the default configuration file, which you can modify in d:\videos\manim\manimlib\default_config.yml If you want to create a local configuration file, you can create a file named custom_config.yml, or run manimgl --config

Traceback (most recent call last): File "C:\Users\bob\AppData\Local\Programs\Python\Python37-32\Scripts\manimgl-script.py", line 33, in sys.exit(load_entry_point('manimgl', 'console_scripts', 'manimgl')()) File "d:\videos\manim\manimlib_main_.py", line 13, in main config = manimlib.config.get_configuration(args) File "d:\videos\manim\manimlib\config.py", line 237, in get_configuration monitor = get_monitors()[custom_config["window_monitor"]] File "c:\users\bob\appdata\local\programs\python\python37-32\lib\site-packages\screeninfo\screeninfo.py", line 37, in get_monitors raise ScreenInfoError("No enumerators available") screeninfo.common.ScreenInfoError: No enumerators available

Environment

OS System: windows 8.1 manim version: master python version: Python 3.7.2

ultravision3d avatar Feb 14 '21 16:02 ultravision3d

Any help ?

ultravision3d avatar Feb 16 '21 20:02 ultravision3d

Any help ?

ultravision3d avatar Feb 20 '21 11:02 ultravision3d

@ultravision3d The automatic config creator doesn't appear to create the param window_monitor: 0

Adding it under: window_position: UR window_monitor: 0

Fixed the issue for me

ghost avatar Feb 24 '21 13:02 ghost

running manim-render example_scenes.py OpeningManimExample instead of manimgl example_scenes.py OpeningManimExample worked for me. Afterwards I had no problem running the original command

Alex23rodriguez avatar Mar 09 '21 21:03 Alex23rodriguez

I have the same issue. Tried both fixes mentioned above and the problem persists. Any advise?

carlolimb avatar Mar 31 '21 18:03 carlolimb

🧐

Mohsen Salah

On Mar 31, 2021, 11:03 PM +0430, carlolimb @.***>, wrote:

I have the same issue. Tried both fixes mentioned above and the problem persists. Any advise? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mohsen-2066 avatar Mar 31 '21 18:03 mohsen-2066

This is due to a bug in screeninfo. This pull request has solved it for me.

LVotto avatar Jun 14 '21 16:06 LVotto

This is due to a bug in screeninfo. This pull request has solved it for me.

I tried the pr in screeninfo. Unfortunately, it didn't work for me. Any advice?

moep0 avatar Jun 26 '21 09:06 moep0

This is due to a bug in screeninfo. This pull request has solved it for me.

I tried the pr in screeninfo. Unfortunately, it didn't work for me. Any advice?

It can be fixed manually by just replacing all the monitor variables in window.py and config.py. You can set them to a constant like monitor.width=1920.

moep0 avatar Jun 26 '21 12:06 moep0