-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
running the example_scene.py #2050
Comments
ValueError: operands could not be broadcast together with shapes (126,3) (129,3) |
numpy<=1.24 |
I had a same error... apt-cache madison python3-numpy How can Numpy be downgraded to versions below 1.24? |
|
after following all steps on the MacOS guide, i needed to use pyenv with pipenv to get a version of pip that would play nice with some examples within Here are the calls that fail before displaying anything: |
I can confirm on WSL2 that installing Thanks for figuring this one out. |
Describe the error
The Error Occurred when I was setting up the cloned repository of this one on 29th July 2023
I was using a virtual environment set up and it is NOT a conda virtual environment
I was running the file with this command
manimgl example_scenes.py TextExample
Code and Error
Code:
The Code is in this repository.
example_scene.py
Error:
ManimGL v1.6.1
[18:54:38] INFO Using the default configuration file, which you can modify in
e:\ma\manim\manim_env\lib\site-packages\manimlib\default_config.yml
config.py:265 INFO If you want to create a local configuration file, you can create a file namedcustom_config.yml
, or runmanimgl --config
config.py:266 WARNING You may be using Windows platform and have not specified the path oftemporary_storage
, which may cause OSError. So it is recommended to specify config.py:232 thetemporary_storage
in the config file (.yml)WARNING Unsupported element type: <class 'svgelements.svgelements.Use'> svg_mobject.py:174 WARNING Unsupported element type: <class 'svgelements.svgelements.Use'> svg_mobject.py:174 WARNING Unsupported element type: <class 'svgelements.svgelements.Use'> svg_mobject.py:174 WARNING Unsupported element type: <class 'svgelements.svgelements.Use'> svg_mobject.py:174 WARNING Unsupported element type: <class 'svgelements.svgelements.Use'> svg_mobject.py:174 WARNING Unsupported element type: <class 'svgelements.svgelements.Use'> svg_mobject.py:174E:\ma\manim\manim_env\lib\site-packages\manimlib\utils\space_ops.py:155: RuntimeWarning: invalid value encountered in scalar divide
cos_angle = np.dot(v1, v2) / np.float64(n1 * n2)
Traceback (most recent call last):
File "C:\Users\COMPUTER-22H2\miniconda3\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\COMPUTER-22H2\miniconda3\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\ma\manim\manim_env\Scripts\manimgl.exe_main.py", line 7, in
File "E:\ma\manim\manim_env\lib\site-packages\manimlib_main.py", line 25, in main
scene.run()
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\scene\scene.py", line 91, in run
self.construct()
File "E:\ma\manim\example_scenes.py", line 119, in construct
text = Text("Here is a text", font="Consolas", font_size=90)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\text_mobject.py", line 149, in init
super().init(text, **kwargs)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\labelled_string.py", line 64, in init
super().init()
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 65, in init
self.init_svg_mobject()
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 76, in init_svg_mobject
self.generate_mobject()
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\labelled_string.py", line 79, in generate_mobject
super().generate_mobject()
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 102, in generate_mobject
mobjects = self.get_mobjects_from(svg)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 156, in get_mobjects_from
mob = self.path_to_mobject(shape)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 221, in path_to_mobject
return VMobjectFromSVGPath(path, **self.path_string_config)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 301, in init
super().init(**kwargs)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\types\vectorized_mobject.py", line 85, in init
super().init(**kwargs)
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\mobject.py", line 89, in init
self.init_points()
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\svg\svg_mobject.py", line 324, in init_points
self.set_points(self.get_points_without_null_curves())
File "E:\ma\manim\manim_env\lib\site-packages\manimlib\mobject\types\vectorized_mobject.py", line 968, in wrapper
if not np.all(self.get_points() == old_points):
ValueError: operands could not be broadcast together with shapes (126,3) (129,3)
Environment
OS System:
Windows
manim version:
ManimGL v1.6.1
Manim version is uhhh:
(manim_env) E:\ma\manim>manim -v
usage: manim [-h] [-p] [-w] [-s] [-l] [-m] [--high_quality] [-g] [-i] [-f] [-t] [-q] [-a] [-o FILE_NAME] [-n START_AT_ANIMATION_NUMBER] [-r RESOLUTION] [-c COLOR] [--sound]
[--leave_progress_bars] [--media_dir MEDIA_DIR] [--video_dir VIDEO_DIR | --video_output_dir VIDEO_OUTPUT_DIR] [--tex_dir TEX_DIR]
file [scene_names ...]
manim: error: the following arguments are required: file, scene_names
python version:
python 3.10.9
The text was updated successfully, but these errors were encountered: