FS#66431 - [python-poetry] depends on an uncompatible version of python-tomlkit

Attached to Project: Community Packages
Opened by morgoth_bauglir (morgoth_bauglir) - Monday, 27 April 2020, 01:42 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 28 April 2020, 02:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Eli Schwartz (eschwartz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
The package [url=https://www.archlinux.org/packages/community/any/python-poetry/]python-poetry[/url] depends on [url=https://www.archlinux.org/packages/community/any/python-tomlkit/]python-tomlkit[/url], but with a version constraint:

[code]
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (tomlkit 0.6.0 (/usr/lib/python3.8/site-packages), Requirement.parse('tomlkit<0.6.0,>=0.5.11'), {'poetry'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/poetry", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3259, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3242, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3271, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 586, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'tomlkit<0.6.0,>=0.5.11' distribution was not found and is required by poetry
[/code]

python-tomlkit was updated to 0.6.0, which renders python-poetry unusable.

Additional info:
* python-tomlkit 0.6.0
* python-poetry 1.0.5-1
Original post: https://bbs.archlinux.org/viewtopic.php?id=255123

Steps to reproduce:
* Execute: pacman -S python-poetry
* In a terminal, launch: poetry new new_package
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 28 April 2020, 02:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-poetry 1.0.5-2
Comment by Eli Schwartz (eschwartz) - Monday, 27 April 2020, 12:35 GMT
I think tomlkit hasn't changed sufficiently to cause real problems with poetry, so removing the version constraint may be enough. But I haven't tested it.

Note: poetry can still be run as-is without the version checks if you use `python -m poetry`.
Comment by Eli Schwartz (eschwartz) - Monday, 27 April 2020, 12:36 GMT
@morgoth_bauglir,

A tip for the future: the bug tracker doesn't use bbcode.
Comment by morgoth_bauglir (morgoth_bauglir) - Tuesday, 28 April 2020, 00:00 GMT
@eschwartz: Yes, removing the version check should be ok: a simple `python -m poetry` runs fine.

@eschwartz: "the bug tracker doesn't use bbcode" : I understood it as soon as I submitted ;)

Loading...