Reputation: 53
As I am having an error "AttributeError: 'module' object has no attribute 'GRUCell'" when tried to run transate.py i removed tensorflow from my system and started installing it again from sources. I installed bazel and configured the installation. After "Build the pip package", I am getting the following error.
Can anyone please help me in resolving these errors
Upvotes: 1
Views: 821
Reputation: 4271
The error says "cannot stat 'bazel-bin/.../build_pip_package.runfiles/tensorflow'" meaning your runfiles tree doesn't exist or is unreadable. This indicates something went wrong during the build, particularly the runfiles tree creation step. The "runfiles tree" is a directory tree that contains the files that the binary you built needs at runtime, and the root of it is the "bazel-bin/.../build_pip_package.runfiles" directory.
This suspicion of mine is also backed up by the hanging runfiles tree creation actions in your output (on the top of the image), which is supposed to create this directory structure, and should definitely not take 11 hours, it should complete within a few seconds to a few minutes. (If any action hangs for more than a few minutes that's already a sign something's likely wrong.)
Some questions:
bazel --output_user_root=/usr/local/foo build <whatever>
? You can use any other path that's on the local filesystem. What i'm poking at is, whether your output root was on NFS or a filesystem that got unmounted mid-build.Upvotes: 1