Skip to content

Error when rendering /optics_puzzles/e_field.py with stable ManimGL #2399

@IJuanikorenab

Description

@IJuanikorenab

Describe the error

When trying to render the 2023 3Blue1Brown optics_puzzles/e_field.py videos using the stable ManimGL repository, the VectorField.init() method raises a missing argument error (coordinate_system). I suspect the current stable version of ManimGL is not fully compatible with some of the _2023 files.

Code and Error

Code:
After cloning and installing the repository ("git clone https://github.com/3b1b/manim.git"), and setting the paths, I run:
"manimgl _2023/optics_puzzles/e_field.py"
This opens the scene selection, but when choosing any scene, I get the attached error. Some scenes in other .py files in /optics_puzzels are correctly rendered, but not all of them.

Error:
Select which scene to render (by name or number): 2
Traceback (most recent call last):
File "/home/ijb/Inigo/3B1B/manim3b1b/bin/manimgl", line 8, in
sys.exit(main())
File "/home/ijb/Inigo/3B1B/manim/manimlib/main.py", line 61, in main
run_scenes()
File "/home/ijb/Inigo/3B1B/manim/manimlib/main.py", line 39, in run_scenes
scene.run()
File "/home/ijb/Inigo/3B1B/manim/manimlib/scene/scene.py", line 154, in run
self.setup()
File "/home/ijb/Inigo/3B1B/videos/_2023/optics_puzzles/e_field.py", line 996, in setup
self.add_field(self.particles)
File "/home/ijb/Inigo/3B1B/videos/_2023/optics_puzzles/e_field.py", line 1034, in add_field
self.field = self.field_class(*particles, **self.field_config)
File "/home/ijb/Inigo/3B1B/videos/_2023/optics_puzzles/objects.py", line 616, in init
super().init(*charges, **kwargs)
File "/home/ijb/Inigo/3B1B/videos/_2023/optics_puzzles/objects.py", line 585, in init
super().init(
TypeError: VectorField.init() missing 1 required positional argument: 'coordinate_system'

Environment

OS System: Linux (Ubuntu 22.4)
manim version: master
python version: Python 3.10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions