{"action":"created","issue":{"url":"https://api.github.com/repos/EricssonResearch/calvin-base/issues/76","repository_url":"https://api.github.com/repos/EricssonResearch/calvin-base","labels_url":"https://api.github.com/repos/EricssonResearch/calvin-base/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/EricssonResearch/calvin-base/issues/76/comments","events_url":"https://api.github.com/repos/EricssonResearch/calvin-base/issues/76/events","html_url":"https://github.com/EricssonResearch/calvin-base/issues/76","id":243146134,"node_id":"MDU6SXNzdWUyNDMxNDYxMzQ=","number":76,"title":"SensorKit examples are not working","user":{"login":"peiworld","id":2830064,"node_id":"MDQ6VXNlcjI4MzAwNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2830064?v=4","gravatar_id":"","url":"https://api.github.com/users/peiworld","html_url":"https://github.com/peiworld","followers_url":"https://api.github.com/users/peiworld/followers","following_url":"https://api.github.com/users/peiworld/following{/other_user}","gists_url":"https://api.github.com/users/peiworld/gists{/gist_id}","starred_url":"https://api.github.com/users/peiworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peiworld/subscriptions","organizations_url":"https://api.github.com/users/peiworld/orgs","repos_url":"https://api.github.com/users/peiworld/repos","events_url":"https://api.github.com/users/peiworld/events{/privacy}","received_events_url":"https://api.github.com/users/peiworld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-15T01:58:27Z","updated_at":"2018-07-02T12:31:53Z","closed_at":"2018-07-02T12:31:53Z","author_association":"NONE","body":"Do I need to run the example of SensorKit using sudo? \r\n\r\ntrigger : std.Trigger(tick=1, data=true)\r\nlight: io.Light()\r\ntrigger.data > light.on\r\n\r\nWhen I tried to run the light example, without sudo I got the following error messages. With sudo, no response and the LED is not on.\r\n\r\n2017-07-15 00:54:13,241 INFO     6941-calvin.calvin.runtime.north.calvincontrol: Control API trying to listening on: localhost:5001\r\n2017-07-15 00:54:14,826 ERROR    6941-calvin.calvin.runtime.north.actormanager: _new\r\nTraceback (most recent call last):\r\n  File \"/home/pi/calvin-base/calvin/runtime/north/actormanager.py\", line 138, in _new\r\n    a.init(**args)\r\n  File \"/home/pi/calvin-base/calvin/actorstore/systemactors/io/Light.py\", line 30, in init\r\n    self.setup()\r\n  File \"/home/pi/calvin-base/calvin/actorstore/systemactors/io/Light.py\", line 33, in setup\r\n    self.light = calvinsys.open(self, \"io.light\")\r\n  File \"/home/pi/calvin-base/calvin/actor/actor.py\", line 208, in open\r\n    return get_calvinsys().open(name, actor, **kwargs)\r\n  File \"/home/pi/calvin-base/calvin/runtime/north/calvinsys.py\", line 70, in open\r\n    pymodule = importlib.import_module('calvin.runtime.south.calvinsys.' + capability['path'])   \r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\n  File \"/home/pi/calvin-base/calvin/runtime/south/calvinsys/io/gpiopin/raspberry_pi/PIGPIOPin.py\", line 19, in <module>\r\n    import pigpio\r\nImportError: No module named pigpio\r\n\r\n\r\nAlso, I tried humidity.calvin with an DHT11. Nothing print out when I used sudo.\r\npi@raspberrypi:~/calvin-base/calvin/examples/sensor-kit$ sudo csruntime --host localhost -w 0 humidity.calvin\r\n\r\nBy the way, the pin layout looks wrong. The GND of the sensor is connected at GPIO:21 not an GND pin.\r\n"},"comment":{"url":"https://api.github.com/repos/EricssonResearch/calvin-base/issues/comments/401788786","html_url":"https://github.com/EricssonResearch/calvin-base/issues/76#issuecomment-401788786","issue_url":"https://api.github.com/repos/EricssonResearch/calvin-base/issues/76","id":401788786,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTc4ODc4Ng==","user":{"login":"olaan","id":7428599,"node_id":"MDQ6VXNlcjc0Mjg1OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7428599?v=4","gravatar_id":"","url":"https://api.github.com/users/olaan","html_url":"https://github.com/olaan","followers_url":"https://api.github.com/users/olaan/followers","following_url":"https://api.github.com/users/olaan/following{/other_user}","gists_url":"https://api.github.com/users/olaan/gists{/gist_id}","starred_url":"https://api.github.com/users/olaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olaan/subscriptions","organizations_url":"https://api.github.com/users/olaan/orgs","repos_url":"https://api.github.com/users/olaan/repos","events_url":"https://api.github.com/users/olaan/events{/privacy}","received_events_url":"https://api.github.com/users/olaan/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T12:31:53Z","updated_at":"2018-07-02T12:31:53Z","author_association":"CONTRIBUTOR","body":"I'm closing this issue now. If you have further questions, feel free to open a new one.\r\n\r\nCheers."}}
{"actor":{"display_login":"olaan"}}