Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686762 - dev-python/jupyter_console-6.0.0: Could not import extension sphinxcontrib_github_alt (exception: No module named 'sphinxcontrib_github_alt')
Summary: dev-python/jupyter_console-6.0.0: Could not import extension sphinxcontrib_gi...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-25 21:25 UTC by Hamlet
Modified: 2019-09-19 13:00 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.log,6.20 KB, text/plain)
2019-05-25 21:26 UTC, Hamlet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hamlet 2019-05-25 21:25:02 UTC
It looks like `dev-python/jupyter_console-6.0.0` with `USE=doc` uses some sphynx feature that requires `dev-python/sphinxcontrib-github-alt` or so. Output of:

--- 8< ------------------------------------------------------
# emerge -1upv --nodeps dev-python/jupyter_console

These are the packages that would be merged, in order:

[ebuild     U  ] dev-python/jupyter_console-6.0.0::gentoo [5.1.0::gentoo] USE="doc -test" PYTHON_TARGETS="python3_6 -python3_5 (-python2_7%*)" 0 KiB
--- 8< ------------------------------------------------------

--- 8< ------------------------------------------------------
# emerge -1u --nodeps dev-python/jupyter_console
[...]
running build_scripts
creating /var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0-python3_6/scripts
copying and adjusting scripts/jupyter-console -> /var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0-python3_6/scripts
changing mode of /var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0-python3_6/scripts/jupyter-console from 644 to 755
 * python3_6: running distutils-r1_run_phase python_compile_all
make -j9 -C docs html 
make: Entering directory '/var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0/docs'
python3 autogen_config.py
Created docs for config options
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.7.5

Extension error:
Could not import extension sphinxcontrib_github_alt (exception: No module named 'sphinxcontrib_github_alt')
make: *** [Makefile:55: html] Error 2
make: Leaving directory '/var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0/docs'
 * ERROR: dev-python/jupyter_console-6.0.0::gentoo failed (compile phase):
 *   emake failed
--- 8< ------------------------------------------------------
Comment 1 Hamlet 2019-05-25 21:26:03 UTC
Created attachment 577804 [details]
emerge --info
Comment 2 Hamlet 2019-05-25 21:28:27 UTC
Confirming that when `dev-python/sphinxcontrib-github-alt` is installed, `dev-python/jupyter_console-6.0.0` also merges successfully with `USE=doc`.
Comment 3 Jonas Stein gentoo-dev 2019-05-26 14:59:14 UTC
Thank you for the report. Please recompile and 
*attach* the logfiles as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 4 George Shapovalov 2019-09-19 13:00:40 UTC
I confirm: jupyter_console-6.0.0 fails to build without dev-python/sphinxcontrib-github-alt. The relevant snippet of error message is at the end of this message.
The obvious fix is to add sphinxcontrib-github-alt works. It builds successfully with this very simple change applied to an ebuild ebuild:

--- /usr/portage/dev-python/jupyter_console/jupyter_console-6.0.0.ebuild        2019-02-27 05:39:31.000000000 +0100
+++ /usr/local/portage/dev-python/jupyter_console/jupyter_console-6.0.0.ebuild  2019-09-19 14:48:42.819481796 +0200
@@ -24,7 +24,7 @@
        dev-python/pygments[${PYTHON_USEDEP}]
        "
 DEPEND="${RDEPEND}
-       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}]  dev-python/sphinxcontrib-github-alt[${PYTHON_USEDEP}] )
        test? (
                $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 'python2*')
                dev-python/pexpect[${PYTHON_USEDEP}]



----------------------------------------------
relevant error message

running build_scripts
creating /var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0-python3_6/scripts
copying and adjusting scripts/jupyter-console -> /var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0-python3_6/scripts
changing mode of /var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0-python3_6/scripts/jupyter-console from 644 to 755
 * python3_6: running distutils-r1_run_phase python_compile_all
make -j5 -l3 -C docs html 
make: Entering directory '/var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0/docs'
python3 autogen_config.py
Created docs for config options
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.7.5

Extension error:
Could not import extension sphinxcontrib_github_alt (exception: No module named 'sphinxcontrib_github_alt')
make: *** [Makefile:55: html] Error 2
make: Leaving directory '/var/tmp/portage/dev-python/jupyter_console-6.0.0/work/jupyter_console-6.0.0/docs'