{"action":"created","issue":{"url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/issues/19","repository_url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key","labels_url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/issues/19/comments","events_url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/issues/19/events","html_url":"https://github.com/RaspberryPi-Samples/py-my-key/issues/19","id":144309912,"number":19,"title":"WiringPi error","user":{"login":"lwalter86","id":12126460,"avatar_url":"https://avatars.githubusercontent.com/u/12126460?v=3","gravatar_id":"","url":"https://api.github.com/users/lwalter86","html_url":"https://github.com/lwalter86","followers_url":"https://api.github.com/users/lwalter86/followers","following_url":"https://api.github.com/users/lwalter86/following{/other_user}","gists_url":"https://api.github.com/users/lwalter86/gists{/gist_id}","starred_url":"https://api.github.com/users/lwalter86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwalter86/subscriptions","organizations_url":"https://api.github.com/users/lwalter86/orgs","repos_url":"https://api.github.com/users/lwalter86/repos","events_url":"https://api.github.com/users/lwalter86/events{/privacy}","received_events_url":"https://api.github.com/users/lwalter86/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-29T16:01:25Z","updated_at":"2016-04-18T09:21:30Z","closed_at":null,"body":"An error occurs a few minutes after we launch the script : \r\n\r\n```\r\n\" WiringPiSetup : unable to open /dev/mem : too many open files \"\r\n```"},"comment":{"url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/issues/comments/211291953","html_url":"https://github.com/RaspberryPi-Samples/py-my-key/issues/19#issuecomment-211291953","issue_url":"https://api.github.com/repos/RaspberryPi-Samples/py-my-key/issues/19","id":211291953,"user":{"login":"lwalter86","id":12126460,"avatar_url":"https://avatars.githubusercontent.com/u/12126460?v=3","gravatar_id":"","url":"https://api.github.com/users/lwalter86","html_url":"https://github.com/lwalter86","followers_url":"https://api.github.com/users/lwalter86/followers","following_url":"https://api.github.com/users/lwalter86/following{/other_user}","gists_url":"https://api.github.com/users/lwalter86/gists{/gist_id}","starred_url":"https://api.github.com/users/lwalter86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwalter86/subscriptions","organizations_url":"https://api.github.com/users/lwalter86/orgs","repos_url":"https://api.github.com/users/lwalter86/repos","events_url":"https://api.github.com/users/lwalter86/events{/privacy}","received_events_url":"https://api.github.com/users/lwalter86/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T09:21:30Z","updated_at":"2016-04-18T09:21:30Z","body":"`create_reader()` is only executed at init : \r\n`sudo python py_my_key/cli_rpi_access.py --init` \r\n\r\nOr, we need to execute `nxppy.Mifare()` each time we start the application. So we have to put the `initialize()` call in the `run()` method of the app."}}