models icon indicating copy to clipboard operation
models copied to clipboard

bazel test syntaxnet error

Open vad23klev opened this issue 10 years ago • 15 comments

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.

vad23klev avatar Jul 23 '16 04:07 vad23klev

I have this exact same issue. This is what I see: tests

With this traceback: 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.

BayBenj avatar Jul 25 '16 20:07 BayBenj

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

tfmeads avatar Jul 26 '16 01:07 tfmeads

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

sammoes avatar Aug 01 '16 14:08 sammoes

Same problem here

borisstock avatar Aug 10 '16 20:08 borisstock

It fixed with older bazel and the -pthread patch

sammoes avatar Aug 11 '16 16:08 sammoes

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?

borisstock avatar Aug 12 '16 14:08 borisstock

@sammoes What do you mean? Could you expound upon that?

BayBenj avatar Aug 12 '16 21:08 BayBenj

fixed it by manually changing tensorflow/tensorflow/tools/proto_text/BUILD like this: fayeshine/tensorflow@76f6e0a

sammoes avatar Aug 17 '16 17:08 sammoes

@calberti Can you comment?

girving avatar Feb 06 '17 22:02 girving

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

shivanraptor avatar Mar 15 '17 07:03 shivanraptor

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: image

test.log file shows the following error: image

"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?

AyushiAggarwal avatar Sep 06 '17 20:09 AyushiAggarwal

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

itsmeolivia avatar Feb 07 '18 23:02 itsmeolivia

@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/...

2018-04-26 19 16 50

Fix in #2355 by @GelRa needs modify the TF's file.

lifeiteng avatar Apr 26 '18 11:04 lifeiteng

@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 avatar May 03 '18 00:05 AyushiAggarwal

@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

lifeiteng avatar May 03 '18 01:05 lifeiteng