Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#65348 - [python-zipp] Incorrect distribution version

Attached to Project: Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Saturday, 01 February 2020, 17:34 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 13 February 2020, 14:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

$ pip show zipp | grep Version
Version: 0.0.0

The version should be 2.0.0. As an indirect result, home-assistant is broken:

$ hass
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: (zipp 0.0.0 (/usr/lib/python3.8/site-packages), Requirement.parse('zipp>=0.5'), {'importlib-metadata'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/hass", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3253, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3236, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3265, 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 'zipp>=0.5' distribution was not found and is required by importlib-metadata

Additional info:
community/home-assistant 0.104.3-1
community/python-importlib-metadata 1.4.0-1
community-testing/python-zipp 2.0.0-1

Steps to reproduce:
See above

----------------------------------

The problem is that toml is not installed during build(), and setuptools-scm is not invoked as pyproject.toml is not handled. See https://github.com/jaraco/zipp/commit/29c497286e9f8e835c68b7b4ddb9ff3635a273dc for more details.

I feel that importlib-metadata should be dropped (https://bugs.archlinux.org/task/64719); otherwise it or related packages will bite us more in the future.
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 13 February 2020, 14:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-zipp 2.2.0-1
Comment by Luiz Ribeiro (luizribeiro) - Thursday, 13 February 2020, 00:17 GMT
I'm currently having this issue. I'm not using the community-testing repo. Shouldn't this have been fixed before shipping python-zipp 2.0.0 to the community repo?

Loading...