{"action":"created","issue":{"url":"https://api.github.com/repos/boto/boto/issues/1094","labels_url":"https://api.github.com/repos/boto/boto/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/boto/boto/issues/1094/comments","events_url":"https://api.github.com/repos/boto/boto/issues/1094/events","html_url":"https://github.com/boto/boto/issues/1094","id":8078743,"number":1094,"title":"boto neo keypair save() error","user":{"login":"vogdan","id":2714659,"avatar_url":"https://avatars.githubusercontent.com/u/2714659?v=3","gravatar_id":"","url":"https://api.github.com/users/vogdan","html_url":"https://github.com/vogdan","followers_url":"https://api.github.com/users/vogdan/followers","following_url":"https://api.github.com/users/vogdan/following{/other_user}","gists_url":"https://api.github.com/users/vogdan/gists{/gist_id}","starred_url":"https://api.github.com/users/vogdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vogdan/subscriptions","organizations_url":"https://api.github.com/users/vogdan/orgs","repos_url":"https://api.github.com/users/vogdan/repos","events_url":"https://api.github.com/users/vogdan/events{/privacy}","received_events_url":"https://api.github.com/users/vogdan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2012-11-03T12:05:04Z","updated_at":"2015-05-20T19:33:18Z","closed_at":null,"body":"ERROR (wile trying to save a key):\r\n\r\nFile \"ec2_api.py\", line 85, in create_keypair\r\n    self.key_pair.save('/Users/bogdan/AWS')\r\negg/boto/ec2/keypair.py\", line 86, in save\r\n    fp.write(self.material)\r\nTypeError: 'str' does not support the buffer interface\r\n\r\nPython details:\r\nPython 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 02:56:36) \r\n[GCC 4.2.1 (Apple Inc. build 5577)] on darwin\r\n\r\nFIX:\r\nchanged keypair.py line 86 to:\r\n\r\n    fp.write(self.material.encode('utf-8'))\r\n\r\nQUESTION: Is the fix OK? (it works fine for me)"},"comment":{"url":"https://api.github.com/repos/boto/boto/issues/comments/104007563","html_url":"https://github.com/boto/boto/issues/1094#issuecomment-104007563","issue_url":"https://api.github.com/repos/boto/boto/issues/1094","id":104007563,"user":{"login":"dremspider","id":5054162,"avatar_url":"https://avatars.githubusercontent.com/u/5054162?v=3","gravatar_id":"","url":"https://api.github.com/users/dremspider","html_url":"https://github.com/dremspider","followers_url":"https://api.github.com/users/dremspider/followers","following_url":"https://api.github.com/users/dremspider/following{/other_user}","gists_url":"https://api.github.com/users/dremspider/gists{/gist_id}","starred_url":"https://api.github.com/users/dremspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dremspider/subscriptions","organizations_url":"https://api.github.com/users/dremspider/orgs","repos_url":"https://api.github.com/users/dremspider/repos","events_url":"https://api.github.com/users/dremspider/events{/privacy}","received_events_url":"https://api.github.com/users/dremspider/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T19:33:18Z","updated_at":"2015-05-20T19:33:18Z","body":"I ran into this as well..  Had a slightly different fix which was:\r\nfp.write(bytes(self.material,\"UTF-8\")).\r\n\r\n"}}