{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4319","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4319/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4319/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4319/events","html_url":"https://github.com/tensorflow/tensorflow/issues/4319","id":176188616,"number":4319,"title":"Error when building tensorflow from source","user":{"login":"shkr","id":5184832,"avatar_url":"https://avatars.githubusercontent.com/u/5184832?v=3","gravatar_id":"","url":"https://api.github.com/users/shkr","html_url":"https://github.com/shkr","followers_url":"https://api.github.com/users/shkr/followers","following_url":"https://api.github.com/users/shkr/following{/other_user}","gists_url":"https://api.github.com/users/shkr/gists{/gist_id}","starred_url":"https://api.github.com/users/shkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shkr/subscriptions","organizations_url":"https://api.github.com/users/shkr/orgs","repos_url":"https://api.github.com/users/shkr/repos","events_url":"https://api.github.com/users/shkr/events{/privacy}","received_events_url":"https://api.github.com/users/shkr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-10T16:37:06Z","updated_at":"2016-09-13T03:55:07Z","closed_at":null,"body":"I am trying to build and install tensorflow from source. However when building with bazel it returns an error stating Extension file 'tensorflow/tensorflow.bzl' has errors.\r\n\r\nHere are the commands that I ran and the logs are included.\r\n\r\n```bash\r\n\r\nmkvirtualenv tensorflow_dev\r\nbrew install bazel swig\r\nworkon tensorflow_dev\r\npip install six numpy wheel ipython\r\nexport TF_DIR=/Users/shashank/Documents/repositories/tensorflow\r\ncd /Users/shashank/Documents/repositories/\r\ngit clone git@github.com:tensorflow/tensorflow.git\r\ncd $TF_DIR && ./configure\r\n\r\n~/Documents/repositories/tensorflow ~/Documents/repositories/tensorflow\r\nPlease specify the location of python. [Default is /Users/shashank/.virtualenvs/tensorflow_dev/bin/python]:\r\nDo you wish to build TensorFlow with Google Cloud Platform support? [y/N]\r\nNo Google Cloud Platform support will be enabled for TensorFlow\r\nFound possible Python library paths:\r\n  /Users/shashank/Documents/py_config/\r\n  /Users/shashank/.virtualenvs/tensorflow_dev/lib/python2.7/site-packages\r\nPlease input the desired Python library path to use.  Default is [/Users/shashank/Documents/py_config/]\r\n\r\n/Users/shashank/Documents/py_config/\r\nDo you wish to build TensorFlow with GPU support? [y/N]\r\nNo GPU support will be enabled for TensorFlow\r\nConfiguration finished\r\n\r\ncd $TF_DIR && bazel build -c opt //tensorflow/tools/pip_package:build_pip_package\r\nERROR: /Users/shashank/Documents/repositories/tensorflow/tensorflow/tensorflow.bzl:568:26: Traceback (most recent call last):\r\n       \tFile \"/Users/shashank/Documents/repositories/tensorflow/tensorflow/tensorflow.bzl\", line 562\r\n       \t\trule(attrs = {\"srcs\": attr.label_list...\"), <3 more arguments>)}, <2 more arguments>)\r\n       \tFile \"/Users/shashank/Documents/repositories/tensorflow/tensorflow/tensorflow.bzl\", line 568, in rule\r\n       \t\tattr.label_list(cfg = \"data\", allow_files = True)\r\nexpected ConfigurationTransition or NoneType for 'cfg' while calling label_list but got string instead: data.\r\nERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Extension file 'tensorflow/tensorflow.bzl' has errors.\r\nINFO: Elapsed time: 0.063s\r\n```\r\n\r\nThanks for your help"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/246566564","html_url":"https://github.com/tensorflow/tensorflow/issues/4319#issuecomment-246566564","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4319","id":246566564,"user":{"login":"szsongyj","id":8281057,"avatar_url":"https://avatars.githubusercontent.com/u/8281057?v=3","gravatar_id":"","url":"https://api.github.com/users/szsongyj","html_url":"https://github.com/szsongyj","followers_url":"https://api.github.com/users/szsongyj/followers","following_url":"https://api.github.com/users/szsongyj/following{/other_user}","gists_url":"https://api.github.com/users/szsongyj/gists{/gist_id}","starred_url":"https://api.github.com/users/szsongyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szsongyj/subscriptions","organizations_url":"https://api.github.com/users/szsongyj/orgs","repos_url":"https://api.github.com/users/szsongyj/repos","events_url":"https://api.github.com/users/szsongyj/events{/privacy}","received_events_url":"https://api.github.com/users/szsongyj/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T03:55:07Z","updated_at":"2016-09-13T03:55:07Z","body":"Hi , My environment is Ubuntu16.04 +gtx1080+CUDA8.0 +CUDNNV5.1+Python2.7+Bazel 0.3.\r\n0\r\nWhen I execute ./configure command in tensorflow-master directory, I experienced the same  error with  @shkr \r\n\r\nHow should this problem be fixed?\r\n\r\nThanks"}}
{"actor":{"display_login":"szsongyj"}}