Spyder-ide error

Hello everyone. I have installed the python-data-science bundle (which include spyder-ide) but the program don’t start. It gave me the following :

carl@Clevo-P955-ET1~ $ spyder3
Traceback (most recent call last):
  File "/usr/bin/spyder3", line 3, in <module>
    start.main()
  File "/usr/lib/python3.8/site-packages/spyder/app/start.py", line 200, in main
    from spyder.app import mainwindow
  File "/usr/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 53, in <module>
    requirements.check_qt()
  File "/usr/lib/python3.8/site-packages/spyder/requirements.py", line 42, in check_qt
    package_name, required_ver = qt_infos[qtpy.API]
KeyError: 'pyside2'

I think the error it’s related to this … (from /usr/lib/python3.8/site-packages/spyder/requirements.py):

def check_qt():
    """Check Qt binding requirements"""
    qt_infos = dict(pyqt5=("PyQt5", "5.6"))
    try:
        import qtpy
        package_name, required_ver = qt_infos[qtpy.API]
        actual_ver = qtpy.PYQT_VERSION
        if LooseVersion(actual_ver) < LooseVersion(required_ver):
            show_warning("Please check Spyder installation requirements:\n"
                         "%s %s+ is required (found v%s)."
                         % (package_name, required_ver, actual_ver))
    except ImportError:
        show_warning("Failed to import qtpy.\n"
                     "Please check Spyder installation requirements:\n\n"
                     "qtpy 1.2.0+ and\n"
                     "%s %s+\n\n"
                     "are required to run Spyder."
                     % (qt_infos['pyqt5']))

spyder requires PyQt5. I have it installed, from pip list:

PyQt5 5.14.1.dev1912311030

but it’s not viewed by spyder that view only PySide2 instead.

What can I do?

pip install pyqtwebengine -U

Optionally, you also need to

pip install qdarkstyle watchdog jedi parso -U

Note that it’s recommended to follow spyder's guide to install it in a virtual environment:

https://docs.spyder-ide.org/current/installation.html#new-conda-environment

Thanks! now it work, but i have some version problems (jedi and parso are too much up to date in my default python installation). So I will follow your advice and install spyder in a separated conda environment in order to grab every package needed in the correct version required.

It’s best just to use conda’s spyder, instead of the system spyder.