[opensuse-python] Revision 25 of python-packaging breaks sphinxcontrib-autoprogram and sphinxcontrib-asyncio
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
Hi, it is a missing dependency on the attrs in the package itself (the python-packaging): If you look on the diff of revision 25 the setup.py changes are as follows: - install_requires=["pyparsing>=2.0.2", "six"], # Needed to avoid issue #91 + install_requires=["attrs", "pyparsing>=2.0.2", "six"], # Needed to avoid issue #91 So just add the Requires/BuildRequires and all should be fine. The unfortunate part is that python-packaging has no tests enabled so it was not noticed... Cheers Tom Dan Cermak píše v Čt 08. 08. 2019 v 09:59 +0000:
Hi list,
my package python-sphinxcontrib-autoprogram (https://build.opensuse.org/package/show/devel:languages:python/pytho n-sphinxcontrib-autoprogram) 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 :languages:python/python-sphinxcontrib-autoprogram
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
Hi,
Tomas Chvatal
Hi,
it is a missing dependency on the attrs in the package itself (the python-packaging):
Yes, I just found that out too.
If you look on the diff of revision 25 the setup.py changes are as follows:
- install_requires=["pyparsing>=2.0.2", "six"], # Needed to avoid issue #91 + install_requires=["attrs", "pyparsing>=2.0.2", "six"], # Needed to avoid issue #91
So just add the Requires/BuildRequires and all should be fine.
I've tried that a few days ago as a temporary fix for sphinxcontrib-autoprogram and that works (unsurprisingly). I've created https://build.opensuse.org/request/show/721714 which should fix the issue (it does so in my home project).
The unfortunate part is that python-packaging has no tests enabled so it was not noticed...
I'll try to get them enabled. Cheers, Dan
Cheers
Tom
Dan Cermak píše v Čt 08. 08. 2019 v 09:59 +0000:
Hi list,
my package python-sphinxcontrib-autoprogram (https://build.opensuse.org/package/show/devel:languages:python/pytho n-sphinxcontrib-autoprogram) 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 :languages:python/python-sphinxcontrib-autoprogram
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 ��칻�&�zf���^�ˬz������{.n�+������Ǩ��r��i�m��0��ޙ��������+a���w��������
participants (2)
-
Dan Cermak
-
Tomas Chvatal