3b1b / manim

Animation engine for explanatory math videos
MIT License
61.81k stars 5.75k forks source link

Unsupported element type #1904

Open xeonliu opened 1 year ago

xeonliu commented 1 year ago

Describe the error

The arrows can't be displayed correctly. There is only a tip on top.

Code and Error

Code:

manimgl vex.py

Error:

       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  config.py:232
                `temporary_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: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

0 WriteText: 40%|#####################################################6 | 12/30 [00:00<00:00, 28.87it/s] (process:19896): GLib-GIO-WARNING **: 20:46:50.113: Unexpectedly, UWP app Clipchamp.Clipchamp_2.5.5.0_neutral__yxz26nhyzhsrt' (AUMIdClipchamp.Clipchamp_yxz26nhyzhsrt!App') supports 41 extensions but has no verbs [20:47:00] INFO Tips: Now the embed iPython terminal is open. But you can't interact with the window directly. To do so, you need to type touch() or self.interact() scene.py:152 Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] Type 'copyright', 'credits' or 'license' for more information IPython 8.6.0 -- An enhanced Interactive Python. Type '?' for help.

Environment

OS System: Windows 11 manim version: master 1.6.1 python version: 3.8

Komoreba commented 1 year ago

I also have this kind of problem, how did you solve it?

xeonliu commented 1 year ago

I also have this kind of problem, how did you solve it?

I've changed to ManimCE 0.16.0…… It seems that ManimCE 0.17.0 has also adopted this new 'SVG' thing. I'm not sure if it would work out fine.

Astr0Matt commented 1 year ago

Hi, I have also this kind of issue:

WARNING Unsupported element type: <class 'svgelements.svgelements.Text'>

@xeonliu sorry I am a rookie what is ManimCE 0.16.0 ?

Basavaraj-PN commented 1 year ago

I also have the same issue.

xeonliu commented 1 year ago

Hi, I have also this kind of issue:

WARNING Unsupported element type: <class 'svgelements.svgelements.Text'>

@xeonliu sorry I am a rookie what is ManimCE 0.16.0 ?

Manim Community Edition, you should be able to find it here on Github.

TonyCrane commented 1 year ago

try upgrading svgelements

Basavaraj-PN commented 1 year ago

Tried, didn't work

Samuelhzx commented 1 year ago

My manimce doesn't have this problem,but gl does

YishiMichael commented 1 year ago

Hi,

I've just dug into this issue. This is due to the outdated release of manimgl (version 1.6.1, released roughly eight months ago). This issue will be fixed along with the future releases. Or, as a temporary hack, you may change the line

if isinstance(shape, se.Group):

into

if isinstance(shape, (se.Group, se.Use)):

at https://github.com/3b1b/manim/blob/v1.6.1/manimlib/mobject/svg/svg_mobject.py#L153. Hope this will work for you.

MonkeyUnderMountain commented 1 year ago

Hi,

I've just dug into this issue. This is due to the outdated release of manimgl (version 1.6.1, released roughly eight months ago). This issue will be fixed along with the future releases. Or, as a temporary hack, you may change the line

if isinstance(shape, se.Group):

into

if isinstance(shape, (se.Group, se.Use)):

at https://github.com/3b1b/manim/blob/v1.6.1/manimlib/mobject/svg/svg_mobject.py#L153. Hope this will work for you.

Oh, Thank you, I also have the same issue. And after changing that line, the issue is solved, Thanks a lot!

zongpingding commented 1 year ago

Hi,

I've just dug into this issue. This is due to the outdated release of manimgl (version 1.6.1, released roughly eight months ago). This issue will be fixed along with the future releases. Or, as a temporary hack, you may change the line

if isinstance(shape, se.Group):

into

if isinstance(shape, (se.Group, se.Use)):

at https://github.com/3b1b/manim/blob/v1.6.1/manimlib/mobject/svg/svg_mobject.py#L153. Hope this will work for you.

that's work for me as well, thank you!

  1. OS:windows 11
  2. ManimGL v1.6.1
leonooo13 commented 1 year ago

it does not sovle this issue, can other way do work?

AlexQSWitch commented 5 months ago

the same issue