Skip to content

Build issue for adversarial_text #2784

@abuhman

Description

@abuhman

System information

  • What is the top-level directory of the model you are using:
    /models/research/adversarial_text

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
    I do not have custom code and am trying to run the sequence of commands from adversarial_text's readme.

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    Linux Ubuntu 14.04

  • TensorFlow installed from (source or binary):
    Installed using virtualenv for CPU as described here: https://www.tensorflow.org/install/install_linux . I have the tensorflow/models source also and have run bazel build on adversarial_text and adversarial_text/data

  • TensorFlow version (use command below):
    ('v1.3.0-rc2-20-g0787eee', '1.3.0')

  • Bazel version (if compiling from source):
    Build label: 0.7.0

  • CUDA/cuDNN version:
    Not installed

  • GPU model and memory:
    Installed TensorFlow for CPU only, not with GPU support

  • Exact command to reproduce:
    bazel run data:gen_vocab --
    --output_dir=$IMDB_DATA_DIR
    --dataset=imdb
    --imdb_input_dir=/tmp/aclImdb
    --lowercase=False

Command is from the README here: https://github.com/tensorflow/models/tree/master/research/adversarial_text

I also ran the earlier commands in sequence listed in the README prior to running that command.

Describe the problem

Bug:
I am trying to run the code of models/adversarial-text using the steps described in the README here https://github.com/tensorflow/models/tree/master/research/adversarial_text. I have not made changes to any of the code or the dataset. When I tried to run the first bazel command, I got this error:

ERROR: no such package 'data': BUILD file not found on package path.
____Elapsed time: 1.370s
ERROR: Build failed. Not running target.

I have searched Stack Overflow and tried suggested solutions to similar issues, but none have worked. I found this question that was very similar to the one I am asking: https://stackoverflow.com/questions/45090345/bazel-build-package-not-found . I contacted the person who had asked the Stack Overflow question, and he had not found a way to resolve the issue. He told me that also he has had a few other people contact him about the same issue.

Source code / logs

Running this command:
bazel run data:gen_vocab --
--output_dir=$IMDB_DATA_DIR
--dataset=imdb
--imdb_input_dir=/tmp/aclImdb
--lowercase=False

Produced this error:
ERROR: no such package 'data': BUILD file not found on package path.
____Elapsed time: 1.370s
ERROR: Build failed. Not running target.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions