{"action":"created","issue":{"url":"https://api.github.com/repos/TMRh20/RF24/issues/162","labels_url":"https://api.github.com/repos/TMRh20/RF24/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/TMRh20/RF24/issues/162/comments","events_url":"https://api.github.com/repos/TMRh20/RF24/issues/162/events","html_url":"https://github.com/TMRh20/RF24/issues/162","id":115984072,"number":162,"title":"python wrapper doesn't work until after I've run the C code first","user":{"login":"marc-gist","id":4084427,"avatar_url":"https://avatars.githubusercontent.com/u/4084427?v=3","gravatar_id":"","url":"https://api.github.com/users/marc-gist","html_url":"https://github.com/marc-gist","followers_url":"https://api.github.com/users/marc-gist/followers","following_url":"https://api.github.com/users/marc-gist/following{/other_user}","gists_url":"https://api.github.com/users/marc-gist/gists{/gist_id}","starred_url":"https://api.github.com/users/marc-gist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marc-gist/subscriptions","organizations_url":"https://api.github.com/users/marc-gist/orgs","repos_url":"https://api.github.com/users/marc-gist/repos","events_url":"https://api.github.com/users/marc-gist/events{/privacy}","received_events_url":"https://api.github.com/users/marc-gist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T22:40:41Z","updated_at":"2015-11-12T00:00:21Z","closed_at":null,"body":"So I've noticed some strange behaviour.\r\n\r\nIf I startup my raspberryPi, run the rxRF24Network/hellowworld_rx.py\r\nNothing is ever received (displayed on screen).\r\n\r\nIf I run examples_RPi/hellowworld_rx\r\n(the C++ program), it receives the data fine.\r\n\r\nIf I then run the python code, it will now work fine.\r\n\r\nany ideas?\r\n\r\nall commands are run \"sudo\""},"comment":{"url":"https://api.github.com/repos/TMRh20/RF24/issues/comments/155948969","html_url":"https://github.com/TMRh20/RF24/issues/162#issuecomment-155948969","issue_url":"https://api.github.com/repos/TMRh20/RF24/issues/162","id":155948969,"user":{"login":"TMRh20","id":2610460,"avatar_url":"https://avatars.githubusercontent.com/u/2610460?v=3","gravatar_id":"","url":"https://api.github.com/users/TMRh20","html_url":"https://github.com/TMRh20","followers_url":"https://api.github.com/users/TMRh20/followers","following_url":"https://api.github.com/users/TMRh20/following{/other_user}","gists_url":"https://api.github.com/users/TMRh20/gists{/gist_id}","starred_url":"https://api.github.com/users/TMRh20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TMRh20/subscriptions","organizations_url":"https://api.github.com/users/TMRh20/orgs","repos_url":"https://api.github.com/users/TMRh20/repos","events_url":"https://api.github.com/users/TMRh20/events{/privacy}","received_events_url":"https://api.github.com/users/TMRh20/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T00:00:21Z","updated_at":"2015-11-12T00:00:21Z","body":"\r\nNot sure if python or C++ related, but I can't seem to replicate this issue either way. I'm testing on Raspbian Jessie - 4.1.7+ on Model B Revision 2.0 (see [here](http://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/)) on this RPi\r\n\r\nThat being the case I don't have many suggestions other than updating (apt-get update & rpi-update ) and/or running raspi-config if using raspbian and enable spi at boot, and make sure it isn't in the blacklist at /etc/modprobe.d/raspi-blacklist.conf (although it makes little difference on my device)\r\n\r\nPlease post the results of running the following if no luck:\r\n``` cat /proc/cpuinfo ```\r\n``` uname -rv ```\r\n``` lsmod | grep spi ```\r\n\r\n@mz-fuzzy With the RF24Network helloworld_rx example, it seems I have to change the line ``` ms, number = unpack('<qi', payload) ``` to ``` ms, number = unpack('<ii', payload) ``` or I get an error: ``` struct.error: unpack requires a string argument of length 12 ```  I could have sworn I tested this before..."}}