Comments (5)
Thank you everyone for helping me out :)
from matter.
Which Linux distribution are you using, and what version is your inkscape?
from matter.
I am using Ubuntu 18.04
inkscape --version
Inkscape 0.92.3 (2405546, 2018-03-11)
And both grub-mkconfig and grub-mkfont are installed:
grub-mkconfig (GRUB) 2.02-2ubuntu8.23
jaza@ubuntu:~$ grub-mkfont --version
grub-mkfont (GRUB) 2.02-2ubuntu8.23
from matter.
jaza@ubuntu:~/Documents/Hacking/matter$ sudo ./matter.py -i ubuntu folder _ _ _ _ _ _ microsoft-windows
[I] Begin Matter install
[I] Build theme from user preferences
[I] Convert icons
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'
This is the complete output
from matter.
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
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="mdi-ubuntu" width="24" height="24" viewBox="0 0 24 24"><path ... />
</svg>
Now it is
<svg xmlns="http://www.w3.org/2000/svg" id="mdi-ubuntu" viewBox="0 0 24 24"><path ... />
</svg>
The width and height attributes have been removed. We need to calculate them from the viewBox property instead.
from matter.
Related Issues (20)
- Error during uninstall HOT 2
- Matter has too many dependencies HOT 7
- error: null src bitmap in grub_video_bitmap_create_scaled. HOT 1
- Use a smaller font on grub console. HOT 3
- Improve READMEs of each folder HOT 1
- Icons not showing correct HOT 6
- Add custom background feature HOT 2
- Improve --image/-im flag HOT 4
- The `convert` command from imagemagick was not found HOT 3
- -t don't work HOT 1
- Problems that can arise if user moves matter folder, or deletes it HOT 2
- Matter should set up its own installation files
- Add a license HOT 2
- Type Error HOT 2
- Missing grub-mkfont HOT 7
- KeyError: 'width' line 54, in inkscape_convert_svg2png HOT 2
- Errors on grub-mkfont when directory name has a space inside it
- Matter lost my fedora entries HOT 1
- Installation Issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matter.