New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError for graph_util from tensorflow.python.framework #3203
Comments
I'm having the same problem and can't seem to find a solution with the master branch. |
Assigning @danmane since he is on sync rotation next week to see the patch through. |
I suspect the patch went through, though don't know which commit fixed this :( |
The issue persists. |
Ah, graph_util.py was moved from python/client to python/framework after r0.9. You should either check out the code from the r0.9 branch, or use the nightly PIPs linked from github.com/tensorflow/tensorflow to get access to more recent installs that match the latest source code in master. |
Solved my problem by checking out the r0.9 branch. |
Are newer versions deprecated? |
I also encountered the same problem as yours, and I used the following two steps to solve the problem: |
Importing
graph_util
fromtensorflow.python.framework
fails with anImportError
.I discovered this while I was trying to go through the TensorFlow for Poets Codelab, an the the re-training failed.
I can reproduce the same error in my Python shell. I am able to verify that TensorFlow is installed correctly by importing
tensorflow
,tensor_shape
fromtensorflow.python.framework
, andgfile
fromtensorflow.python.platform
(as in the retraining script); but trying to importgraph_util
results in the sameImportError
:I have also posted this as a question on Stack Overflow, and haven't received any answers so far. I am not sure if this is a bug or a configuration problem etc. Feels like a bug, since I can import
tensor_shape
fromtensorflow.python.framework
no problem.Environment info
Operating System: OS X El Capitan (v10.11.5)
Python: v2.7.11 via Homebrew
TensorFlow 0.9.0 installed from binary pip package for Mac OS X, CPU only, Python 2.7 (TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl).
Steps to reproduce
In Python shell:
What have I tried?
graph_util
is there insidetensorflow/python/framework
. It is.The text was updated successfully, but these errors were encountered: