bytedance / monolith

ByteDance's Recommendation System
Other
878 stars 125 forks source link

Running into errors during build #16

Open binarybeastt opened 3 months ago

binarybeastt commented 3 months ago

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 commented 2 months ago

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.