{"action":"created","issue":{"url":"https://api.github.com/repos/pexpect/pexpect/issues/290","labels_url":"https://api.github.com/repos/pexpect/pexpect/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/pexpect/pexpect/issues/290/comments","events_url":"https://api.github.com/repos/pexpect/pexpect/issues/290/events","html_url":"https://github.com/pexpect/pexpect/issues/290","id":111384624,"number":290,"title":"Cannot install pexpect 4.0 with python 2.7","user":{"login":"martinsmid","id":2271474,"avatar_url":"https://avatars.githubusercontent.com/u/2271474?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsmid","html_url":"https://github.com/martinsmid","followers_url":"https://api.github.com/users/martinsmid/followers","following_url":"https://api.github.com/users/martinsmid/following{/other_user}","gists_url":"https://api.github.com/users/martinsmid/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsmid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsmid/subscriptions","organizations_url":"https://api.github.com/users/martinsmid/orgs","repos_url":"https://api.github.com/users/martinsmid/repos","events_url":"https://api.github.com/users/martinsmid/events{/privacy}","received_events_url":"https://api.github.com/users/martinsmid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pexpect/pexpect/labels/question","name":"question","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-14T12:10:24Z","updated_at":"2015-11-06T18:27:17Z","closed_at":"2015-10-14T17:09:28Z","body":"Maybe this is just an docs issue (http://pexpect.readthedocs.org/en/stable/install.html#requirements), however pexpect >=4.0 does not work with python 2.7, because it uses a python 3.3 syntax (yield from). \r\nIt is not clearly stated in docs and the install fails with a syntax error.\r\n```\r\nInstalling collected packages: pexpect\r\n  Running setup.py install for pexpect\r\n      File \"/home/smido/projects/pexeso-testing-indexer/env/lib/python2.7/site-packages/pexpect/async.py\", line 16\r\n        transport, pw = yield from asyncio.get_event_loop()\\\r\n                                 ^\r\n    SyntaxError: invalid syntax\r\n```\r\nhttps://github.com/pexpect/pexpect/blob/master/pexpect/async.py#L16\r\n"},"comment":{"url":"https://api.github.com/repos/pexpect/pexpect/issues/comments/154493149","html_url":"https://github.com/pexpect/pexpect/issues/290#issuecomment-154493149","issue_url":"https://api.github.com/repos/pexpect/pexpect/issues/290","id":154493149,"user":{"login":"JaviMerino","id":44926,"avatar_url":"https://avatars.githubusercontent.com/u/44926?v=3","gravatar_id":"","url":"https://api.github.com/users/JaviMerino","html_url":"https://github.com/JaviMerino","followers_url":"https://api.github.com/users/JaviMerino/followers","following_url":"https://api.github.com/users/JaviMerino/following{/other_user}","gists_url":"https://api.github.com/users/JaviMerino/gists{/gist_id}","starred_url":"https://api.github.com/users/JaviMerino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaviMerino/subscriptions","organizations_url":"https://api.github.com/users/JaviMerino/orgs","repos_url":"https://api.github.com/users/JaviMerino/repos","events_url":"https://api.github.com/users/JaviMerino/events{/privacy}","received_events_url":"https://api.github.com/users/JaviMerino/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T18:27:17Z","updated_at":"2015-11-06T18:27:17Z","body":"Ok, I've done the same for Debian.  What I don't like is that if somebody passes `async=True` to `expect()` they get a \"File not Found\" exception. Can the error be improved to something like `NotImplementedError` with some text saying that this feature is only available for python 3.3+?"}}