Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564742 - =dev-python/matplotlib-1.5.0[doc] needs dev-python/mock bdep
Summary: =dev-python/matplotlib-1.5.0[doc] needs dev-python/mock bdep
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: 2015-11-03 00:06 UTC by Greg Turner
Modified: 2015-11-03 11:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Turner 2015-11-03 00:06:39 UTC
behold:

 * python2_7: running distutils-r1_run_phase python_compile_all
Running Sphinx v1.3.1

Exception occurred:
  File "conf.py", line 285, in <module>
    from mock import MagicMock
ImportError: No module named mock
The full traceback has been saved in /var/tmp/portage/dev-python/matplotlib-1.5.0/temp/sphinx-err-O4eWEE.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Using IPython's ipython_console_highlighting directive
Building HTML failed.
 * ERROR: dev-python/matplotlib-1.5.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   90:  Called src_compile
 *   environment, line 4552:  Called distutils-r1_src_compile
 *   environment, line 1225:  Called _distutils-r1_run_common_phase 'python_compile_all'
 *   environment, line  481:  Called _distutils-r1_run_foreach_impl 'python_compile_all'
 *   environment, line  494:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 4020:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 3025:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 3023:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line  819:  Called distutils-r1_run_phase 'python_compile_all'
 *   environment, line 1213:  Called python_compile_all
 *   environment, line 3569:  Called die
 * The specific snippet of code:
 *           VARTEXFONTS="${T}"/fonts "${PYTHON}" ./make.py --small html || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/matplotlib-1.5.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/matplotlib-1.5.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/matplotlib-1.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/matplotlib-1.5.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0-python2_7/doc'
 * S: '/var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0'

>>> Failed to emerge dev-python/matplotlib-1.5.0, Log file:

>>>  '/var/tmp/portage/dev-python/matplotlib-1.5.0/temp/build.log'

 * Messages for package dev-python/matplotlib-1.5.0:

 * Package:    dev-python/matplotlib-1.5.0
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 cairo doc elibc_glibc examples gtk kernel_linux latex python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 qt4 qt5 userland_GNU wxwidgets
 * FEATURES:   ccache compressdebug installsources preserve-libs sandbox splitdebug suidctl userpriv usersandbox
 * Will copy sources from /var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0
 * python3_4: copying to /var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0-python3_4
 * python3_5: copying to /var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0-python3_5
 * python2_7: copying to /var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0-python2_7
 * python3_4: running distutils-r1_run_phase python_configure
 * python3_5: running distutils-r1_run_phase python_configure
 * python2_7: running distutils-r1_run_phase python_configure
 * python2_7: running distutils-r1_run_phase python_configure_all
 * python3_4: running distutils-r1_run_phase python_compile
 * python3_5: running distutils-r1_run_phase python_compile
 * python2_7: running distutils-r1_run_phase python_compile
 * python2_7: running distutils-r1_run_phase python_compile_all
 * ERROR: dev-python/matplotlib-1.5.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   90:  Called src_compile
 *   environment, line 4552:  Called distutils-r1_src_compile
 *   environment, line 1225:  Called _distutils-r1_run_common_phase 'python_compile_all'
 *   environment, line  481:  Called _distutils-r1_run_foreach_impl 'python_compile_all'
 *   environment, line  494:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 4020:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 3025:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 3023:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line  819:  Called distutils-r1_run_phase 'python_compile_all'
 *   environment, line 1213:  Called python_compile_all
 *   environment, line 3569:  Called die
 * The specific snippet of code:
 *           VARTEXFONTS="${T}"/fonts "${PYTHON}" ./make.py --small html || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/matplotlib-1.5.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/matplotlib-1.5.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/matplotlib-1.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/matplotlib-1.5.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0-python2_7/doc'
 * S: '/var/tmp/portage/dev-python/matplotlib-1.5.0/work/matplotlib-1.5.0'

but once I emerge dev-python/mock, it emerges successfully.

Looks like it's loaded by sphinx, not by matplotlib.  So, not sure how this would best be achieved, but maybe dev-python/mock needs to be built against the same python ABI used to build sphinx?  Or maybe I'm wrong, I didn't look into it carefully, just figured I'd mention there may or may not be some nuance to worry about there.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-11-03 11:49:04 UTC
commit b8e3447735325850d63a63d23191f56827f66abb
Author: Justin Lecher <jlec@gentoo.org>
Date:   Tue Nov 3 09:06:25 2015 +0100
    
    dev-python/matplotlib: Add missing mock support for doc build
    
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=564742
    
    Package-Manager: portage-2.2.23
    Signed-off-by: Justin Lecher <jlec@gentoo.org>
    
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8e3447735325850d63a63d23191f56827f66abb