Git Product home page Git Product logo

Comments (5)

achoum avatar achoum commented on May 4, 2024

http_archive is a Bazel macro that should be imported before being used. Add the following line in your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

More details at https://docs.bazel.build/versions/main/repo/http.html.

from yggdrasil-decision-forests.

JNSFilipe avatar JNSFilipe commented on May 4, 2024

I did manage to fix that, thanks. Furthermore, I think the link in urls is wrong. I changed the WORKSPACE file to:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "ydf",
    strip_prefix = "yggdrasil-decision-forests-0.1.3",
    urls = ["https://github.com/google/yggdrasil-decision-forests/archive/refs/tags/0.1.3.zip"],
)

load("@ydf//yggdrasil_decision_forests:library.bzl", ydf_load_deps = "load_dependencies")
ydf_load_deps(repo_name = "@ydf", exclude_repo=[])

Nonetheless, I still do not manage to get it to work. As far as I can understand from the error message below, the dependencies of ydf are not being pulled, despite being included by the last two lines of the WORKSPACE file:

Unable to find package for @bazel_skylib//lib:versions.bzl: The repository '@bazel_skylib' could not be resolved

from yggdrasil-decision-forests.

achoum avatar achoum commented on May 4, 2024

I'll create a standalone repo to demonstrate it.
This will be easier this way :).

I'll update the issue when available.

from yggdrasil-decision-forests.

JNSFilipe avatar JNSFilipe commented on May 4, 2024

Thank you very much, I appreciate it!

from yggdrasil-decision-forests.

achoum avatar achoum commented on May 4, 2024

Hi,

The directory yggdrasil-decision-forests/tree/main/examples/standalone now contains a standalone example. The compilation requirements and trouble shooting instructions are the same as for the library.

from yggdrasil-decision-forests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.