Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Invalid icon name "json" in font "mdi" #13875

Closed
kaloyanm opened this issue Sep 28, 2020 · 3 comments
Closed

Exception: Invalid icon name "json" in font "mdi" #13875

kaloyanm opened this issue Sep 28, 2020 · 3 comments
Assignees
Labels

Comments

@kaloyanm
Copy link

Description

What steps will reproduce the problem?

  1. Install the python3.8 binary from python.org
  2. Run the powershell and install spyder with pip3
  3. Run spyder3
  4. Go to the files tab and navigate to any folder (doubleclick to enter)
  5. The crash message appears

Traceback

  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\spyder\plugins\explorer\widgets\explorer.py", line 136, in icon
    icon = ima.get_icon_by_extension_or_type(fname,
  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\spyder\utils\icon_manager.py", line 438, in get_icon_by_extension_or_type
    icon_by_extension = icon(LANGUAGE_ICONS[extension], scale_factor)
  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\spyder\utils\icon_manager.py", line 403, in icon
    return qta.icon(*args, **kwargs)
  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\qtawesome\__init__.py", line 150, in icon
    return _instance().icon(*names, **kwargs)
  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\qtawesome\iconic_font.py", line 302, in icon
    parsed_options.append(self._parse_options(specific_options,
  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\qtawesome\iconic_font.py", line 352, in _parse_options
    prefix, chars = self._get_prefix_chars(names)
  File "c:\users\kaloy\appdata\local\programs\python\python38\lib\site-packages\qtawesome\iconic_font.py", line 383, in _get_prefix_chars
    raise Exception(error)
Exception: Invalid icon name "json" in font "mdi"

Versions

  • Spyder version: 4.1.5
  • Python version: 3.8.6
  • Qt version: 5.12.9
  • 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.6.0 (OK)
diff_match_patch >=20181111    :  20200713 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.18.1 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  6.0.6 (OK)
numpydoc >=0.6.0               :  1.1.0 (OK)
paramiko >=2.4.0               :  2.7.2 (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.7.1 (OK)
pylint >=1.0                   :  2.6.0 (OK)
pyls >=0.34.0;<1.0.0           :  0.35.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  1.0.0 (OK)
qtconsole >=4.6.0              :  4.7.7 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
sphinx >=0.6.6                 :  3.2.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 :  1.9.4 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.2 (OK)

# Optional:
cython >=0.21                  :  None (OK)
matplotlib >=2.0.0             :  None (OK)
numpy >=1.7                    :  None (OK)
pandas >=0.13.1                :  None (OK)
scipy >=0.17.0                 :  None (OK)
sympy >=0.7.3                  :  None (OK)
@yw5aj
Copy link

yw5aj commented Sep 29, 2020

+1 - I have the same issue.

@ccordoba12
Copy link
Member

Hey @kaloyanm, thanks for reporting. This bug was fixed in spyder-ide/qtawesome#155.

@dalthviz is preparing a new release now of that package (1.0.1). He'll close this issue once that release is in PyPI (later today). Thanks for your patience.

@ccordoba12
Copy link
Member

This should be fixed now by running

pip install -U qtawesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants