Ошибка при запуске spyder IDE [Решено]


Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (decorator 5.0.9 (/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/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", 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/start.py", line 34, in <module>
    from spyder.utils.external import lockfile
  File "/usr/lib/python3.9/site-packages/spyder/utils/external/lockfile.py", line 31, in <module>
    from spyder.utils.programs import is_spyder_process
  File "/usr/lib/python3.9/site-packages/spyder/utils/programs.py", line 28, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'decorator<5' distribution was not found and is required by spyder-kernels

Система свежая только установил сколько не пробовал поставить spyder он у меня так и не заработал. Подскажите пожалуйста в каком направлении копать
Запустить через другую версию python.
Хотя есть...
Ошибки в тексте-неповторимый стиль автора©
indeviral
Запустить через другую версию python.
Хотя есть

Не затруднит подсказать как это сделать и какая версия питон нужна?
Устанавливал не через pip а через AUR
Ну наверно надо начать с
Downgrading python-decorator to version 4.4.2-4
Ошибки в тексте-неповторимый стиль автора©
indeviral
Ну наверно надо начать с
Downgrading python-decorator to version 4.4.2-4
Все получилось без даунгрейда просто установив pip install decorator==4.4.2
Спасибо огромное!
там ещё с разными темами оформления QT тоже не работает, ещё то поделие
поэтому в итоге остановился на двух IDE для питона
1. pycharm - хоролшо, но жирно\тормозно
2. visual studio code - относительно лёгкая и шустрая система(электрон) при этом достаточно комфортная
grayich
там ещё с разными темами оформления QT тоже не работает, ещё то поделие
поэтому в итоге остановился на двух IDE для питона
1. pycharm - хоролшо, но жирно\тормозно
2. visual studio code - относительно лёгкая и шустрая система(электрон) при этом достаточно комфортная
Все верно пайчарм жирный code сколько не пробовал както не заходит но пайчарм топ очень нравится
indeviral
Ну наверно надо начать с

Чем продолжить?

┌─ user ~
└─ $ pip freeze
abydos==0.5.0
alabaster==0.7.12
appdirs==1.4.4
argh==0.26.2
argon2-cffi==21.1.0
arrow==1.2.1
astroid==2.9.0
async-generator==1.10
atomicwrites==1.4.0
attrs==21.2.0
autopep8==1.5.7
Babel==2.9.1
backcall==0.2.0
binaryornot==0.4.4
black==21.11b1
bleach==4.1.0
btrfsutil==5.15
CacheControl==0.12.6
cffi==1.14.6
chardet==4.0.0
click==8.0.3
cloudpickle==2.0.0
colorama==0.4.4
commonmark==0.9.1
contextlib2==0.6.0.post1
cookiecutter==1.7.3
cryptography==35.0.0
debugpy==1.5.1
decorator==4.4.2
defusedxml==0.7.1
diff-match-patch==20200713
distlib==0.3.3
distro==1.6.0
docutils==0.17.1
entrypoints==0.3
flake8==4.0.1
future==0.18.2
helpdev==0.7.1
html5lib==1.1
idna==3.3
imagesize==1.3.0
importlib-metadata==4.8.1
inflection==0.5.1
intervaltree==3.1.0
ipykernel==6.5.1
ipython==7.29.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
isort==5.10.1
jedi==0.18.0
jeepney==0.7.1
jellyfish==0.8.9
Jinja2==3.0.3
jinja2-time==0.2.0
jsonschema==3.2.0
jupyter-client==7.1.0
jupyter-console==6.4.0
jupyter-core==4.9.1
jupyterlab-pygments==0.1.2
keyring==23.0.1
lazy-object-proxy==1.6.0
lensfun==0.3.95
libtorrent===1.2.14-build-libtorrent-rasterbar-src-libtorrent-rasterbar-1.2.14-bindings-python
MarkupSafe==2.0.1
matplotlib-inline==0.1.3
mccabe==0.6.1
mistune==0.8.4
more-itertools==8.10.0
msgpack==1.0.2
mypy-extensions==0.4.3
nbclient==0.5.4
nbconvert==6.1.0
nbformat==5.1.3
nest-asyncio==1.5.1
notebook==6.4.4
numpy==1.21.2
numpydoc==1.1.0
ordered-set==4.0.2
packaging==20.9
pandocfilters==1.4.3
parso==0.8.2
pathspec==0.9.0
pathtools==0.1.2
pep517==0.11.0
pep8==1.7.1
pexpect==4.8.0
pickleshare==0.7.5
pikaur==1.8
platformdirs==2.0.2
pluggy==0.13.1
ply==3.11
powerline-status==2.8.2
poyo==0.5.0
progress==1.6
prometheus-client==0.11.0
prompt-toolkit==3.0.22
psutil==5.8.0
ptyprocess==0.7.0
pyalpm==0.10.6
pycairo==1.20.1
pycodestyle==2.8.0
pycparser==2.20
pydocstyle==6.1.1
pyflakes==2.4.0
Pygments==2.10.0
PyGObject==3.42.0
pylint==2.11.1
pyls-spyder==0.4.0
pyOpenSSL==20.0.1
pyparsing==2.4.7
PyQt5==5.15.6
PyQt5-sip==12.9.0
PyQtWebEngine==5.15.5
pyrsistent==0.18.0
python-dateutil==2.8.2
python-Levenshtein==0.12.2
python-lsp-black==1.0.0
python-lsp-jsonrpc==1.0.0
python-lsp-server==1.2.4
python-slugify==5.0.2
pytz==2021.3
pyxDamerauLevenshtein==1.7.0
pyxdg==0.27
PyYAML==5.4.1
pyzmq==22.2.1
QDarkStyle==3.0.2
qstylizer==0.2.1
QtAwesome==1.0.3
qtconsole==5.1.1
QtPy==1.11.2
regex==2021.11.10
requests==2.26.0
resolvelib==0.5.5
retrying==1.3.3
rope==0.22.0
Rtree==0.9.7
SecretStorage==3.3.1
Send2Trash==1.8.0
six==1.16.0
snowballstemmer==2.2.0
sortedcontainers==2.4.0
Sphinx==4.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
spyder==5.1.5
spyder-kernels==2.1.3
team==1.0
terminado==0.11.1
testpath==0.5.0
text-unidecode==1.3
textdistance==4.2.1
three-merge==0.1.1
tinycss2==1.1.0
toml==0.10.2
tomli==1.2.2
tornado==6.1
traitlets==5.1.0
typing-extensions==3.10.0.2
ujson==4.2.0
urllib3==1.26.7
watchdog==0.10.7
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
wrapt==1.12.1
wurlitzer==3.0.2
yapf==0.31.0
youtube-dl==2021.6.6
zipp==3.6.0


Переустанавливал систему такаяже ошибка


┌─ user ~
└─ $ spyder
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jupyter-client 7.1.0 (/usr/lib/python3.9/site-packages), Requirement.parse('jupyter-client<7,>=5.3.4'), {'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.1.5', 'gui_scripts', 'spyder')())
  File "/usr/bin/spyder", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", 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/start.py", line 47, in <module>
    from spyder.utils.external import lockfile
  File "/usr/lib/python3.9/site-packages/spyder/utils/external/lockfile.py", line 31, in <module>
    from spyder.utils.programs import is_spyder_process
  File "/usr/lib/python3.9/site-packages/spyder/utils/programs.py", line 28, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'jupyter-client<7,>=5.3.4' distribution was not found and is required by spyder-kernels


Пока писал кажется разобрался как ошибки читать, установил pip install jupyter-client==5.3.4 потом матюкаться стал на jupyter-client==6.1.5 установил и его, все начало работать.
 
Зарегистрироваться или войдите чтобы оставить сообщение.