FS#76691 - [spyder] crashes on startup after upgrading python-pycodestyle, python-flakes and flake8.

Attached to Project: Community Packages
Opened by Ivo Vegter (ivovegter) - Monday, 28 November 2022, 17:40 GMT
Last edited by Antonio Rojas (arojas) - Monday, 28 November 2022, 22:35 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel M. Capella (polyzen)
Bruno Pagani (ArchangeGabriel)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

spyder crashes on startup. It first did so when python-pycodestyle was upgraded to 2.10.0-1, then when python-flakes was upgraded to 3.0.1-1, and again when flake8 was upgraded to 1:6.0.0-1.

Additional info:
* package version(s)

spyder 5.4.0-2

* config and/or log files etc.

First crash:

> pkg_resources.DistributionNotFound: The 'pyflakes<2.6.0,>=2.5.0; extra == "all"' distribution was not found and is required by python-lsp-server

When downgrading python-pyflakes from 3.0.1-1 to 2.5.0-1, this error goes away, but a new one appears:

> pkg_resources.DistributionNotFound: The 'pycodestyle<2.10.0,>=2.9.0; extra == "all"' distribution was not found and is required by python-lsp-server

After downgrading python-pycodestyle from 2.10.0-1 to 2.9.1-2, spyder throws yet another error:

> pkg_resources.DistributionNotFound: The 'flake8<5.1.0,>=5.0.0; extra == "all"' distribution was not found and is required by python-lsp-server

Downgrading flake8, too, from 1:6.0.0-1 to 1:5.0.4-2, resolves that error, and spyder starts normally.

All of these errors appear to be related to upper limits on required dependency versions.

* link to upstream bug report, if any

None

Steps to reproduce:

pacman -Syu
spyder

This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 28 November 2022, 22:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-lsp-server 1.6.0-2
Comment by loqs (loqs) - Monday, 28 November 2022, 19:11 GMT
python-lsp-server 1.6.0-1 dependency requirements for flake8 [1] python-pycodestyle [2] python-pyflakes [3] are no longer satisfied by the packaged versions.

[1] https://github.com/python-lsp/python-lsp-server/blob/v1.6.0/pyproject.toml#L31
[2] https://github.com/python-lsp/python-lsp-server/blob/v1.6.0/pyproject.toml#L33
[3] https://github.com/python-lsp/python-lsp-server/blob/v1.6.0/pyproject.toml#L35
Comment by Daniel M. Capella (polyzen) - Monday, 28 November 2022, 22:15 GMT
Is spyder not using the Arch package for python-lsp-server? This shouldn't be a problem:
https://github.com/archlinux/svntogit-community/blob/6a391bc63661517196dfcb987487189503df433e/trunk/PKGBUILD#L50-L53
Comment by loqs (loqs) - Monday, 28 November 2022, 22:33 GMT
's|flake8>=4.0.0,<4.1.0|flake8>=4.0.0|' doe not match flake8>=5.0.0,<5.1.0
's|mccabe>=0.6.0,<0.7.0|mccabe>=0.6.0|' does not match mccabe>=0.7.0,<0.8.0
's|pycodestyle>=2.8.0,<2.9.0|pycodestyle>=2.8.0|' does not match pycodestyle>=2.9.0,<2.10.0
's|pycodestyle>=2.8.0,<2.9.0|pycodestyle>=2.8.0|' does not match pycodestyle>=2.9.0,<2.10.0
's|pyflakes>=2.4.0,<2.5.0|pyflakes>=2.4.0|' does not match pyflakes>=2.5.0,<2.6.0

Loading...