{"action":"created","issue":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/273","labels_url":"https://api.github.com/repos/nvbn/thefuck/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/nvbn/thefuck/issues/273/comments","events_url":"https://api.github.com/repos/nvbn/thefuck/issues/273/events","html_url":"https://github.com/nvbn/thefuck/issues/273","id":92910061,"number":273,"title":"AttributeError: 'module' object has no attribute 'PY2'","user":{"login":"chatainsim","id":1167931,"avatar_url":"https://avatars.githubusercontent.com/u/1167931?v=3","gravatar_id":"","url":"https://api.github.com/users/chatainsim","html_url":"https://github.com/chatainsim","followers_url":"https://api.github.com/users/chatainsim/followers","following_url":"https://api.github.com/users/chatainsim/following{/other_user}","gists_url":"https://api.github.com/users/chatainsim/gists{/gist_id}","starred_url":"https://api.github.com/users/chatainsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chatainsim/subscriptions","organizations_url":"https://api.github.com/users/chatainsim/orgs","repos_url":"https://api.github.com/users/chatainsim/repos","events_url":"https://api.github.com/users/chatainsim/events{/privacy}","received_events_url":"https://api.github.com/users/chatainsim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-03T17:01:03Z","updated_at":"2015-07-04T16:07:32Z","closed_at":null,"body":"Hello,\r\n\r\nI've just installed thefuck through pip.\r\nAdd the .bashrc alias then source it.\r\n\r\nBut when I use fuck, I have this error : \r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/thefuck\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/thefuck/main.py\", line 129, in main\r\n    command = get_command(settings, sys.argv)\r\n  File \"/usr/local/lib/python2.7/dist-packages/thefuck/main.py\", line 73, in get_command\r\n    if six.PY2:\r\nAttributeError: 'module' object has no attribute 'PY2'\r\n```\r\nDo you know how to fix it ?\r\n\r\nI'm using python Python 2.7.3.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/comments/118527133","html_url":"https://github.com/nvbn/thefuck/issues/273#issuecomment-118527133","issue_url":"https://api.github.com/repos/nvbn/thefuck/issues/273","id":118527133,"user":{"login":"scorphus","id":2112697,"avatar_url":"https://avatars.githubusercontent.com/u/2112697?v=3","gravatar_id":"","url":"https://api.github.com/users/scorphus","html_url":"https://github.com/scorphus","followers_url":"https://api.github.com/users/scorphus/followers","following_url":"https://api.github.com/users/scorphus/following{/other_user}","gists_url":"https://api.github.com/users/scorphus/gists{/gist_id}","starred_url":"https://api.github.com/users/scorphus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorphus/subscriptions","organizations_url":"https://api.github.com/users/scorphus/orgs","repos_url":"https://api.github.com/users/scorphus/repos","events_url":"https://api.github.com/users/scorphus/events{/privacy}","received_events_url":"https://api.github.com/users/scorphus/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T16:07:32Z","updated_at":"2015-07-04T16:07:32Z","body":"Hey, @chatainsim. Could you please give us a little bit more info?\r\n\r\n * What OS are you on?\r\n * What's the output of:\r\n\r\n```bash\r\n$ which python\r\n```\r\n\r\n * What's the output of:\r\n\r\n```bash\r\n$ which thefuck\r\n```\r\n\r\n * What's the output of:\r\n\r\n```bash\r\n$ pip freeze | grep six\r\n```\r\n\r\n * What's the output of:\r\n\r\n```bash\r\n$ python -c 'import six; print(six); print(six.__version__); print(six.PY2)'\r\n```\r\n\r\nThanks!"}}