GithubHelp home page GithubHelp logo

Comments (20)

bug-fixed avatar bug-fixed commented on May 5, 2024 2

The solution in my case (RedHat 6.5 64bit, python 2.7, gcc-4.8.4, java 1.8) is:
bazel-0.2.2 test --linkopt=-lrt syntaxnet/... util/utf8/...

from models.

ljos avatar ljos commented on May 5, 2024 1

@pangeran-bottor Try to start clean with a new anaconda environment and set the configuration to that python. I think there is something wrong with your environment.

from models.

ricardojmendez avatar ricardojmendez commented on May 5, 2024

I'm on OSX 10.11.5, java 1.8.0_91, bazel 0.2.2. Same issue as the one reported by @anbo724, all the same six tests fail.

bazel-0.2.2 test --linkopt=-lrt syntaxnet/... util/utf8/...

Trying this on OSX, instead of the --linkopt=-headerpad_max_install_names from the readme, actually causes all tests to return NO STATUS (1 failed to build and 11 were skipped).

from models.

ljos avatar ljos commented on May 5, 2024

I had the same error; the problem was that I was using python 3. The project only works on python 2. See #110.

from models.

ricardojmendez avatar ricardojmendez commented on May 5, 2024

@ljos Thanks for the pointer, but not the case for me. The default for me is Python 2.7.11.

from models.

ljos avatar ljos commented on May 5, 2024

Did you read what it says in the test.log files? There might be a hint there. E.g. /home/shaoshu/.cache/bazel/_bazel_shaoshu/54e2b7109927b4e6e7831a50befed0b7/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/beam_reader_ops_test/test.log

from models.

pangeran-bottor avatar pangeran-bottor commented on May 5, 2024

@ljos
this is mine (/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/testlogs/syntaxnet/graph_builder_test/) :

exec ${PAGER:-/usr/bin/less} "$0" || exit 1

Traceback (most recent call last):
File "/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/syntaxnet/graph_builder_test.py", line 22, in
import tensorflow as tf
File "/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/init.py", line 23, in
from tensorflow.python import *
File "/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/python/init.py", line 45, in
from tensorflow.python import pywrap_tensorflow
File "/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/python/pywrap_tensorflow.py", line 28, in
_pywrap_tensorflow = swig_import_helper()
File "/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
File "//anaconda/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "//anaconda/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: dlopen(/private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/python/_pywrap_tensorflow.so, 10): Symbol not found: _PyCObject_Type
Referenced from: /private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/python/_pywrap_tensorflow.so
Expected in: flat namespace
in /private/var/tmp/_bazel_user/d9234d1cba6e07cbf26abab4560c40f4/syntaxnet/bazel-out/local-opt/bin/syntaxnet/graph_builder_test.runfiles/external/tf/tensorflow/python/_pywrap_tensorflow.so

Same error for beam_reader_ops_test, lexicon_builder_test, etc

Also, I already set configuration (./configure command) to python2.7, I have no idea why File "//anaconda/lib/python3.5/imp.py".. occurs

from models.

kskp avatar kskp commented on May 5, 2024

I have the same issue. Exactly the same tests failed. My environment:
Ubuntu 15.10, Python 2.7.11, JDK 8, Bazel 0.2.2b, gcc 5.2.1.

I read on stack overflow to increase the RAM size. But i already have 50GB of RAM and I dont think that is a solution. Any solution? Should I downgrade gcc to 4,8?

Because the error said the specified size is too big, I tried the command:
bazel test syntaxnet/... util/utf8/... --local_resources 2048,2.0,1.0 --jobs 1
to limit the number of parallel jobs and limit the resources used but nothing works.

from models.

ljos avatar ljos commented on May 5, 2024

@kskp If you post one of the error files it would be easier to debug. I would think that there is something wrong with your environment as well though.

from models.

kskp avatar kskp commented on May 5, 2024

@ljos Do you want me to post the log files?

from models.

ljos avatar ljos commented on May 5, 2024

Yes, one of them is probably enough.

from models.

kskp avatar kskp commented on May 5, 2024

@ljos

exec ${PAGER:-/usr/bin/less} "$0" || exit 1

external/bazel_tools/tools/test/test-setup.sh: syntaxnet/text_formats_test: /usr/bin/python: bad interpreter: No such file or directory

This is what is there in the log file. What is the right interpreter? If it is python, I did update the PATH variable and also mentioned the right python location during the configure step.

from models.

pangeran-bottor avatar pangeran-bottor commented on May 5, 2024

@kskp
Do you use python 2?
Could you try : which python, what is the output?

from models.

kskp avatar kskp commented on May 5, 2024

@pangeran-bottor

sree@avlino:~/anaconda2/bin$ which python
/home/sree/anaconda2/bin/python

And yes, I use Python 2.7.11.

from models.

kskp avatar kskp commented on May 5, 2024

I created a softlink and it worked partially. I now have 11 tests passed and 1 test failed locally. The log file says:

BINDIR=/home/melvyn/.cache/bazel/_bazel_melvyn/74dc22424f44a6abb8ec23cb05763d3b/syntaxnet/bazel-out/local-opt/bin/syntaxnet/parser_trainer_test.runfiles/syntaxnet

  • CONTEXT=/home/melvyn/.cache/bazel/_bazel_melvyn/74dc22424f44a6abb8ec23cb05763d3b/syntaxnet/bazel-out/local-opt/bin/syntaxnet/parser_trainer_test.runfiles/syntaxnet/testdata/context.pbtxt
  • TMP_DIR=/tmp/syntaxnet-output
  • mkdir -p /tmp/syntaxnet-output
  • sed s=SRCDIR=/home/melvyn/.cache/bazel/_bazel_melvyn/74dc22424f44a6abb8ec23cb05763d3b/syntaxnet/bazel-out/local-opt/bin/syntaxnet/parser_trainer_test.runfiles= /home/melvyn/.cache/bazel/_bazel_melvyn/74dc22424f44a6abb8ec23cb05763d3b/syntaxnet/bazel-out/local-opt/bin/syntaxnet/parser_trainer_test.runfiles/syntaxnet/testdata/context.pbtxt
  • sed s=OUTPATH=/tmp/syntaxnet-output=
    syntaxnet/parser_trainer_test: line 31: /tmp/syntaxnet-output/context: Permission denied

from models.

dan6886 avatar dan6886 commented on May 5, 2024

thks @zszhong you tips help me ,it works

from models.

calberti avatar calberti commented on May 5, 2024

A few solutions seem to have been posted for this issue. Please let me know if you're hitting one of these problems when running syntaxnet tests.

from models.

ricardojmendez avatar ricardojmendez commented on May 5, 2024

The errors persist for me on OS X, but haven't had time to pursue further. Will elaborate once I can.

from models.

genaforvena avatar genaforvena commented on May 5, 2024

I faced the same issue on OS X.
It seems that it was caused by invalid python 2 pre-installed on OS X. The problem vanished after performing
brew install python

from models.

ricardojmendez avatar ricardojmendez commented on May 5, 2024

@genaforvena Thanks for the tip. I'm using Python 2.7.11 from homebrew myself, and looking on /Library/Frameworks/ I don't see any residue from the OS X-provided version, but that gives me something to pursue.

from models.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.