manim icon indicating copy to clipboard operation
manim copied to clipboard

AttributeError: SVGMobject object has no attribute 'file_path'

Open yihuibest opened this issue 3 years ago • 2 comments

When running the SVGMobject Example code in the manual, I always get an error: SVGMobject object has no attribute 'file_path'.

Manim version: Manim Community v0.16.0.post0

There seems to be no problem with the old version, is it a bug in the new version?

yihuibest avatar Sep 09 '22 04:09 yihuibest

Works for me. Any code you can share?

Do you do it like this? SVGMobject("svgfile.svg")

sugoidesune avatar Sep 09 '22 06:09 sugoidesune

@sugoidesune Thanks! It is possible to write a full pathname, for example: "SVGMobject (". / assets / svg_file. svg ")" But it can't be written like this: "SVGMobject (" svg_file. svg ")".

yihuibest avatar Sep 13 '22 01:09 yihuibest

Can't really reproduce anymore, has perhaps been fixed since. We'll look into it more if it is reported again.

behackl avatar Apr 20 '24 14:04 behackl