{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/334","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/334/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/334/events","html_url":"https://github.com/tensorflow/tensorflow/issues/334","id":118376195,"number":334,"title":"Error: Executing cifar10_train.py on Ubuntu with Cuda","user":{"login":"NexYY","id":15362286,"avatar_url":"https://avatars.githubusercontent.com/u/15362286?v=3","gravatar_id":"","url":"https://api.github.com/users/NexYY","html_url":"https://github.com/NexYY","followers_url":"https://api.github.com/users/NexYY/followers","following_url":"https://api.github.com/users/NexYY/following{/other_user}","gists_url":"https://api.github.com/users/NexYY/gists{/gist_id}","starred_url":"https://api.github.com/users/NexYY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NexYY/subscriptions","organizations_url":"https://api.github.com/users/NexYY/orgs","repos_url":"https://api.github.com/users/NexYY/repos","events_url":"https://api.github.com/users/NexYY/events{/privacy}","received_events_url":"https://api.github.com/users/NexYY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T13:02:24Z","updated_at":"2015-11-23T15:01:27Z","closed_at":null,"body":"I just went through the [cifar10 tensorflow tutorial][1] on my mac. This tutorial aroused my enthusiasm for NN so I set a Ubuntu Server up in order to train in large scale.\r\n\r\nHowever I cant run the cifar10_train.py on my server. I always run into this error:\r\n\r\nPath of the tensorflow source code:\r\n\r\n    ~/python/tensorflow/tensorflow/tensorflow/\r\n\r\nPath of the tensorflow virtualenv installation:\r\n\r\n    ~/tensorflow/\r\n\r\n**Cmd:**\r\n\r\n    source ~/tensorflow/bin/activate #activate virtualenv\r\n    python/tensorflow/tensorflow/tensorflow/models/image/cifar10/cifar10_train.py #the raw source code of tensorflow is in ~/python/tensorflow/tensorflow/tensorflow\r\n\r\n**Error:**\r\n   \r\n    Traceback (most recent call last):\r\n      File \"python/tensorflow/tensorflow/tensorflow/models/image/cifar10/cifar10_train.py\", line 28, in <module>\r\n        import tensorflow.python.platform\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/__init__.py\", line 4, in <module>\r\n        from tensorflow.python import *\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/__init__.py\", line 22, in <module>\r\n        from tensorflow.python.client.client_lib import *\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py\", line 35, in <module>\r\n        from tensorflow.python.client.session import InteractiveSession\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py\", line 11, in <module>\r\n        from tensorflow.python import pywrap_tensorflow as tf_session\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py\", line 28, in <module>\r\n        _pywrap_tensorflow = swig_import_helper()\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py\", line 24, in swig_import_helper\r\n        _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)\r\n\r\n\r\nI installed tensorflow just like on my mac in a virtualenv and activated it correctly before executing the script. \r\nAs by many in other threads suggested I upgraded already six, however I still got the same error.\r\n\r\n**Update 1**\r\nAfter going the issue threads on github/tensorflow through I noticed this is a bug involving cuda. I added these to my path environment:\r\n\r\n    export LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:/usr/local/cuda/lib64\"\r\n    export CUDA_HOME=/usr/local/cuda\r\n\r\nI still run into a error, however it has shortened down to the following:\r\n\r\n    Traceback (most recent call last):\r\n    File \"cifar10_train.py\", line 28, in <module>\r\n    import tensorflow.python.platform\r\n    ImportError: No module named tensorflow.python.platform\r\n\r\n**Update 2** As someone suggested, I install protobuf via pip. The Error has once again change for some weird reason:\r\n\r\n    Traceback (most recent call last):\r\n      File \"cifar10_train.py\", line 28, in <module>\r\n        import tensorflow.python.platform\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/__init__.py\", line 4, in <module>\r\n        from tensorflow.python import *\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/__init__.py\", line 13, in <module>\r\n        from tensorflow.core.framework.graph_pb2 import *\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py\", line 16, in <module>\r\n        from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/core/framework/attr_value_pb2.py\", line 16, in <module>\r\n        from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_pb2.py\", line 16, in <module>\r\n        from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2\r\n      File \"/home/it13095/tensorflow/local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_shape_pb2.py\", line 22, in <module>\r\n        serialized_pb=_b('\\n,tensorflow/core/framework/tensor_shape.proto\\x12\\ntensorflow\\\"d\\n\\x10TensorShapeProto\\x12-\\n\\x03\\x64im\\x18\\x02 \\x03(\\x0b\\x32 .tensorflow.TensorShapeProto.Dim\\x1a!\\n\\x03\\x44im\\x12\\x0c\\n\\x04size\\x18\\x01 \\x01(\\x03\\x12\\x0c\\n\\x04name\\x18\\x02 \\x01(\\tb\\x06proto3')\r\n    TypeError: __init__() got an unexpected keyword argument 'syntax'\r\n\r\n\r\n  [1]: http://www.tensorflow.org/tutorials/deep_cnn/index.md"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/158961087","html_url":"https://github.com/tensorflow/tensorflow/issues/334#issuecomment-158961087","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/334","id":158961087,"user":{"login":"NexYY","id":15362286,"avatar_url":"https://avatars.githubusercontent.com/u/15362286?v=3","gravatar_id":"","url":"https://api.github.com/users/NexYY","html_url":"https://github.com/NexYY","followers_url":"https://api.github.com/users/NexYY/followers","following_url":"https://api.github.com/users/NexYY/following{/other_user}","gists_url":"https://api.github.com/users/NexYY/gists{/gist_id}","starred_url":"https://api.github.com/users/NexYY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NexYY/subscriptions","organizations_url":"https://api.github.com/users/NexYY/orgs","repos_url":"https://api.github.com/users/NexYY/repos","events_url":"https://api.github.com/users/NexYY/events{/privacy}","received_events_url":"https://api.github.com/users/NexYY/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T15:01:27Z","updated_at":"2015-11-23T15:01:27Z","body":"I checked already on that but it seems to be the right package:\r\n    \r\n    pip --version\r\n    pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)\r\n"}}