Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657452 - sci-libs/tensorflow-1.8.0-r1: missing dependency on dev-python/mock
Summary: sci-libs/tensorflow-1.8.0-r1: missing dependency on dev-python/mock
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 06:53 UTC by Guilherme Amadio
Modified: 2018-06-13 07:03 UTC (History)
1 user (show)

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 Guilherme Amadio gentoo-dev 2018-06-06 06:53:56 UTC
File "/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/bazel-base-python2_7/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/platform/test.py", line 61, in <module>
    import mock                # pylint: disable=g-import-not-at-top,unused-import
ImportError: No module named mock
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 1460.063s, Critical Path: 90.07s
INFO: 5981 processes, local.
FAILED: Build did NOT complete successfully
 * ERROR: sci-libs/tensorflow-1.8.0-r1::gentoo failed (compile phase):
Comment 1 Jason Zaman gentoo-dev 2018-06-12 04:12:26 UTC
Added in 1.9_rc0
Comment 2 Guilherme Amadio gentoo-dev 2018-06-12 12:26:14 UTC
What configuration do I need to build tensorflow? I've been trying many things, but it always fails.
Comment 3 Jason Zaman gentoo-dev 2018-06-13 04:18:19 UTC
(In reply to Guilherme Amadio from comment #2)
> What configuration do I need to build tensorflow? I've been trying many
> things, but it always fails.

Can you try with -cuda first? It works without cuda for me. There is another bug about cuda being a problem but I put in the $(which %(tc-getCC)) which was supposed to make it work. https://bugs.gentoo.org/656582

If you can figure out the variables to set before the ./configure in the ebuild to make it work I'm more than willing to add them I just dont really know what needs to change.
Comment 4 Guilherme Amadio gentoo-dev 2018-06-13 07:03:00 UTC
I doesn't work with or without cuda for me, for every configuration I tried. Here is my latest error:

Traceback (most recent call last):
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/create_python_api.py", line 27, in <module>
    from tensorflow.python.util import tf_decorator
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 81, in <module>
    from tensorflow.python import keras
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/keras/__init__.py", line 29, in <module>
    from tensorflow.python.keras import datasets
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/keras/datasets/__init__.py", line 25, in <module>
    from tensorflow.python.keras.datasets import imdb
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/keras/datasets/imdb.py", line 25, in <module>
    from tensorflow.python.keras.preprocessing.sequence import _remove_long_seq
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/keras/preprocessing/__init__.py", line 20, in <module>
    from tensorflow.python.keras.preprocessing import image
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/bazel-base-python3_5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/python/keras/preprocessing/image.py", line 39, in <module>
    import scipy.ndimage as ndi
  File "/usr/lib64/python3.5/site-packages/scipy/ndimage/__init__.py", line 161, in <module>
    from .filters import *
  File "/usr/lib64/python3.5/site-packages/scipy/ndimage/filters.py", line 37, in <module>
    from scipy.misc import doccer
  File "/usr/lib64/python3.5/site-packages/scipy/misc/__init__.py", line 67, in <module>
    from scipy.interpolate._pade import pade as _pade
  File "/usr/lib64/python3.5/site-packages/scipy/interpolate/__init__.py", line 175, in <module>
    from .interpolate import *
  File "/usr/lib64/python3.5/site-packages/scipy/interpolate/interpolate.py", line 32, in <module>
    from .interpnd import _ndim_coords_from_arrays
  File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd
  File "/usr/lib64/python3.5/site-packages/scipy/spatial/__init__.py", line 95, in <module>
    from .qhull import *
  File "qhull.pyx", line 2155, in init scipy.spatial.qhull
AttributeError: 'cython_function_or_method' object has no attribute '__func__'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 765.013s, Critical Path: 83.60s
INFO: 4264 processes, local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
 * ERROR: sci-libs/tensorflow-1.9.0_rc0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 2910:  Called python_foreach_impl 'run_in_build_dir' 'do_compile'
 *   environment, line 2422:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
 *   environment, line 1793:  Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
 *   environment, line 1791:  Called _python_multibuild_wrapper 'run_in_build_dir' 'do_compile'
 *   environment, line  722:  Called run_in_build_dir 'do_compile'
 *   environment, line 2860:  Called do_compile
 *   environment, line 2908:  Called ebazel 'build' '//tensorflow/tools/pip_package:build_pip_package'
 *   environment, line 1284:  Called die
 * The specific snippet of code:
 *       bazel --output_base="${output_base}" $@ || die
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-1.9.0_rc0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.9.0_rc0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/tensorflow-1.9.0-rc0-python3_5'
 * S: '/var/tmp/portage/sci-libs/tensorflow-1.9.0_rc0/work/tensorflow-1.9.0-rc0'