{"action":"created","issue":{"url":"https://api.github.com/repos/omwah/pixy_rpi/issues/2","labels_url":"https://api.github.com/repos/omwah/pixy_rpi/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/omwah/pixy_rpi/issues/2/comments","events_url":"https://api.github.com/repos/omwah/pixy_rpi/issues/2/events","html_url":"https://github.com/omwah/pixy_rpi/issues/2","id":91468653,"number":2,"title":"'int' object is not iterable","user":{"login":"alduxvm","id":8823379,"avatar_url":"https://avatars.githubusercontent.com/u/8823379?v=3","gravatar_id":"","url":"https://api.github.com/users/alduxvm","html_url":"https://github.com/alduxvm","followers_url":"https://api.github.com/users/alduxvm/followers","following_url":"https://api.github.com/users/alduxvm/following{/other_user}","gists_url":"https://api.github.com/users/alduxvm/gists{/gist_id}","starred_url":"https://api.github.com/users/alduxvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alduxvm/subscriptions","organizations_url":"https://api.github.com/users/alduxvm/orgs","repos_url":"https://api.github.com/users/alduxvm/repos","events_url":"https://api.github.com/users/alduxvm/events{/privacy}","received_events_url":"https://api.github.com/users/alduxvm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-27T14:05:04Z","updated_at":"2015-07-06T05:54:02Z","closed_at":null,"body":"Hi!\r\n\r\nI'm getting this output when testing the echo.py:\r\n\r\n```\r\npython echo.py \r\nTraceback (most recent call last):\r\n  File \"echo.py\", line 6, in <module>\r\n    num_blocks = p.getBlocks()\r\n  File \"/home/pi/pixy_rpi/pixy.py\", line 42, in getBlocks\r\n    if not self._getStart():\r\n  File \"/home/pi/pixy_rpi/pixy.py\", line 74, in _getStart\r\n    w = self.link.getWord()\r\n  File \"/home/pi/pixy_rpi/pixy_spi.py\", line 49, in getWord\r\n    w = self.getByte(PIXY_SYNC_BYTE)\r\n  File \"/home/pi/pixy_rpi/pixy_spi.py\", line 63, in getByte\r\n    _, c = wiringpi2.wiringPiSPIDataRW(0, struct.pack('B', out))\r\nTypeError: 'int' object is not iterable\r\n```\r\n\r\nI used pip to install wiringpi2 (sudo pip install wiringpi2) and I enabled the spi via raspi-config. \r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/omwah/pixy_rpi/issues/comments/118733986","html_url":"https://github.com/omwah/pixy_rpi/issues/2#issuecomment-118733986","issue_url":"https://api.github.com/repos/omwah/pixy_rpi/issues/2","id":118733986,"user":{"login":"omwah","id":409331,"avatar_url":"https://avatars.githubusercontent.com/u/409331?v=3","gravatar_id":"","url":"https://api.github.com/users/omwah","html_url":"https://github.com/omwah","followers_url":"https://api.github.com/users/omwah/followers","following_url":"https://api.github.com/users/omwah/following{/other_user}","gists_url":"https://api.github.com/users/omwah/gists{/gist_id}","starred_url":"https://api.github.com/users/omwah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omwah/subscriptions","organizations_url":"https://api.github.com/users/omwah/orgs","repos_url":"https://api.github.com/users/omwah/repos","events_url":"https://api.github.com/users/omwah/events{/privacy}","received_events_url":"https://api.github.com/users/omwah/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T05:54:02Z","updated_at":"2015-07-06T05:54:02Z","body":"The problem is something to do with the updates to wiringPi2-Python in the master repo. For now use my repository to install wiringPi2-Python if pixy_spi is all you need it for. I tried merging from their upstream repo but had some issues compiling that I haven't had time to figure out yet."}}