Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 683194 - dev-python/sphinx-2.0.1[doc] missing dependency on dev-python/sphinxcontrib-websupport
Summary: dev-python/sphinx-2.0.1[doc] missing dependency on dev-python/sphinxcontrib-w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-12 18:17 UTC by Chris Mayo
Modified: 2020-03-02 20:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,175.08 KB, text/x-log)
2019-11-26 21:04 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2019-04-12 18:17:16 UTC
reading sources... [ 97%] usage/restructuredtext/index
reading sources... [ 98%] usage/restructuredtext/roles
reading sources... [100%] usage/theming


Warning, treated as error:
autodoc: failed to import method 'websupport.WebSupport.build' from module 'sphinxcontrib'; the following exception was raised:
No module named 'sphinxcontrib.websupport'
 * ERROR: dev-python/sphinx-2.0.1::gentoo failed (compile phase):
 *   (no error message)


After installing dev-python/sphinxcontrib-websupport-1.1.0 emerge succeeds.
Comment 1 Jason Chan 2019-11-23 23:44:16 UTC
USE="doc latex -test" PYTHON_TARGETS="python3_6 python3_7 -pypy3 -python3_5"

Warning, treated as error:
autodoc: failed to import method 'websupport.WebSupport.build' from module 'sphinxcontrib'; the following exception was raised:
No module named 'sphinxcontrib.websupport'
 * ERROR: dev-python/sphinx-2.0.1::gentoo failed (compile phase):


I wasn't able to emerge dev-python/sphinxcontrib-websupport because dev-python/sphinx[doc] was ordered to be built first.


Error was fixed by running:

emerge -1 --nodeps dev-python/sphinxcontrib-websupport


Can a dev please add:

doc? ( dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] )

to RDEPEND?
Comment 2 Andreas Sturmlechner gentoo-dev 2019-11-26 21:04:42 UTC
Created attachment 597572 [details]
build.log
Comment 3 Amel Hodzic 2019-12-31 03:44:45 UTC
I've run into this problem as well.  However, installing dev-python/sphinxcontrib-websupport seems to prefer =dev-python/sphinx-1.7.5-r1.  So, I'm not sure if the suggested patch would resolve the issue.
Comment 4 Jesper Saxtorph 2019-12-31 18:35:35 UTC
(In reply to Jason Chan from comment #1)
> Can a dev please add:
> 
> doc? ( dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] )
> 
> to RDEPEND?

It should be a DEPEND as not RDEPEND as it is about generating the doc while emerging. Besides that I can confirm this solution works.
Comment 5 Jesper Saxtorph 2019-12-31 18:41:57 UTC
(In reply to Amel Hodzic from comment #3)
> I've run into this problem as well.  However, installing
> dev-python/sphinxcontrib-websupport seems to prefer
> =dev-python/sphinx-1.7.5-r1.  So, I'm not sure if the suggested patch would
> resolve the issue.

This is probably because you still have python 2.7 support enabled (still the default, but I have removed it as much as possible).

dev-python/sphinxcontrib-websupport has python 2.7 support and hence need a dev-python/sphinx with python 2.7 support. However, sphinx-2.0.1 have removed that support. Therefore it pull in the older sphinx-1.7.5-r1 which have python 2.7 support.
On my system, where I have mostly removed python 2.7 support, it pulls in sphinx-2.0.1 as you would expect.

I have not checked if the sphinx-1.7.5 are missing a similar dependency.
Comment 6 Larry the Git Cow gentoo-dev 2020-03-02 20:22:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=488343caa60ebacb1a4ba8a95498fe87263d120a

commit 488343caa60ebacb1a4ba8a95498fe87263d120a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-03-02 15:32:52 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-03-02 20:22:21 +0000

    dev-python/sphinx: Bump to 2.4.3
    
    Closes: https://bugs.gentoo.org/683194
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/sphinx/Manifest            |   1 +
 dev-python/sphinx/sphinx-2.4.3.ebuild | 106 ++++++++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)