FS#75264 - [sphinx] python-docutils-1:0.19-1 breaks spyder through sphinx

Attached to Project: Community Packages
Opened by Skupin Skupin (stefan.skupin) - Thursday, 07 July 2022, 11:35 GMT
Last edited by Daniel M. Capella (polyzen) - Tuesday, 12 July 2022, 00:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Johannes Löthberg (demize)
Daniel M. Capella (polyzen)
Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: python-docutils-1:0.19-1 breaks spyder 5.3.1-1


Additional info: spyder 5.3.1-1 requires docutils<0.19,>=0.14
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Tuesday, 12 July 2022, 00:34 GMT
Reason for closing:  Implemented
Additional comments about closing:  https://github.com/archlinux/svntogit-co mmunity/commit/2d4889decf78735fc95d3a589 29b945ec30ad626
Comment by Daniel M. Capella (polyzen) - Thursday, 07 July 2022, 22:01 GMT
Not seeing where this version restraint could be coming from. Did you mean sphinx?
Comment by Skupin Skupin (stefan.skupin) - Friday, 08 July 2022, 07:02 GMT
Yes, you are right, it comes from sphinx.

[sskupin@ilmport1201 ~]$ spyder
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 579, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 897, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 788, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (docutils 0.19 (/usr/lib/python3.10/site-packages), Requirement.parse('docutils<0.19,>=0.14'), {'sphinx'})
Comment by Chih-Hsuan Yen (yan12125) - Monday, 11 July 2022, 10:48 GMT
This happens when someone imports pkg_resources. This is where sphinx imports pkg_resources:

File "/usr/lib/python3.10/site-packages/spyder/utils/programs.py", line 28, in <module>
import pkg_resources

From this upstream PR (https://github.com/sphinx-doc/sphinx/pull/10656), the fix is as simple as raising the upper bound for docutils.

Loading...