Closed apanimesh061 closed 8 years ago
Looks like you have not built the parser. Run bazel test syntaxnet/... util/...
Hi Animesh,
As smaransmarty@ says, you need to build SyntaxNet. Running bazel test syntaxnet/... util/...
will build and test your installation.
Having an existing installation of TensorFlow is not sufficient because SyntaxNet uses custom ops that need to be compiled into the binary.
Cheers, Daniel
@andorardo
I tried running bazel test syntaxnet
but I got the following errors:
$:~/models/syntaxnet$ bazel test syntaxnet
WARNING: /home/animesh/.cache/bazel/_bazel_animesh/88f0a91930b9aa6ad1f3500a82c97709/external/tf/WORKSPACE:1: Workspace name in /home/animesh/.cache/bazel/_bazel_animesh/88f0a91930b9aa6ad1f3500a82c97709/external/tf/WORKSPACE (@__main__) does not match the name given in the repository's definition (@tf); this will cause a build error in future versions.
ERROR: no such target '//syntaxnet:syntaxnet': target 'syntaxnet' not declared in package 'syntaxnet' defined by /home/animesh/models/syntaxnet/syntaxnet/BUILD.
INFO: Elapsed time: 0.394s
ERROR: Couldn't start the build. Unable to run tests.
What is going wrong here?
you have to give the right target which are the .bzl file. The command is as below bazel test syntaxnet/... util/...
When I run"bazel test syntaxnet/... util/..." command I get
path/.cache/bazel/_bazel_manoj-4563/136e4333e8442973ccfb66ff95d0bdd3/external/org_tensorflow/tensorflow/python/BUILD:1748:1: in cc_library rule @org_tensorflow//tensorflow/python:tf_session_helper: non-test target '@org_tensorflow//tensorflow/python:tf_session_helper' depends on testonly target '@org_tensorflow//tensorflow/python:construction_fails_op' and doesn't have testonly attribute set.
Analysis of target '//syntaxnet:conll2tree' failed; build aborted.
What to do????
What will happen if I use Bazel 0.4.0??
Using an earlier version of bazel (0.3.2) "fixes" this for me
I already had
tensorflow
installed on my system.I cloned the whole models repo from github and I ran the command the following ways:
Why am I getting those errors? Do I need to reinstall
tensorflow
to usemodels
?