{"action":"created","issue":{"url":"https://api.github.com/repos/enthought/pyface/issues/234","repository_url":"https://api.github.com/repos/enthought/pyface","labels_url":"https://api.github.com/repos/enthought/pyface/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/enthought/pyface/issues/234/comments","events_url":"https://api.github.com/repos/enthought/pyface/issues/234/events","html_url":"https://github.com/enthought/pyface/issues/234","id":181596805,"number":234,"title":"clipboard and pbpaste don't communicate on OSX","user":{"login":"rahulporuri","id":1926457,"avatar_url":"https://avatars.githubusercontent.com/u/1926457?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulporuri","html_url":"https://github.com/rahulporuri","followers_url":"https://api.github.com/users/rahulporuri/followers","following_url":"https://api.github.com/users/rahulporuri/following{/other_user}","gists_url":"https://api.github.com/users/rahulporuri/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulporuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulporuri/subscriptions","organizations_url":"https://api.github.com/users/rahulporuri/orgs","repos_url":"https://api.github.com/users/rahulporuri/repos","events_url":"https://api.github.com/users/rahulporuri/events{/privacy}","received_events_url":"https://api.github.com/users/rahulporuri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/enthought/pyface/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-07T06:51:49Z","updated_at":"2016-10-07T10:12:02Z","closed_at":null,"body":"Setting `clipboard.text_data` manually doesn't convey the copied data to `pbpaste` on OSX.\r\n \r\n```\r\n>>> from pyface.api import clipboard\r\n>>> import pandas\r\n>>> \r\n>>> clipboard.text_data = 'a,b,c\\n1,2,3\\n4,5,6'\r\n>>> pandas.read_clipboard()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/Users/rahulporuri/Github/canopy-data-import/.devenv/lib/python2.7/site-packages/pandas/io/clipboard.py\", line 51, in read_clipboard\r\n    return read_table(StringIO(text), **kwargs)\r\n  File \"/Users/rahulporuri/Github/canopy-data-import/.devenv/lib/python2.7/site-packages/pandas/io/parsers.py\", line 645, in parser_f\r\n    return _read(filepath_or_buffer, kwds)\r\n  File \"/Users/rahulporuri/Github/canopy-data-import/.devenv/lib/python2.7/site-packages/pandas/io/parsers.py\", line 388, in _read\r\n    parser = TextFileReader(filepath_or_buffer, **kwds)\r\n  File \"/Users/rahulporuri/Github/canopy-data-import/.devenv/lib/python2.7/site-packages/pandas/io/parsers.py\", line 729, in __init__\r\n    self._make_engine(self.engine)\r\n  File \"/Users/rahulporuri/Github/canopy-data-import/.devenv/lib/python2.7/site-packages/pandas/io/parsers.py\", line 922, in _make_engine\r\n    self._engine = CParserWrapper(self.f, **self.options)\r\n  File \"/Users/rahulporuri/Github/canopy-data-import/.devenv/lib/python2.7/site-packages/pandas/io/parsers.py\", line 1389, in __init__\r\n    self._reader = _parser.TextReader(src, **kwds)\r\n  File \"pandas/parser.pyx\", line 538, in pandas.parser.TextReader.__cinit__ (pandas/parser.c:5896)\r\npandas.io.common.EmptyDataError: No columns to parse from file\r\n```\r\n\r\ndigging into the implementation, `pandas.read_clipboard` uses `pbcopy/pbpaste`.\r\n\r\n```\r\n>>> clipboard.text_data = 'a,b,c\\n1,2,3\\n4,5,6'\r\n>>> subprocess.call('pbpaste')\r\n0\r\n```"},"comment":{"url":"https://api.github.com/repos/enthought/pyface/issues/comments/252206382","html_url":"https://github.com/enthought/pyface/issues/234#issuecomment-252206382","issue_url":"https://api.github.com/repos/enthought/pyface/issues/234","id":252206382,"user":{"login":"pankajp","id":776111,"avatar_url":"https://avatars.githubusercontent.com/u/776111?v=3","gravatar_id":"","url":"https://api.github.com/users/pankajp","html_url":"https://github.com/pankajp","followers_url":"https://api.github.com/users/pankajp/followers","following_url":"https://api.github.com/users/pankajp/following{/other_user}","gists_url":"https://api.github.com/users/pankajp/gists{/gist_id}","starred_url":"https://api.github.com/users/pankajp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankajp/subscriptions","organizations_url":"https://api.github.com/users/pankajp/orgs","repos_url":"https://api.github.com/users/pankajp/repos","events_url":"https://api.github.com/users/pankajp/events{/privacy}","received_events_url":"https://api.github.com/users/pankajp/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T10:12:02Z","updated_at":"2016-10-07T10:12:02Z","body":"Qt backend. There also is some system specific issue, because thought I saw the issue on @rahulporuri 's machine, I could not reproduce it on two different systems, running MacOS Sierra and one something older."}}
{"actor":{"display_login":"pankajp"}}