使用bazel生成par文件时,无法加载//::abc/requirements.txt的软件包

时间:2019-01-25 04:26:29

标签: bazel

我正在尝试为目标生成标准文件。但是它无法加载WORKSPACE中提到的requirements.txt文件之一中的软件包。我无法弄清楚实际的期望。

这是错误:

ERROR: error loading package '': Encountered error while reading extension file 'requirements.bzl': no such package '@abc_deps//': Traceback (most recent call last):
    File "/tmp/.cache/bazel/_bazel_pog/4dbff95ef3b73130029b349a5743e7e7/external/io_bazel_rules_python/python/pip.bzl", line 26
            repository_ctx.execute(["python", repository_ctx.path(r...("")])
    File "/tmp/.cache/bazel/_bazel_pog/4dbff95ef3b73130029b349a5743e7e7/external/io_bazel_rules_python/python/pip.bzl", line 32, in repository_ctx.execute
            repository_ctx.path(repository_ctx.attr.requirements)

无法为//:abc/requirements.txt加载程序包:找不到。

在centos 7中安装bazel的步骤如下:

    wget https://github.com/bazelbuild/bazel/releases/download/0.17.2/bazel-0.17.2-linux-x86_64 -O ./bazel
    chmod +x ./bazel
    yum -y install gcc
    sudo yum install gcc-c++
    sudo yum install python-devel
    sudo yum install openldap-devel

0 个答案:

没有答案