You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the binary with gpu support from pip, but when I import it, I get this error:
import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/init.py", line 4, in
from tensorflow.python import *
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/python/init.py", line 13, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/jxie/anaconda/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 8, in
from google.protobuf import reflection as _reflection
File "/home/jxie/anaconda/lib/python2.7/site-packages/google/protobuf/reflection.py", line 56, in
from google.protobuf.pyext import cpp_message as message_impl
File "/home/jxie/anaconda/lib/python2.7/site-packages/google/protobuf/pyext/cpp_message.py", line 42, in
class GeneratedProtocolMessageType(_message.MessageMeta):
AttributeError: 'module' object has no attribute 'MessageMeta'
Can you check whether the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION environment variable is set in your shell? It looks like it might be set to "cpp", which is causing an issue with the version of protobuf that ships with the binary distribution.
The following should work:
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
python
>>> import tensorflow as tf
>>>
Activity
mrry commentedon Nov 9, 2015
Hi there,
Can you check whether the
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATIONenvironment variable is set in your shell? It looks like it might be set to"cpp", which is causing an issue with the version of protobuf that ships with the binary distribution.The following should work:
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python >>> import tensorflow as tf >>>piiswrong commentedon Nov 9, 2015
That fixed it.
Thanks a lot!
Fixes tensorflow#43 - Switched to use absoulte path when call Saver a…
Merge pull request tensorflow#43 from mrry/newslim
Merge pull request tensorflow#43 from lissyx/merge-r1.4_20171113
PR #24898: [ROCM] fix asan invalid memory access in redzone allocator…
PR #24898: [ROCM] fix asan invalid memory access in redzone allocator…
PR #24898: [ROCM] fix asan invalid memory access in redzone allocator…