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):
Added in 1.9_rc0
What configuration do I need to build tensorflow? I've been trying many things, but it always fails.
(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.
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'