2017-01-03 5 views
0

syntaxnet을 사용하려고했는데 대부분의 프로세스가 끝났습니다. 오류 발생시 bazel 버전을 0.43으로 업그레이드하십시오 (Ubuntu 16.04 Ver, Anaconda python 2.7). 그러나 ./configure 부분에 문제가 있습니다. 나는 tensorflow github을 통해 공식 교육을 읽고 있습니다.syntaxnet ./configure error

git clone --recursive https://github.com/tensorflow/models.git 
cd models/syntaxnet/tensorflow 
**./configure** 
cd .. 
bazel test syntaxnet/... util/utf8/... 
# On Mac, run the following: 
bazel test --linkopt=-headerpad_max_install_names \ 
    syntaxnet/... util/utf8/... 

다음 로그는 내 컴퓨터에서 무슨 일이 일어나고 있는지 이해하는 데 도움이 될 것입니다. 조언 주셔서 감사합니다

Please specify the location of python. [Default is /home/ryan/anaconda2/bin/python]: 
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] n 
No Google Cloud Platform support will be enabled for TensorFlow 
Do you wish to build TensorFlow with Hadoop File System support? [y/N] n 
No Hadoop File System support will be enabled for TensorFlow 
Found possible Python library paths: 
    /home/ryan 
    /home/ryan/pynaoqi-python2.7 
    /home/ryan/anaconda2/lib/python2.7/site-packages 
Please input the desired Python library path to use. Default is [/home/ryan] 
/home/ryan/anaconda2/lib/python2.7/site-packages 
Do you wish to build TensorFlow with GPU support? [y/N] y 
GPU support will be enabled for TensorFlow 
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0 
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: 
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 5.0 
Please specify the location where cuDNN 5.0 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: 
Invalid path to cuDNN toolkit. Neither of the following two files can be found: 
/usr/local/cuda-8.0/lib64/libcudnn.so.5.0 
/usr/local/cuda-8.0/libcudnn.so.5.0 
.5.0 
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 
Please specify the location where cuDNN library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: 
libcudnn.so resolves to libcudnn.5 
Please specify a list of comma-separated Cuda compute capabilities you want to build with. 
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. 
Please note that each additional compute capability significantly increases your build time and binary size. 
[Default is: "3.5,5.2"]: 
INFO: Options provided by the client: 
    Inherited 'common' options: --isatty=1 --terminal_columns=120 
INFO: Reading options for 'clean' from /home/ryan/git_ryan/models/syntaxnet/tensorflow/tools/bazel.rc: 
    Inherited 'build' options: --force_python=py2 --host_force_python=py2 --python2_path=/home/ryan/anaconda2/bin/python --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define PYTHON_BIN_PATH=/home/ryan/anaconda2/bin/python --spawn_strategy=standalone --genrule_strategy=standalone 
**INFO: Reading options for 'clean' from /etc/bazel.bazelrc: 
    Inherited 'build' options: --action_env=PATH --action_env=LD_LIBRARY_PATH --action_env=TMPDIR --test_env=PATH --test_env=LD_LIBRARY_PATH 
Unrecognized option: --action_env=PATH 
ERROR: /home/ryan/git_ryan/models/syntaxnet/tensorflow/tensorflow/tensorflow.bzl:568:26: Traceback (most recent call last): 
    File "/home/ryan/git_ryan/models/syntaxnet/tensorflow/tensorflow/tensorflow.bzl", line 562 
     rule(attrs = {"srcs": attr.label_list..."), <3 more arguments>)}, <2 more arguments>) 
    File "/home/ryan/git_ryan/models/syntaxnet/tensorflow/tensorflow/tensorflow.bzl", line 568, in rule 
     attr.label_list(cfg = "data", allow_files = True) 
expected ConfigurationTransition or NoneType for 'cfg' while calling label_list but got string instead: data. 
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Extension file 'tensorflow/tensorflow.bzl' has errors. 
Configuration finished** 
+0

이 문제를 해결하기 위해 일부 오래된 [github issues] (https://github.com/tensorflow/tensorflow/issues/4319)가 있습니다. 당신은 이미 그것들을 보았을 것입니다. 대부분의 사용자는 이미 수행 한 bazel을 업그레이드하여이 문제를 해결했습니다. 위생을 위해 여기에 "bazel version"또는 "bazel"의 출력을 게시 할 수 있습니까? 버전이 좋다면 [github] (https://github.com/tensorflow/tensorflow/issues) 문제를 제출할 수 있다면 좋을 것입니다. –

답변

0

나는 bazel의 버전이 Syntaxnet에 비해 너무 높다고 생각합니다. 당신은 bazel-0.3.1을 시도 할 수 있습니다.