KeyError: 'width' line 54, in inkscape_convert_svg2png
See original GitHub issueHi, I am facing an error like this:
Traceback (most recent call last):
File "./matter.py", line 876, in <module>
do_install()
File "./matter.py", line 543, in do_install
prepare_source_dir()
File "./matter.py", line 386, in prepare_source_dir
convert_icon_svg2png(icon)
File "./matter.py", line 248, in convert_icon_svg2png
exit_code = converter(color, src_path, dst_path, whisper=whisper)
File "/home/jaza/Documents/Hacking/matter/svg2png.py", line 54, in inkscape_convert_svg2png
int_ignore_units(root.attrib["width"]),
KeyError: 'width'
And here is the command I run:
sudo ./matter.py -i ubuntu folder _ _ _ _ _ _ microsoft-windows
I am just trying to change my GRUB theme using matter and I think all the dependency have been installed properly.
Thank you for your advice and solutions!
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. ... The second-to-last line tells you which line raised the exception.
Read more >I'm getting Key error in python - Stack Overflow
A KeyError generally means the key doesn't exist. So, are you sure the path key exists? From the official python docs: exception KeyError....
Read more >How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >What is KeyError in Python? Dictionary and Handling Them
This article will provide you with a detailed and comprehensive knowledge of how to resolve KeyError in Python in Dictionary.
Read more >youcompleteme key error when using vim
I'm using vim on Ubuntu 16.04 with the official vim-youcompleteme package. There are questions with the same problem on stackoverflow here and here, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you everyone for helping me out 😃
I finally managed to reproduce it. It seems like the site where the icons are downloaded from have changed the format of their SVGs.
It used to be
Now it is
The width and height attributes have been removed. We need to calculate them from the viewBox property instead.