Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel build python:build_pip_package fails #23

Open
PolarBear292208 opened this issue Jan 29, 2022 · 0 comments
Open

bazel build python:build_pip_package fails #23

PolarBear292208 opened this issue Jan 29, 2022 · 0 comments

Comments

@PolarBear292208
Copy link

The C++ build is now working, but I can't build the python package. It's failing with the following error:

$ bazel build python:build_pip_package
INFO: Repository local_config_tf instantiated at:
  /mnt/c/Users/miles/Development/riegeli/WORKSPACE:124:13: in <toplevel>
Repository rule tf_configure defined at:
  /mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl:206:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_tf':
   Traceback (most recent call last):
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 177, column 46, in _tf_pip_impl
                tf_header_rule = _symlink_genrule_for_dir(
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 147, column 29, in _symlink_genrule_for_dir
                sorted(_read_dir(repository_ctx, src_dir).splitlines()),
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 83, column 31, in _read_dir
                find_result = _execute(
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 50, column 14, in _execute
                _fail("\n".join([
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 20, column 9, in _fail
                fail("{}Python Configuration Error:{} {}\n".format(red, no_color, msg))
Error in fail: Python Configuration Error: Repository command failed
find: ‘’: No such file or directory

ERROR: /mnt/c/Users/miles/Development/riegeli/WORKSPACE:124:13: fetching tf_configure rule //external:local_config_tf: Traceback (most recent call last):
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 177, column 46, in _tf_pip_impl
                tf_header_rule = _symlink_genrule_for_dir(
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 147, column 29, in _symlink_genrule_for_dir
                sorted(_read_dir(repository_ctx, src_dir).splitlines()),
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 83, column 31, in _read_dir
                find_result = _execute(
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 50, column 14, in _execute
                _fail("\n".join([
        File "/mnt/c/Users/miles/Development/riegeli/tf_dependency/tf_configure.bzl", line 20, column 9, in _fail
                fail("{}Python Configuration Error:{} {}\n".format(red, no_color, msg))
Error in fail: Python Configuration Error: Repository command failed
find: ‘’: No such file or directory

ERROR: /mnt/c/Users/miles/Development/riegeli/python/riegeli/tensorflow/BUILD:11:10: //python/riegeli/tensorflow:ops/_riegeli_dataset_ops.so depends on @local_config_tf//:libtensorflow_framework in repository @local_config_tf which failed to fetch. no such package '@local_config_tf//': Python Configuration Error: Repository command failed
find: ‘’: No such file or directory

ERROR: /mnt/c/Users/miles/Development/riegeli/python/riegeli/tensorflow/BUILD:11:10: //python/riegeli/tensorflow:ops/_riegeli_dataset_ops.so depends on @local_config_tf//:tf_header_lib in repository @local_config_tf which failed to fetch. no such package '@local_config_tf//': Python Configuration Error: Repository command failed
find: ‘’: No such file or directory

ERROR: Analysis of target '//python:build_pip_package' failed; build aborted:
INFO: Elapsed time: 0.625s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (12 packages loaded, 269 targets configured)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant