Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681596 - sci-libs/tensorflow-estimator-1.13.0_rc0 - ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Summary: sci-libs/tensorflow-estimator-1.13.0_rc0 - ModuleNotFoundError: No module nam...
Status: RESOLVED DUPLICATE of bug 678920
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: 2019-03-24 06:29 UTC by picnic.sun
Modified: 2019-03-30 14:20 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 picnic.sun 2019-03-24 06:29:20 UTC
ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/work/estimator-1.13.0-rc0/tensorflow_estimator/python/estimator/api/BUILD:30:1: Executing genrule //tensorflow_estimator/python/estimator/api:estimator_python_api_gen_compat_v2 failed (Exit 1): bash failed: error executing command 
  (cd /var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/work/estimator-1.13.0-rc0-bazel-base/execroot/org_tensorflow_estimator && \
  exec env - \
    HOME=/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/homedir \
    PATH=/var/tmp/portage/._portage_reinstall_.q28m86j8/bin/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers/xattr:/var/tmp/portage/._portage_reinstall_.q28m86j8/bin/ebuild-helpers:/usr/lib/portage/python3.6/ebuild-helpers:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow_estimator/python/estimator/api/create_tensorflow_estimator.python.estimator_api_2_estimator_python_api_gen_compat_v2  --apidir=bazel-out/k8-opt/genfiles/tensorflow_estimator/python/estimator/api_v2/ --apiname=estimator --apiversion=2  --package=tensorflow_estimator.python.estimator --output_package=tensorflow_estimator.python.estimator.api._v2 bazel-out/k8-opt/genfiles/tensorflow_estimator/python/estimator/api/_v2/__init__.py bazel-out/k8-opt/genfiles/tensorflow_estimator/python/estimator/api/_v2/estimator/__init__.py bazel-out/k8-opt/genfiles/tensorflow_estimator/python/estimator/api/_v2/estimator/experimental/__init__.py bazel-out/k8-opt/genfiles/tensorflow_estimator/python/estimator/api/_v2/estimator/export/__init__.py bazel-out/k8-opt/genfiles/tensorflow_estimator/python/estimator/api/_v2/estimator/inputs/__init__.py')
Execution platform: @bazel_tools//platforms:host_platform
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 14, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /usr/lib64/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZN4grpc15ServerInterface22RegisteredAsyncRequestC2EPS0_PNS_13ServerContextEPNS_8internal29ServerAsyncStreamingInterfaceEPNS_15CompletionQueueEPNS_21ServerCompletionQueueEPvPKc

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 17, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 16, in swig_import_helper
    return importlib.import_module('_pywrap_tensorflow_internal')
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/work/estimator-1.13.0-rc0-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/python/estimator/api/create_tensorflow_estimator.python.estimator_api_2_estimator_python_api_gen_compat_v2.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py", line 26, in <module>
    from tensorflow.python.tools.api.generator import create_python_api
  File "/usr/lib64/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 14, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /usr/lib64/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZN4grpc15ServerInterface22RegisteredAsyncRequestC2EPS0_PNS_13ServerContextEPNS_8internal29ServerAsyncStreamingInterfaceEPNS_15CompletionQueueEPNS_21ServerCompletionQueueEPvPKc

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 17, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/usr/lib64/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 16, in swig_import_helper
    return importlib.import_module('_pywrap_tensorflow_internal')
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Target //tensorflow_estimator/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 55.646s, Critical Path: 4.54s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
 * ERROR: sci-libs/tensorflow-estimator-1.13.0_rc0::gentoo failed (compile phase):
 *   ebazel failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 3266:  Called ebazel 'build' '//tensorflow_estimator/tools/pip_package:build_pip_package'
 *   environment, line 1412:  Called die
 * The specific snippet of code:
 *       "${@}" || die "ebazel failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-estimator-1.13.0_rc0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-estimator-1.13.0_rc0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/work/estimator-1.13.0-rc0'
 * S: '/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/work/estimator-1.13.0-rc0'

>>> Failed to emerge sci-libs/tensorflow-estimator-1.13.0_rc0, Log file:

>>>  '/var/tmp/portage/sci-libs/tensorflow-estimator-1.13.0_rc0/temp/build.log'
Comment 1 Jason Zaman gentoo-dev 2019-03-30 14:20:29 UTC
*** This bug has been marked as a duplicate of bug 678920 ***