{"action":"created","issue":{"url":"https://api.github.com/repos/fomorians/distracted-drivers-keras/issues/2","repository_url":"https://api.github.com/repos/fomorians/distracted-drivers-keras","labels_url":"https://api.github.com/repos/fomorians/distracted-drivers-keras/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fomorians/distracted-drivers-keras/issues/2/comments","events_url":"https://api.github.com/repos/fomorians/distracted-drivers-keras/issues/2/events","html_url":"https://github.com/fomorians/distracted-drivers-keras/issues/2","id":149105759,"number":2,"title":"python main.py errors.","user":{"login":"jiapei100","id":154013,"avatar_url":"https://avatars.githubusercontent.com/u/154013?v=3","gravatar_id":"","url":"https://api.github.com/users/jiapei100","html_url":"https://github.com/jiapei100","followers_url":"https://api.github.com/users/jiapei100/followers","following_url":"https://api.github.com/users/jiapei100/following{/other_user}","gists_url":"https://api.github.com/users/jiapei100/gists{/gist_id}","starred_url":"https://api.github.com/users/jiapei100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiapei100/subscriptions","organizations_url":"https://api.github.com/users/jiapei100/orgs","repos_url":"https://api.github.com/users/jiapei100/repos","events_url":"https://api.github.com/users/jiapei100/events{/privacy}","received_events_url":"https://api.github.com/users/jiapei100/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-18T10:07:04Z","updated_at":"2016-04-20T00:56:30Z","closed_at":null,"body":"\r\nTwo issues:\r\n\r\n1) Why it is defaulty select Theano as the backend? How can I modify main.py to select TensorFlow as the backend?\r\n\r\n2) python main.py gives me the following error message\r\n```\r\n.../distracted-drivers-keras$ python main.py \r\nUsing Theano backend.\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 9, in <module>\r\n    from keras.models import Sequential\r\n  File \"/usr/local/lib/python3.5/dist-packages/Keras-1.0.1-py3.5.egg/keras/models.py\", line 5, in <module>\r\n    from . import backend as K\r\n  File \"/usr/local/lib/python3.5/dist-packages/Keras-1.0.1-py3.5.egg/keras/backend/__init__.py\", line 51, in <module>\r\n    from .theano_backend import *\r\n  File \"/usr/local/lib/python3.5/dist-packages/Keras-1.0.1-py3.5.egg/keras/backend/theano_backend.py\", line 1, in <module>\r\n    import theano\r\n  File \"/usr/local/lib/python3.5/dist-packages/Theano-0.8.0-py3.5.egg/theano/__init__.py\", line 64, in <module>\r\n    from theano.compile import (\r\n  File \"/usr/local/lib/python3.5/dist-packages/Theano-0.8.0-py3.5.egg/theano/compile/__init__.py\", line 10, in <module>\r\n    from theano.compile.function_module import *\r\n  File \"/usr/local/lib/python3.5/dist-packages/Theano-0.8.0-py3.5.egg/theano/compile/function_module.py\", line 22, in <module>\r\n    import theano.compile.mode\r\n  File \"/usr/local/lib/python3.5/dist-packages/Theano-0.8.0-py3.5.egg/theano/compile/mode.py\", line 77, in <module>\r\n    OPT_NONE = gof.Query(include=[], exclude=exclude)\r\n  File \"/usr/local/lib/python3.5/dist-packages/Theano-0.8.0-py3.5.egg/theano/gof/optdb.py\", line 173, in __init__\r\n    self.include = OrderedSet(include)\r\n  File \"/usr/local/lib/python3.5/dist-packages/Theano-0.8.0-py3.5.egg/theano/misc/ordered_set.py\", line 91, in __init__\r\n    root.prev = root.__next__ = weakref.ref(root)\r\nAttributeError: 'Link' object has no attribute '__next__'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/fomorians/distracted-drivers-keras/issues/comments/212188832","html_url":"https://github.com/fomorians/distracted-drivers-keras/issues/2#issuecomment-212188832","issue_url":"https://api.github.com/repos/fomorians/distracted-drivers-keras/issues/2","id":212188832,"user":{"login":"jiapei100","id":154013,"avatar_url":"https://avatars.githubusercontent.com/u/154013?v=3","gravatar_id":"","url":"https://api.github.com/users/jiapei100","html_url":"https://github.com/jiapei100","followers_url":"https://api.github.com/users/jiapei100/followers","following_url":"https://api.github.com/users/jiapei100/following{/other_user}","gists_url":"https://api.github.com/users/jiapei100/gists{/gist_id}","starred_url":"https://api.github.com/users/jiapei100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiapei100/subscriptions","organizations_url":"https://api.github.com/users/jiapei100/orgs","repos_url":"https://api.github.com/users/jiapei100/repos","events_url":"https://api.github.com/users/jiapei100/events{/privacy}","received_events_url":"https://api.github.com/users/jiapei100/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T00:56:30Z","updated_at":"2016-04-20T00:56:30Z","body":"\r\nYes, Great gauss256. Thank you very much....\r\n\r\n1) However, even if I stick to the backend theano, I should be able to train a model, instead of getting the above error messages????? Because I do have both tensorflow and theano installed....\r\n\r\n2) Can you please also help to check this issue for me ?\r\nhttps://github.com/fomorians/distracted-drivers-tf/issues/3\r\n\r\n\r\nThanks ....\r\n\r\n"}}