Gnuwin32からpatchコマンドをインストールパスを通しました。
管理者としてPowerShell/cmdを動かすもpermission deniedが出てしまいます。
おそらくそのせいでエラーが出ていると思います。
どのようにすれば解決できるでしょうか。
OS: windows10
C:\Users\tensorflow\tensorflow>bazel build tensorflow/python/tools:freeze_graph ERROR: C:/users/tensorflow/tensorflow/tensorflow/python/tools/BUILD:49:1: error loading package 'tensorflow/python': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(126) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: /c/Program Files (x86)/GnuWin32/bin/patch: Permission denied and referenced by '//tensorflow/python/tools:freeze_graph' ERROR: C:/users/tensorflow/tensorflow/tensorflow/python/tools/BUILD:49:1: error loading package 'tensorflow/python': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(126) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: /c/Program Files (x86)/GnuWin32/bin/patch: Permission denied and referenced by '//tensorflow/python/tools:freeze_graph' ERROR: C:/users/tensorflow/tensorflow/tensorflow/python/tools/BUILD:49:1: error loading package 'tensorflow/python': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(126) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: /c/Program Files (x86)/GnuWin32/bin/patch: Permission denied and referenced by '//tensorflow/python/tools:freeze_graph' ERROR: C:/users/tensorflow/tensorflow/tensorflow/python/tools/BUILD:49:1: error loading package 'tensorflow/python': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(126) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: /c/Program Files (x86)/GnuWin32/bin/patch: Permission denied and referenced by '//tensorflow/python/tools:freeze_graph' ERROR: C:/users/tensorflow/tensorflow/tensorflow/python/tools/BUILD:49:1: error loading package 'tensorflow/python': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(126) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: /c/Program Files (x86)/GnuWin32/bin/patch: Permission denied and referenced by '//tensorflow/python/tools:freeze_graph' ERROR: Analysis of target '//tensorflow/python/tools:freeze_graph' failed; build aborted: error loading package 'tensorflow/python': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf_archive//': Traceback (most recent call last): File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 84 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 55, in _apply_patch _execute_and_check_ret_code(ctx, cmd) File "C:/users/tensorflow/tensorflow/third_party/repo.bzl", line 36, in _execute_and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(126) when executing 'C:\msys64\usr\bin\bash.exe -c patch -p1 -d C:/users/MYNAME/appdata/local/temp/_bazel_MYNAME/uzmlxi0x/external/protobuf_archive -i C:/users/tensorflow/tensorflow/third_party/protobuf/add_noinlines.patch': Stdout: Stderr: /usr/bin/bash: /c/Program Files (x86)/GnuWin32/bin/patch: Permission denied INFO: Elapsed time: 5.596s FAILED: Build did NOT complete successfully (0 packages loaded) currently loading: tensorflow/core ... (3 packages)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。