Comments (20)
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.
@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.
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.
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.
@ljos Thanks for the pointer, but not the case for me. The default for me is Python 2.7.11.
from models.
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.
@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.
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.
@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.
@ljos Do you want me to post the log files?
from models.
Yes, one of them is probably enough.
from models.
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.
@kskp
Do you use python 2?
Could you try : which python, what is the output?
from models.
sree@avlino:~/anaconda2/bin$ which python
/home/sree/anaconda2/bin/python
And yes, I use Python 2.7.11.
from models.
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.
thks @zszhong you tips help me ,it works
from models.
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.
The errors persist for me on OS X, but haven't had time to pursue further. Will elaborate once I can.
from models.
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.
@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)
- Unable to install tf-models-official HOT 5
- GradCAM for MoViNet HOT 2
- models/research/object_detection/exporter_main_v2.py give me error "ImportError: cannot import name 'builder'" HOT 1
- Trying to Load Keras Model Returns ListIndex Error HOT 4
- several errors (4) on movinet streaming_model_training_and_inference notebook when simply ran through on kaggle and colab HOT 7
- Issue with link to MaskConver implementation HOT 1
- How to add additional class (QR Codes) for coco dataset or any suggested dataset for the class I have mentioned HOT 4
- Keras 3 compatibility! HOT 1
- error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. HOT 6
- A model training problem for plant disease detection HOT 10
- Inconsistent result of coco metrics and eval side-by-side.
- cannot import name 'runtime_version' from 'google.protobuf' HOT 1
- Checking training model is overfit or underfit
- Time to use `build` from `setuptools` instead of `distutils`?
- ImportError: cannot import name 'tensor' from 'tensorflow.python.framework ' error fromTensorflow object detection api model_builder_tf2_test.py
- Train grayscale image for object detection model and expecting 1 channel tensor input, but it still want 3 channels tensor input HOT 1
- Train grayscale image for object detection model and expecting 1 channel tensor input, but it still want 3 channels tensor input
- Remove tensorflow-text dependency in tf-models-official HOT 1
- ImportError Encountered When Running TensorFlow Object Detection Training Script
- Availability of the pretrained AutosegEdgeTPU-XS backbone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from models.