Skip to content

Instantly share code, notes, and snippets.

@jkachmar
Created May 5, 2020 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkachmar/ae907e8309be302221f1b0abdae06343 to your computer and use it in GitHub Desktop.
Save jkachmar/ae907e8309be302221f1b0abdae06343 to your computer and use it in GitHub Desktop.
bazel + tensorflow + macOS setlocale error
ERROR: An error occurred during the fetch of repository 'local_config_python':
Traceback (most recent call last):
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 344
_create_local_python_repository(repository_ctx)
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 295, in _create_local_python_repository
_get_python_include(repository_ctx, python_bin)
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 241, in _get_python_include
_execute(repository_ctx, [python_bin, "-c",...())"], <2 more arguments>)
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 56, in _execute
_fail("\n".join([error_msg.strip() if ... ""]))
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 27, in _fail
fail(("%sPython Configuration Error:%...)))
Python Configuration Error: Problem getting python include path.
/nix/store/vnaf1dwzmpazabwyxc1r42dsxak3jl7f-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.ISO-8859-1): No such file or directory
Is the Python binary path set up right? (See ./configure or PYTHON_BIN_PATH.) Is distutils installed?
Analyzing: 2 targets (225 packages loaded, 3498 targets configured)
currently loading: tensorflow/core/kernels ... (2 packages)
ERROR: /private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/python_runtime/BUILD:5:1: no such package '@local_config_python//': Traceback (most recent call last):
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 344
_create_local_python_repository(repository_ctx)
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 295, in _create_local_python_repository
_get_python_include(repository_ctx, python_bin)
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 241, in _get_python_include
_execute(repository_ctx, [python_bin, "-c",...())"], <2 more arguments>)
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 56, in _execute
_fail("\n".join([error_msg.strip() if ... ""]))
File "/private/tmp/nix-build-tensorflow-1.15.2.drv-0/source/third_party/py/python_configure.bzl", line 27, in _fail
fail(("%sPython Configuration Error:%...)))
Python Configuration Error: Problem getting python include path.
/nix/store/vnaf1dwzmpazabwyxc1r42dsxak3jl7f-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.ISO-8859-1): No such file or directory
Is the Python binary path set up right? (See ./configure or PYTHON_BIN_PATH.) Is distutils installed?
and referenced by '//third_party/python_runtime:headers'
Analyzing: 2 targets (225 packages loaded, 3502 targets configured)
currently loading: tensorflow/core/kernels ... (2 packages)
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment