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

Running into errors during build #16

Open
binarybeastt opened this issue Jul 27, 2024 · 1 comment
Open

Running into errors during build #16

binarybeastt opened this issue Jul 27, 2024 · 1 comment

Comments

@binarybeastt
Copy link

binarybeastt commented Jul 27, 2024

Dear Author,
I'm running into an error while running bazel run //monolith/native_training:demo --output_filter=IGNORE_LOGS. The following log describes the error.

DEBUG: Repository hedron_compile_commands instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule http_archive defined at:
  /home/binaryy/.cache/bazel/_bazel_binaryy/489df62f1a1518af9597d965b6d6399e/external/bazel_tools/tools/build_defs/repo/http.bzl:336:16: in <toplevel>
ERROR: /home/binaryy/.cache/bazel/_bazel_binaryy/489df62f1a1518af9597d965b6d6399e/external/pip_deps/pypi__typing_inspect/BUILD:5:1: no such package '@pip_deps//pypi__typing': BUILD file not found in directory 'pypi__typing' of external repository @pip_deps. Add a BUILD file to a directory to mark it as a package. and referenced by '@pip_deps//pypi__typing_inspect:pypi__typing_inspect'
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1556410077 -0400"
DEBUG: Repository io_bazel_rules_docker instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule git_repository defined at:
  /home/binaryy/.cache/bazel/_bazel_binaryy/489df62f1a1518af9597d965b6d6399e/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18: in <toplevel>
ERROR: Analysis of target '//monolith/native_training:demo' failed; build aborted: no such package '@pip_deps//pypi__typing': BUILD file not found in directory 'pypi__typing' of external repository @pip_deps. Add a BUILD file to a directory to mark it as a package.
INFO: Elapsed time: 0.500s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (2 packages loaded, 0 targets configured)
FAILED: Build did NOT complete successfully (2 packages loaded, 0 targets configured)```
@jEeVaf
Copy link

jEeVaf commented Aug 9, 2024

1.Clear Bazel Cache:
bazel clean --expunge
Re-run Bazel with Debug Information:
bazel build //monolith/native_training:demo --verbose_failures
Verify the BUILD File:
filegroup(
name = "pypi__typing",
srcs = glob(["**"]),
)
Check the External Dependency:

Ensure that the external dependency pip_deps is correctly defined in your WORKSPACE file. It should correctly point to the repository where the pypi__typing package is supposed to be.

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

2 participants