bazel test syntaxnet error
on bazel test --linkopt=-lrt syntaxnet/... util/utf8/...
have output
`//syntaxnet:beam_reader_ops_test FAILED in 0.4s
/home/vadim/.cache/bazel/_bazel_vadim/7025f6cc275cf60feb7b64b43813fcae/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/beam_reader_ops_test/test.log
//syntaxnet:graph_builder_test FAILED in 0.4s
/home/vadim/.cache/bazel/_bazel_vadim/7025f6cc275cf60feb7b64b43813fcae/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/graph_builder_test/test.log
//syntaxnet:lexicon_builder_test FAILED in 0.5s
/home/vadim/.cache/bazel/_bazel_vadim/7025f6cc275cf60feb7b64b43813fcae/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/lexicon_builder_test/test.log
//syntaxnet:parser_trainer_test FAILED in 0.5s
/home/vadim/.cache/bazel/_bazel_vadim/7025f6cc275cf60feb7b64b43813fcae/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/parser_trainer_test/test.log
//syntaxnet:reader_ops_test FAILED in 0.5s
/home/vadim/.cache/bazel/_bazel_vadim/7025f6cc275cf60feb7b64b43813fcae/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/reader_ops_test/test.log
//syntaxnet:text_formats_test FAILED in 0.4s
/home/vadim/.cache/bazel/_bazel_vadim/7025f6cc275cf60feb7b64b43813fcae/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/text_formats_test/test.log
Executed 6 out of 12 tests: 6 tests pass and 6 fail locally.
in log I see two strange lines:
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
...
ImportError: No module named '_pywrap_tensorflow'
`
use ArchLinux, bazel 0.2.2b, tensorflow configure with /usr/bin/python2.
I have this exact same issue. This is what I see:

With this traceback:

Any suggestions on what we're doing wrong? These are my specs: I am using Mac OS X. My Python version is 2.7.11. I am using bazel version 0.2.2b. Numpy, asciitree, protobuf 3.0.0b2, and swig are all installed.
I have this exact problem now too. Running Linux Mint (based on Ubuntu, so it should work) All dependencies installed, bazel 0.2.2b, python 2.7.11
bazel test syntaxnet/... util/utf8/... shows a very large number of Info / Warnings gcc version 5.4.0, cudnn 5, cuda 8 fresh bazel install (actually crashed my machine just now) it starts or runs 10 compiler instances at some point, it seems bazel_tst_syntaxnet.txt possibly caused by ~$bazel version Build label: 0.3.1
Same problem here
It fixed with older bazel and the -pthread patch
Ok, I see now that I did not have the same error. In my case the python lib "mock" was missing. This can be resolved with "pip install mock". mock is a new dependency. Maybe that should be added to the README?
@sammoes What do you mean? Could you expound upon that?
fixed it by manually changing tensorflow/tensorflow/tools/proto_text/BUILD like this: fayeshine/tensorflow@76f6e0a
@calberti Can you comment?
Exact same issue with Mac OS X Sierra 10.12.3
Bazel version: 0.4.4-homebrew
Same error as @borisstock as well. After installed mock and asciitree via pip install mock and pip install asciitree, the demo.sh still has ImportError: no module named mock (same for asciitree as well).
TensorFlow version: 1.0.1
Failing tests when running bazel test --linkopt=-lrt syntaxnet/... util/utf8/...
Executed 25 out of 25 tests: 19 tests pass and 6 fail locally
Screenshot of tests that failed is given below:

test.log file shows the following error:

"F external/org_tensorflow/tensorflow/core/framework/variant_op_registry.cc:79] Check failed: existing == nullptr (0x10a0f30 vs. nullptr)Unary VariantDecodeFn for type_name: tensorflow::Tensor already registered Aborted"
Details of my configuration on CentOS:
- gcc 6.3.1
- glibc 2.12
- Bazel 0.5.4
- python27
Also, note that I already have Tensorflow 1.2.1 installed. Is this a known issue? Also, ideas on resolving it?
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!
@AyushiAggarwal Do you have fixed Check failed: existing == nullptr (0x18b9ea8 vs. nullptr)Unary VariantDecodeFn for type_name: tensorflow::Tensor already registered?
I build on TF1.6 with GPU, meet the same error
bazel test -c opt --config=cuda --define using_cuda_nvcc=true --define using_gcudacc=true --incompatible_load_argument_is_label=false linnet/...

Fix in #2355 by @GelRa needs modify the TF's file.
@lifeiteng My error was fixed when I pointed tensorflow copy to this commit and made changes suggested by @charlesjohannisen in #2355.
Does the documentation in fix #2355 help?
P.S. - Tried to rebuild SyntaxNet after repo restructuring; did not work.
@AyushiAggarwal Just Fix this, by changing syntaxnet/BUILD (base on TensorFlow 1.6)
"@com_googlesource_code_re2//:re2",
"@protobuf_archive//:protobuf",
"@org_tensorflow//third_party/eigen3",
- ] + select({
- "//conditions:default": [
- "@org_tensorflow//tensorflow/core:framework",
- "@org_tensorflow//tensorflow/core:lib",
- ],
- "@org_tensorflow//tensorflow:darwin": [
- "@org_tensorflow//tensorflow/core:framework_headers_lib",
- ],
- }),
+ "@org_tensorflow//tensorflow/core:framework_headers_lib",
+ ],
also a TensorFlow fix