{"action":"created","issue":{"url":"https://api.github.com/repos/doceme/py-spidev/issues/28","labels_url":"https://api.github.com/repos/doceme/py-spidev/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/doceme/py-spidev/issues/28/comments","events_url":"https://api.github.com/repos/doceme/py-spidev/issues/28/events","html_url":"https://github.com/doceme/py-spidev/issues/28","id":97788708,"number":28,"title":"All xfer2()s on MCP3008 return \"TypeError: Argument must be a list of at least one, but not more than 4096 integers\"","user":{"login":"timwood0","id":3924059,"avatar_url":"https://avatars.githubusercontent.com/u/3924059?v=3","gravatar_id":"","url":"https://api.github.com/users/timwood0","html_url":"https://github.com/timwood0","followers_url":"https://api.github.com/users/timwood0/followers","following_url":"https://api.github.com/users/timwood0/following{/other_user}","gists_url":"https://api.github.com/users/timwood0/gists{/gist_id}","starred_url":"https://api.github.com/users/timwood0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timwood0/subscriptions","organizations_url":"https://api.github.com/users/timwood0/orgs","repos_url":"https://api.github.com/users/timwood0/repos","events_url":"https://api.github.com/users/timwood0/events{/privacy}","received_events_url":"https://api.github.com/users/timwood0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-28T19:56:29Z","updated_at":"2015-07-29T04:20:02Z","closed_at":null,"body":"I have followed numerous guides (that all agree) to wire up the MCP3008.  I breadboarded a simple pot sensing circuit.  The spidev/spi_bcm{2708,2835} drivers are installed and I tested MISO/MOSI with a direct test.  But I always get this message.  \r\nTraceback (most recent call last):\r\n  File \"adafruit_mcp3008-spi.py\", line 56, in <module>\r\n    trim_pot = readadc(potentiometer_adc)\r\n  File \"adafruit_mcp3008-spi.py\", line 36, in readadc\r\n    r = spi.xfer2(commandout)\r\nTypeError: Argument must ...\r\n\r\nMy test code: https://gist.github.com/timwood0/5e13fac6db4493cf4c85\r\n\r\nBTW spidev_module.c confusingly uses the same error message for several different error cases!\r\n\r\nAnyone see anything obviously wrong?  I tried running with tomstokes/python-spi library; the test reports bursts of noise values on the A/D output using that stack."},"comment":{"url":"https://api.github.com/repos/doceme/py-spidev/issues/comments/125834485","html_url":"https://github.com/doceme/py-spidev/issues/28#issuecomment-125834485","issue_url":"https://api.github.com/repos/doceme/py-spidev/issues/28","id":125834485,"user":{"login":"doceme","id":196169,"avatar_url":"https://avatars.githubusercontent.com/u/196169?v=3","gravatar_id":"","url":"https://api.github.com/users/doceme","html_url":"https://github.com/doceme","followers_url":"https://api.github.com/users/doceme/followers","following_url":"https://api.github.com/users/doceme/following{/other_user}","gists_url":"https://api.github.com/users/doceme/gists{/gist_id}","starred_url":"https://api.github.com/users/doceme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doceme/subscriptions","organizations_url":"https://api.github.com/users/doceme/orgs","repos_url":"https://api.github.com/users/doceme/repos","events_url":"https://api.github.com/users/doceme/events{/privacy}","received_events_url":"https://api.github.com/users/doceme/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T04:20:02Z","updated_at":"2015-07-29T04:20:02Z","body":"I'm not the best and noticing the nuances between Python 2 and Python 3. I added a proper fix to support int vs. long type checking.  Can you test with the latest commit on the master branch?"}}