Hi list,
my package python-sphinxcontrib-autoprogram
(https://build.opensuse.org/package/show/devel:languages:python/python-sphinx...)
recently started failing to build with the following error in %build:
[ 35s] + sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html
[ 35s] Traceback (most recent call last):
[ 35s] File "/usr/bin/sphinx-build", line 6, in <module>
[ 35s] from pkg_resources import load_entry_point
[ 35s] File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3241, in <module>
[ 35s] @_call_aside
[ 35s] File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3225, in _call_aside
[ 35s] f(*args, **kwargs)
[ 35s] File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
[ 35s] working_set = WorkingSet._build_master()
[ 35s] File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
[ 35s] ws.require(__requires__)
[ 35s] File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
[ 35s] needed = self.resolve(parse_requirements(requirements))
[ 35s] File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
[ 35s] raise DistributionNotFound(req, requirers)
[ 35s] pkg_resources.DistributionNotFound: The 'attrs' distribution was not found and is required by packaging
[ 36s] error: Bad exit status from /var/tmp/rpm-tmp.smu5rR (%build)
Exactly the same error occurs with python-sphinxcontrib-asyncio, which
also invokes sphinx-build.
I was able to track this down to the update of python-packaging to
version 19.1 (or revision 25). I've branched revision 24 into my home
project and now python-sphinxcontrib-autoprogram builds without issues:
https://build.opensuse.org/package/show/home:dancermak:branches:devel:langua...
I've also created a bug report for this:
https://bugzilla.suse.com/show_bug.cgi?id=1144506
Anyone has an idea what could be the underlying issue?
Cheers,
Dan
--
Dan Čermák