Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507444 - =app-emulation/docker-0.10.0 USE=doc with =dev-python/sphinx-1.2.2 - Running Sphinx v1.2.2 Extension error: Could not import extension sphinxcontrib.httpdomain (exception: No module named 'sphinxcontrib')
Summary: =app-emulation/docker-0.10.0 USE=doc with =dev-python/sphinx-1.2.2 - Running ...
Status: RESOLVED DUPLICATE of bug 507048
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-11 19:49 UTC by Alex Brandt (RETIRED)
Modified: 2014-05-23 15:39 UTC (History)
1 user (show)

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


Attachments
environment (environment,121.85 KB, text/plain)
2014-04-11 19:49 UTC, Alex Brandt (RETIRED)
Details
build.log (build.log,3.72 KB, text/plain)
2014-04-11 19:49 UTC, Alex Brandt (RETIRED)
Details
emerge -pqv '=app-emulation/docker-0.10.0::gentoo' (file_507444.txt,115 bytes, text/plain)
2014-04-11 19:50 UTC, Alex Brandt (RETIRED)
Details
emerge --info '=app-emulation/docker-0.10.0::gentoo' (file_507444.txt,5.50 KB, text/plain)
2014-04-11 19:51 UTC, Alex Brandt (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Brandt (RETIRED) gentoo-dev 2014-04-11 19:49:18 UTC
When building docker with the doc use flag the sphinxcontrib.httpdomain extension can't be imported even when it's installed.  Possibly due to the python versions in use.

Reproducible: Always

Steps to Reproduce:
1. USE=doc emerge -v1 \=app-emulation/docker-0.10.0
2. Extension error: Could not import extension sphinxcontrib.httpdomain (exception: No module named 'sphinxcontrib')
3.
Actual Results:  
Sphinx Extension Error

Expected Results:  
Successful build

The required extension is installed but only supports python-2.7 whereas the system python is set to python-3.3.  Not sure this is related but doesn't seem insignificant.
Comment 1 Alex Brandt (RETIRED) gentoo-dev 2014-04-11 19:49:42 UTC
Created attachment 374766 [details]
environment
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2014-04-11 19:49:57 UTC
Created attachment 374768 [details]
build.log
Comment 3 Alex Brandt (RETIRED) gentoo-dev 2014-04-11 19:50:20 UTC
Created attachment 374770 [details]
emerge -pqv '=app-emulation/docker-0.10.0::gentoo'
Comment 4 Alex Brandt (RETIRED) gentoo-dev 2014-04-11 19:51:00 UTC
Created attachment 374772 [details]
emerge --info '=app-emulation/docker-0.10.0::gentoo'
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-12 16:59:01 UTC

*** This bug has been marked as a duplicate of bug 507048 ***
Comment 6 Alex Brandt (RETIRED) gentoo-dev 2014-04-12 17:03:52 UTC
Hey Jeroen,

I can see why this looks like it's related to bug 507048 but it's actually a different problem.  In the bug you marked this as a duplicate of, the issue is a missing dependency.  Otherwise, the build succeeds just fine when the sphinx extension is installed.

On the other hand, this bug happens regardless of the installed state of the extension in question.  This is a deeper issue than just a missing dependency on a particular package.
Comment 7 Tianon 2014-04-12 20:41:34 UTC
I can confirm that this one is specifically because of the currently eselected system python (but I can't say anything for or against bug ).  Mine was set to python2.7 and was working, but setting it to python3.3 makes it stop working.  I would imagine that this is because sphinx itself supports Python 3, but sphinxcontrib.httpdomain only supports Python 2.

I'm only mildly familiar with Sphinx, so I'm not sure what the proper solution here is.  I think it is worth noting that upstream Docker is moving away from Sphinx for their docs, and that transition might be complete as soon as the next major release.

In the meantime, if someone has an idea for how to convince Sphinx that we need to use whatever version of Python is supported by the httpdomain extension, any ideas would be appreciated.
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-23 11:58:42 UTC
Some time ago, I've commented on the duplicate to make note of this bug; if you still experience this after that duplicate gets resolved, please comment again.
Comment 9 Alex Brandt (RETIRED) gentoo-dev 2014-05-23 15:39:48 UTC
Hey Tom,

Thanks for the follow up.  This is closed with the release of docker-0.11.1 as it no longer uses sphinx for documentation (thus, completely breaking the duplicate status of this bug).  I don't know if a status change is necessary but this bug is no longer open.