{"action":"opened","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/14362","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/14362/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/14362/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/14362/events","html_url":"https://github.com/pydata/pandas/issues/14362","id":181301305,"number":14362,"title":"BUG: clipboard functions windows 10 py3.5","user":{"login":"chris-b1","id":1924092,"avatar_url":"https://avatars.githubusercontent.com/u/1924092?v=3","gravatar_id":"","url":"https://api.github.com/users/chris-b1","html_url":"https://github.com/chris-b1","followers_url":"https://api.github.com/users/chris-b1/followers","following_url":"https://api.github.com/users/chris-b1/following{/other_user}","gists_url":"https://api.github.com/users/chris-b1/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-b1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-b1/subscriptions","organizations_url":"https://api.github.com/users/chris-b1/orgs","repos_url":"https://api.github.com/users/chris-b1/repos","events_url":"https://api.github.com/users/chris-b1/events{/privacy}","received_events_url":"https://api.github.com/users/chris-b1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T00:54:38Z","updated_at":"2016-10-06T00:54:38Z","closed_at":null,"body":"This seems to work ok in the current version of pyperclip, but is broken in our vendored version, so likely just need to update.\r\n\r\nhttps://github.com/asweigart/pyperclip\r\nhttps://github.com/asweigart/pyperclip/pull/41\r\n\r\n```\r\n# Your code here\r\nIn [1]: df = pd.DataFrame(np.random.randn(10, 2))\r\n\r\nIn [2]: df.to_clipboard()\r\n---------------------------------------------------------------------------\r\nOSError                                   Traceback (most recent call last)\r\n<ipython-input-2-1f8b11f0ff98> in <module>()\r\n----> 1 df.to_clipboard()\r\n\r\nc:\\users\\chris\\documents\\python-dev\\pandas\\pandas\\core\\generic.py in to_clipboard(self, excel, sep, **kwargs)\r\n   1236         \"\"\"\r\n   1237         from pandas.io import clipboard\r\n-> 1238         clipboard.to_clipboard(self, excel=excel, sep=sep, **kwargs)\r\n   1239 \r\n   1240     def to_xarray(self):\r\n\r\nc:\\users\\chris\\documents\\python-dev\\pandas\\pandas\\io\\clipboard.py in to_clipboard(obj, excel, sep, **kwargs)\r\n     96     else:\r\n     97         objstr = str(obj)\r\n---> 98     clipboard_set(objstr)\r\n\r\nc:\\users\\chris\\documents\\python-dev\\pandas\\pandas\\util\\clipboard.py in _copyWindows(text)\r\n     83                                  len(text.encode('utf-16-le')) + 2)\r\n     84     pchData = d.kernel32.GlobalLock(hCd)\r\n---> 85     ctypes.cdll.msvcrt.wcscpy(ctypes.c_wchar_p(pchData), text)\r\n     86     d.kernel32.GlobalUnlock(hCd)\r\n     87     d.user32.SetClipboardData(CF_UNICODETEXT, hCd)\r\n\r\nOSError: exception: access violation writing 0x0000000000000000\r\n\r\nIn [4]: pd.read_clipboard()\r\n<segfault>\r\n```\r\n\r\n\r\n#### Output of ``pd.show_versions()``\r\n\r\n<details>\r\n# Paste the output here\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.5.1.final.0\r\npython-bits: 64\r\nOS: Windows\r\nOS-release: 10\r\nmachine: AMD64\r\nprocessor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: None\r\nLOCALE: None.None\r\n\r\npandas: 0.19.0+5.g855357b\r\nnose: 1.3.7\r\npip: 8.1.2\r\nsetuptools: 23.0.0\r\nCython: 0.24.1\r\nnumpy: 1.11.1\r\nscipy: 0.18.0\r\nstatsmodels: 0.6.1\r\nxarray: None\r\nIPython: 5.1.0\r\nsphinx: 1.3.1\r\npatsy: 0.4.1\r\ndateutil: 2.5.3\r\npytz: 2016.4\r\nblosc: None\r\nbottleneck: 1.0.0\r\ntables: None\r\nnumexpr: 2.6.0\r\nmatplotlib: 1.5.3\r\nopenpyxl: None\r\nxlrd: 1.0.0\r\nxlwt: None\r\nxlsxwriter: 0.9.3\r\nlxml: None\r\nbs4: None\r\nhtml5lib: None\r\nhttplib2: None\r\napiclient: None\r\nsqlalchemy: None\r\npymysql: None\r\npsycopg2: None\r\njinja2: 2.8\r\nboto: None\r\npandas_datareader: None\r\n</details>\r\n"}}
{"actor":{"display_login":"chris-b1"}}