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

Configuring using "manimgl --config" breaks the config file. #2221

Open
CoderXL1 opened this issue Oct 21, 2024 · 1 comment
Open

Configuring using "manimgl --config" breaks the config file. #2221

CoderXL1 opened this issue Oct 21, 2024 · 1 comment

Comments

@CoderXL1
Copy link

Describe the error

Hi there,
I ran manimgl --config to modify global config and manim seems to have corrupted my default_config.yml. The new file is missing the file_writer_config, causing video generation errors. I've attached the before and after files( I have to use .txt to meet github's restriction).
default_config-after.yml.txt
default_config-before.yml.txt

Code and Error

Code:
manimgl --config
manimgl main.py main -w --finder --prerun --show_animation_progress

Error:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/bin/manimgl", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/manimlib/__main__.py", line 21, in main
    config = manimlib.config.get_configuration(args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/manimlib/config.py", line 509, in get_configuration
    "file_writer_config": get_file_writer_config(args, custom_config),
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/manimlib/config.py", line 415, in get_file_writer_config
    **custom_config["file_writer_config"],
      ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'file_writer_config'

Environment

OS System: MacOS 13
manim version: master 1.7.0
python version: 3.12.6

@Varniex
Copy link
Contributor

Varniex commented Oct 21, 2024

You can always copy and paste the contents of default_config.yml file from this repository.

Go to manimlib > default_config.yml, Click Raw and copy the code.

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

2 participants