Cannot launch spyder

Hi everyone, I’ve tried to launch spyder from anaconda but I cannot. I get this problem:

QFSFileEngine::open: No file name specified
Traceback (most recent call last):
File “C:\Users\iacop\anaconda3\Scripts\spyder-script.py”, line 10, in
sys.exit(main())
~~~~^^
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\app\start.py”, line 281, in main
mainwindow.main(options, args)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\app\mainwindow.py”, line 1443, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\app\utils.py”, line 360, in create_window
main.setup()
~~~~~~~~~~^^
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\app\mainwindow.py”, line 692, in setup
internal_plugins = find_internal_plugins()
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\app\find_plugins.py”, line 45, in find_internal_plugins
mod = importlib.import_module(entry_point.module)
File “C:\Users\iacop\anaconda3\Lib\importlib_init_.py”, line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 1027, in exec_module
File “”, line 488, in _call_with_frames_removed
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\plugins\pylint\plugin.py”, line 25, in
from spyder.plugins.pylint.confpage import PylintConfigPage
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\plugins\pylint\confpage.py”, line 16, in
from spyder.plugins.pylint.main_widget import (MAX_HISTORY_ENTRIES,
MIN_HISTORY_ENTRIES,
PylintWidget)
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\plugins\pylint\main_widget.py”, line 94, in
class CategoryItem(QTreeWidgetItem):
…<42 lines>…
self.setIcon(0, icon)
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\plugins\pylint\main_widget.py”, line 106, in CategoryItem
‘icon’: ima.icon(“convention”)
~~~~~~~~^^^^^^^^^^^^^^
File “C:\Users\iacop\anaconda3\Lib\site-packages\spyder\utils\icon_manager.py”, line 465, in icon
qta.load_font(‘spyder’, ‘spyder.ttf’, ‘spyder-charmap.json’,
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
directory=self.resource[‘directory’])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iacop\anaconda3\Lib\site-packages\qtawesome_init
.py", line 314, in load_font
return instance().load_font(prefix, ttf_filename, charmap_filename, directory)
~~~~~~~~~^^
File "C:\Users\iacop\anaconda3\Lib\site-packages\qtawesome_init
.py", line 162, in _instance
resource[“iconic”] = IconicFont(*BUNDLED_FONTS)
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File “C:\Users\iacop\anaconda3\Lib\site-packages\qtawesome\iconic_font.py”, line 368, in init
self.load_font(*fargs)
~~~~~~~~~~~~~~^^^^^^^^
File “C:\Users\iacop\anaconda3\Lib\site-packages\qtawesome\iconic_font.py”, line 444, in load_font
self.charmap[prefix] = json.load(codes, object_hook=hook)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iacop\anaconda3\Lib\json_init
.py", line 293, in load
return loads(fp.read(),
cls=cls, object_hook=object_hook,
parse_float=parse_float, parse_int=parse_int,
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File “C:\Users\iacop\anaconda3\Lib\json_init.py”, line 359, in loads
return cls(**kw).decode(s)
~~~~~~~~~~~~~~~~^^^
File “C:\Users\iacop\anaconda3\Lib\json\decoder.py”, line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\iacop\anaconda3\Lib\json\decoder.py”, line 363, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Do you have any idea?

Hey @Iacopo!

Not a Spyder user but from I can tell it looks like it might be an issue with the qtawesome package that Spyder is using.

This is the command you’ll need to run to reinstall it.

conda install qtawesome --force-reinstall

It may be a good idea to try creating a new environment just for Spyder too, rather than installing it into the base environment.

Let me know how you get on,
Jack