title: google.protobuf.text_format.ParseError when instantiating a TensorFlow model with Python
body: <p>I'm on Ubuntu 16.04. I have: Python 2.7.12, Python 3.5.2, tensorflow 1.2.0-rc1, protobuf 3.3.0.</p>
  
  <p>I want to follow this <a href="https://gist.github.com/martinwicke/6838c23abdc53e6bcda36ed9f40cff39" rel="noreferrer">tutorial</a>.</p>
  
  <p>But I think my problem can be evidenced more succinctly with this test.py:</p>
  
  <pre><code>import tensorflow as tf
  regressor = tf.contrib.learn.LinearRegressor(feature_columns=[])
  </code></pre>
  
  <p>I cannot instantiate regressor. I get (full Traceback at the end):</p>
  
  <blockquote>
    <p>google.protobuf.text_format.ParseError: 48:12 : Message type "tensorflow.AttrValue" has no field named "5".</p>
  </blockquote>
  
  <p>Same goes in [21] of the tutorial. Same goes with python2 and python3. Same goes if I use LinearClassifier instead of LinearRegressor.</p>
  
  <p>Any idea about what I am doing very wrong?</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "test.py", line 2, in 
        regressor = tf.contrib.learn.LinearRegressor(feature_columns=[])</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/lazy_loader.py",
    line 53, in <strong>getattr</strong>
        module = self._load()</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/lazy_loader.py",
    line 42, in _load
        module = importlib.import_module(self.<strong>name</strong>)</p>
    
    <p>File "/usr/lib/python2.7/importlib/<strong>init</strong>.py", line 37, in
    import_module
        <strong>import</strong>(name)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/<strong>init</strong>.py",
    line 35, in 
        from tensorflow.contrib import image</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/image/<strong>init</strong>.py",
    line 40, in 
        from tensorflow.contrib.image.python.ops.single_image_random_dot_stereograms
    import single_image_random_dot_stereograms</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py",
    line 26, in 
        "_single_image_random_dot_stereograms.so"))</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/util/loader.py",
    line 55, in load_op_library
        ret = load_library.load_op_library(path)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py",
    line 84, in load_op_library
        exec(wrappers, module.<strong>dict</strong>)</p>
    
    <p>File "", line 248, in </p>
    
    <p>File "", line 114, in _InitOpDefLibrary</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 481, in Merge
        descriptor_pool=descriptor_pool)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 535, in MergeLines
        return parser.MergeLines(lines, message)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 568, in MergeLines
        self._ParseOrMerge(lines, message)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 583, in _ParseOrMerge
        self._MergeField(tokenizer, message)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 684, in _MergeField
        merger(tokenizer, message, field)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 773, in _MergeMessageField
        self._MergeField(tokenizer, sub_message)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 684, in _MergeField
        merger(tokenizer, message, field)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 773, in _MergeMessageField
        self._MergeField(tokenizer, sub_message)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 684, in _MergeField
        merger(tokenizer, message, field)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 773, in _MergeMessageField
        self._MergeField(tokenizer, sub_message)</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/google/protobuf/text_format.py",
    line 652, in _MergeField
        (message_descriptor.full_name, name))</p>
  </blockquote>