bazel-0.8.1
protobuf-3.3.0
python-3.6.2 (PATH설정 필요)
**그놈의 버전....ㅠㅠ
최신으로 설치했다가 오류나서 구버전으로 다시 설치
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/docs_src/install/install_sources.md
버전 궁합ㅋㅋ
(참고)
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1
에 cuDNN 7.0.5 다운받아서 넣어야 합니다.
cygwin같은데서
git clone --recursive https://github.com/tensorflow/models
cd models/research/syntaxnet/tensorflow
./configure
cd ..
bazel test syntaxnet/...
ERROR: I:/tensorflow/models/research/syntaxnet/syntaxnet/BUILD:33:1: Traceback (most recent call last):
File "I:/tensorflow/models/research/syntaxnet/syntaxnet/BUILD", line 33
tf_proto_library_py(name = "sentence_py_pb2", srcs = [..."])
File "I:/tensorflow/models/research/syntaxnet/syntaxnet/syntaxnet.bzl", line 53, in tf_proto_library_py
py_proto_library(name = name, srcs = srcs, srcs_versi...", <5 more arguments>)
File "C:/users/user/appdata/local/temp/_bazel_user/uhibxgtp/external/protobuf_archive/protobuf.bzl", line 374, in py_proto_library
py_libs += [default_runtime]
trying to mutate a frozen object
이런 오류가 난다면...
https://stackoverflow.com/questions/47688252/tensorflow-trying-to-mutate-a-frozen-object-bazel
답변참고
The patch is to change these lines:
373 if default_runtime and not default_runtime in py_libs + deps:
374 py_libs += [default_runtime]
375
376 native.py_library(
377 name=name,
378 srcs=outs+py_extra_srcs,
379 deps=py_libs+deps,
380 imports=includes,
381 **kargs)
to these:
373 if default_runtime and not default_runtime in py_libs + deps:
374 py_libs2 = py_libs + [default_runtime]
375 else:
376 py_libs2 = py_libs
377
378 native.py_library(
379 name=name,
380 srcs=outs+py_extra_srcs,
381 deps=py_libs2+deps,
382 imports=includes,
383 **kargs)
Disclaimer: this is a "blind" fix; I have not tried whether it works.
pip uninstall protobuf
pip install protobuf-3.3.0
C:\Users\(사용자이름)\AppData\Local\Temp\_bazel_(사용자이름) 삭제
다시 ./configure 부터 실행
export BAZEL_VS="C:/Program Files (x86)/Microsoft Visual Studio 14.0"
댓글