Material-Icons-for-Pencil icon indicating copy to clipboard operation
Material-Icons-for-Pencil copied to clipboard

Problems with generate script

Open HFR1994 opened this issue 8 years ago • 2 comments

Hi,

I recently tried to execute the generate-xml.py but I got the following stack trace:

File "generate-xml.py", line 31, in thumb = cairosvg.svg2png(file_obj=str(f), write_to=icon_out) File "/usr/lib/python3.6/site-packages/cairosvg/init.py", line 45, in surface_type.convert(*args, **kwargs))(_surface_type) File "/usr/lib/python3.6/site-packages/cairosvg/surface.py", line 135, in convert tree = Tree(**kwargs) File "/usr/lib/python3.6/site-packages/cairosvg/parser.py", line 360, in init bytestring = file_obj.read() AttributeError: 'str' object has no attribute 'read'

Can somebody help me?? I don't really know anything about python :(

My specs:

OS: Linux Antergos Python: 3.6.0

Thanks

HFR1994 avatar Feb 09 '17 14:02 HFR1994

Quite later but same here (except the distro), is there something I can provide ?

marco44 avatar Jul 05 '17 13:07 marco44

I have fixed this issue, besides, I changed the script to provide a resource list for Resource Selection of Pencil.

take a look at this fork: https://github.com/swiftech/Material-Icons-for-Pencil

swiftech avatar Sep 19 '20 17:09 swiftech