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

Crash on provided example; Matrix unexpected keyword 'include_background_rectangle' #2116

Open
proteusGIT opened this issue Mar 25, 2024 · 3 comments
Labels

Comments

@proteusGIT
Copy link

Describe the bug

Crash on provided example.

Code:
$ python -m manimlib example_scenes.py OpeningManimExample

Wrong display or Error traceback:

$ python -m manimlib example_scenes.py OpeningManimExample
C:\Users\user\AppData\Roaming\Python\Python312\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
ManimGL v1.6.1
[13:21:56] INFO     Using the default configuration file, which you can modify in `c:\users\user\documents\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`                                                                                                                  config.py:363
           WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. So it is recommended to specify the `temporary_storage` in the config file (.yml)                                          config.py:327
           WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. So it is recommended to specify the `temporary_storage` in the config file (.yml)                                          config.py:327
           INFO     Using the default configuration file, which you can modify in `c:\users\user\documents\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`                                                                                                                  config.py:363
           WARNING  You may be using Windows platform and have not specified the path of `temporary_storage`, which may cause OSError. So it is recommended to specify the `temporary_storage` in the config file (.yml)                                          config.py:327
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\user\Documents\TCSbase\manim\manimlib\__main__.py", line 29, in <module>
    main()
  File "C:\Users\user\Documents\TCSbase\manim\manimlib\__main__.py", line 25, in main
    scene.run()
  File "C:\Users\user\Documents\TCSbase\manim\manimlib\scene\scene.py", line 163, in run
    self.construct()
  File "C:\Users\user\Documents\TCSbase\manim\example_scenes.py", line 29, in construct
    IntegerMatrix(matrix, include_background_rectangle=True),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\Documents\TCSbase\manim\manimlib\mobject\matrix.py", line 246, in __init__
    super().__init__(matrix, num_decimal_places, decimal_config, **config)
  File "C:\Users\user\Documents\TCSbase\manim\manimlib\mobject\matrix.py", line 225, in __init__
    super().__init__(
TypeError: Matrix.__init__() got an unexpected keyword argument 'include_background_rectangle'

Additional context

I just installed on windows.
Also I just installed python and had to add it to the path and also had to "pip setuptools" to make it work.
I guess the installation instructions are not really great for windows.
Also, as you can see I am not just calling $ manim example_scenes.py OpeningManimExample but had to change that to make it at least run.
I am using the just cloned git repo though.

@LouisGuibert-LS2N
Copy link

Got the same issue

@hyperbolic-c
Copy link

got the same error

@hyperbolic-c
Copy link

hyperbolic-c commented Mar 25, 2024

maybe this pull.
it change:

IntegerMatrix(matrix, include_background_rectangle=True) --> IntegerMatrix(matrix)

so we could remove the include_background_rectangle=True in example_scenes.py.

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

No branches or pull requests

3 participants