FS#70689 - [python-spyder-kernels] spyder crashs at startup.
Attached to Project:
Community Packages
Opened by Simon (Giggi) - Monday, 03 May 2021, 07:30 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Tuesday, 19 October 2021, 11:35 GMT
Opened by Simon (Giggi) - Monday, 03 May 2021, 07:30 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Tuesday, 19 October 2021, 11:35 GMT
|
Details
Description:
After the start spyder crash with the following error message: 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.7 (/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.0', '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 790, 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 29, 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 Additional info: version: spyder 5.0.0-2 Steps to reproduce: Start spyder in a console |
This task depends upon
Closed by Bruno Pagani (ArchangeGabriel)
Tuesday, 19 October 2021, 11:35 GMT
Reason for closing: Fixed
Additional comments about closing: All stack updated, sorry for the long delay.
Tuesday, 19 October 2021, 11:35 GMT
Reason for closing: Fixed
Additional comments about closing: All stack updated, sorry for the long delay.
P.S Last time such issue was fixed by patching some config file during compilation, this time it seems they pushed 'xxx<5.0' restriction somewhere in the code.
Does removing the upper bound on decorator [3] resolve the issue without introducing any other issues?
[1] https://github.com/spyder-ide/spyder-kernels/issues/288
[2] https://github.com/spyder-ide/spyder-kernels/commit/a826376ee090ba22b9efe1d2734573f5429b4797
[3] PKGBUILD.diff
Thanks
I also removed the version from setup.py on parso, pyqt5, pyqtwebengine, and jedi then building with makepkg --noextract. Somehow I'm back to the decorator issue even though it's not in setup.py. It would be nice if they added a launch flag to ignore all of this planned obsolescence.
It would be great to have updated packages for Arch, with this bug sorted out.
(An updated Spyder package would also be swell, Arch is already four releases behind)
It should be part of the dependencies of python-tomli
python-flit-core it is not part of the dependencies of python-tomli. Therefore, manual installation is required. However, it should be within the dependency array of python-tomli.
I'm going to report it there, and probably get a faster solution than here in spyder with the decorator problem that started this thread
At the moment I've recompiled spyder for myself and everything is working.
To make it working you must install from AUR the following packages ...
python-lsp-black 1.0.0-1
python-lsp-jsonrpc 1.0.0-1
python-lsp-server 1.2.1-1
There are a few visual glitches with shadows and mouseover. All transitions are defective. The help is broken. The plots are stretched. I'm sure all this is related to one or two dependencies that are not updated. Probably the decorator that originated this thread.
I didn't wanted to install from AUR. I might switch to another IDE, maybe temporarily but who knows
python-lsp-black-1.0.0-2 python-lsp-jsonrpc-1.0.0-1 python-lsp-server-1.2.4-2 python-rtree-0.9.7-2 spatialindex-1.9.3-1 python-decorator-5.1.0-1 python-spyder-kernels-2.1.3-1 spyder-5.1.5-2
Decorator was on hold due to the problem of this thread. Starting 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: (pyls-spyder 0.3.2 (/usr/lib/python3.9/site-packages), Requirement.parse('pyls-spyder>=0.4.0'), {'spyder'})
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 'pyls-spyder>=0.4.0' distribution was not found and is required by spyder
Installing python-pyls-spyder also from [commuity-testing] solved the issue
EDIT: tried to add some formatting in the error output, but not sure on markdown here
~ 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: (flake8 4.0.1 (/usr/lib/python3.9/site-packages), Requirement.parse('flake8<4.0.0,>=3.8.0'), {'python-lsp-server'})
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 'flake8<4.0.0,>=3.8.0' distribution was not found and is required by python-lsp-server
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: (pyflakes 2.3.1 (/usr/lib/python3.9/site-packages), Requirement.parse('pyflakes<2.5.0,>=2.4.0'), {'flake8'})
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 777, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyflakes 2.3.1 (/usr/lib/python3.9/site-packages), Requirement.parse('pyflakes<2.5.0,>=2.4.0'), {'flake8'})