Any way of installing Spyder IDE on Manjaro (without Anaconda)?

The Spyder IDE in the repos installs without errors but then does not run (gives errors regarding PySide and others). The installation via pip is also the same. Can Spyder not be installed in Manjaro without installing Anaconda??
Terminal output when running spyder (installed via pip) -

$ spyder
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/qtpy/", line 204, in <module>
    from PySide import __version__ as PYSIDE_VERSION  # analysis:ignore
  File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/shirshendu/.local/bin/spyder", line 8, in <module>
  File "/home/shirshendu/.local/lib/python3.9/site-packages/spyder/app/", line 232, in main
    from import mainwindow
  File "/home/shirshendu/.local/lib/python3.9/site-packages/spyder/app/", line 42, in <module>
  File "/home/shirshendu/.local/lib/python3.9/site-packages/spyder/", line 44, in check_qt
    import qtpy
  File "/usr/lib/python3.9/site-packages/qtpy/", line 210, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

Can you share the errors it gives? Ideally the full output.

The OS (via pamac )successfully install Spyder but it cannot start

$ spyder                                                                  
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 568, in _build_master
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (decorator 5.1.0 (/usr/lib/python3.9/site-packages), Requirement.parse('decorator<5'), {'spyder-kernels'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/spyder", line 33, in <module>
    sys.exit(load_entry_point('spyder==5.0.1', 'gui_scripts', 'spyder')())
  File "/usr/bin/spyder", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/", line 77, in load
    module = import_module('module'))
  File "/usr/lib/python3.9/importlib/", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/spyder/app/", line 34, in <module>
    from spyder.utils.external import lockfile
  File "/usr/lib/python3.9/site-packages/spyder/utils/external/", line 31, in <module>
    from spyder.utils.programs import is_spyder_process
  File "/usr/lib/python3.9/site-packages/spyder/utils/", line 28, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'decorator<5' distribution was not found and is required by spyder-kernels

Added that in the original post.

Looks like this is a know issue since May 2021

In the other hand, for the pip issue, someone have the same issue as the original author has in Manjaro since August 2020.

1 Like

With the stable update of 2021-11-19, spyder installed from the official repos works (for now, at least).

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.