Error due to icon name changes in the mdi icon set
See original GitHub issueProblem Description
The name of 2 icons changed in the mdi icon set. This cause an error when opening spyder when using the latest version of qtawesome
(QtAwesome 0.7.3).
Paste Traceback/Error Below (if applicable)
File "C:\Users\User\spyder\spyder\plugins\explorer\widgets\explorer.py", line 137, in icon
scale_factor=1.0)
File "C:\Users\User\spyder\spyder\utils\icon_manager.py", line 455, in get_icon_by_extension_or_type
icon_by_extension = icon(LANGUAGE_ICONS[extension], scale_factor)
File "C:\Users\User\spyder\spyder\utils\icon_manager.py", line 420, in icon
return qta.icon(*args, **kwargs)
File "C:\Users\User\qtawesome\qtawesome\__init__.py", line 150, in icon
return _instance().icon(*names, **kwargs)
File "C:\Users\User\qtawesome\qtawesome\iconic_font.py", line 304, in icon
names[i]))
File "C:\Users\User\qtawesome\qtawesome\iconic_font.py", line 352, in _parse_options
prefix, chars = self._get_prefix_chars(names)
File "C:\Users\User\qtawesome\qtawesome\iconic_font.py", line 383, in _get_prefix_chars
raise Exception(error)
Exception: Invalid icon name "windows" in font "mdi"
Traceback (most recent call last):
File "C:\Users\User\spyder\spyder\plugins\explorer\widgets\explorer.py", line 137, in icon
scale_factor=1.0)
File "C:\Users\User\spyder\spyder\utils\icon_manager.py", line 455, in get_icon_by_extension_or_type
icon_by_extension = icon(LANGUAGE_ICONS[extension], scale_factor)
File "C:\Users\User\spyder\spyder\utils\icon_manager.py", line 420, in icon
return qta.icon(*args, **kwargs)
File "C:\Users\User\qtawesome\qtawesome\__init__.py", line 150, in icon
return _instance().icon(*names, **kwargs)
File "C:\Users\User\qtawesome\qtawesome\iconic_font.py", line 304, in icon
names[i]))
File "C:\Users\User\qtawesome\qtawesome\iconic_font.py", line 352, in _parse_options
prefix, chars = self._get_prefix_chars(names)
File "C:\Users\User\qtawesome\qtawesome\iconic_font.py", line 383, in _get_prefix_chars
raise Exception(error)
Exception: Invalid icon name "markdown" in font "mdi"
Versions
- Spyder version: 4.2.0.dev0 af7d224ba
- Python version: 3.7.6 64-bit
- Qt version: 5.12.5
- PyQt5 version: 5.12.3
- Operating System: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.5.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.16.1 (OK)
jedi =0.17.1 : 0.17.1 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.7.1 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.2 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=1.0 : 2.5.3 (OK)
pyls >=0.35.0;<1.0.0 : v4.1.5+204.gaf7d224ba.dirty (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 1.0.0.dev0 (OK)
qtconsole >=4.7.7 : 4.8.0.dev0 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.1.2 (OK)
spyder_kernels >=1.9.4;<1.10.0 : 1.10.0.dev0 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.1 (OK)
# Optional:
cython >=0.21 : 0.29.21 (OK)
matplotlib >=2.0.0 : 3.2.2 (OK)
numpy >=1.7 : 1.19.1 (OK)
pandas >=1.1.1 : 1.0.5 (NOK)
scipy >=0.17.0 : 1.5.0 (OK)
sympy >=0.7.3 : None (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Icon mdi:timer was renamed to mdi:timer-outline, please ...
I do not have any Icon mdi:timer in my configuration.yaml. It might be “inherited” from integrations. I had this error from a load...
Read more >Vuetify icons not showing correctly: they appear as as ...
Assuming you're using Vuetify 2... I think the key thing you're missing is passing Vuetify to the Vue constructor, as described here:.
Read more >Invalid icon name (AppIcon44x44@2x… - Apple Developer
I tried to fix this issue by changing all the names of my icons as suggested (AppIconXXxXX@YY.png). However, same error message. Then I...
Read more >Material Symbols and Icons - Google Fonts
Introducing Material Symbols. Material Symbols are our newest icons consolidating over 2,500 glyphs in a single font file with a wide range of...
Read more >Material Design Icons
Material Design Icons' growing icon collection allows designers and developers targeting various platforms to download icons in the format, color and size ...
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 Free
Top 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
Sure I could do that 👍
This was fixed in QtAwesome 1.0.1 for both Spyder 4.1.5 and the future 4.2.0