{"action":"created","issue":{"url":"https://api.github.com/repos/dronekit/dronekit-python/issues/524","repository_url":"https://api.github.com/repos/dronekit/dronekit-python","labels_url":"https://api.github.com/repos/dronekit/dronekit-python/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/dronekit/dronekit-python/issues/524/comments","events_url":"https://api.github.com/repos/dronekit/dronekit-python/issues/524/events","html_url":"https://github.com/dronekit/dronekit-python/issues/524","id":130723649,"number":524,"title":"No module named dronekit - 3DR Solo - Running code onboard - Help needed","user":{"login":"reyes73a","id":17028592,"avatar_url":"https://avatars.githubusercontent.com/u/17028592?v=3","gravatar_id":"","url":"https://api.github.com/users/reyes73a","html_url":"https://github.com/reyes73a","followers_url":"https://api.github.com/users/reyes73a/followers","following_url":"https://api.github.com/users/reyes73a/following{/other_user}","gists_url":"https://api.github.com/users/reyes73a/gists{/gist_id}","starred_url":"https://api.github.com/users/reyes73a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyes73a/subscriptions","organizations_url":"https://api.github.com/users/reyes73a/orgs","repos_url":"https://api.github.com/users/reyes73a/repos","events_url":"https://api.github.com/users/reyes73a/events{/privacy}","received_events_url":"https://api.github.com/users/reyes73a/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-02-02T15:49:41Z","updated_at":"2016-02-18T12:15:34Z","closed_at":"2016-02-17T05:21:48Z","body":"Hi guys,\r\nI am having a little trouble running the helloworld example for solo developers (http://dev.3dr.com/example-helloworld.html) and I was hoping some one could shed some light on this for me. I have been following the development guide to run solo scripts onboard. I can run helloworld.py from my PC using:\r\n\r\n```\r\ngit clone https://github.com/3drobotics/solodevguide1\r\ncd solodevguide/examples/helloworld\r\npython helloworld.py\r\n```\r\n\r\nThis runs fine without any issues, but when I try to run it onboard solo it fails. I do the following commands:\r\n\r\n`solo script pack`\r\n\r\nThis command successfully creates the file: solo-script.tar.gz\r\nI then try to run:\r\n\r\n`solo script run helloworld.py`\r\n\r\nbut it fails with the following error:\r\n\r\n```\r\n' File \"/log/solo-script/helloworld.py\", line 1, in from dronekit import connect\r\nImportError: No module named dronekit\r\n```\r\nSince I can run it on the ground station pc without any issues I am guessing that the solo script run command is failing because I am missing some files on my solo? I thought dronekit was already included onboard... I am currently lost on how to fix this so any suggestions would be greatly appreciated! Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/dronekit/dronekit-python/issues/comments/185692218","html_url":"https://github.com/dronekit/dronekit-python/issues/524#issuecomment-185692218","issue_url":"https://api.github.com/repos/dronekit/dronekit-python/issues/524","id":185692218,"user":{"login":"nicOwlas","id":16015322,"avatar_url":"https://avatars.githubusercontent.com/u/16015322?v=3","gravatar_id":"","url":"https://api.github.com/users/nicOwlas","html_url":"https://github.com/nicOwlas","followers_url":"https://api.github.com/users/nicOwlas/followers","following_url":"https://api.github.com/users/nicOwlas/following{/other_user}","gists_url":"https://api.github.com/users/nicOwlas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicOwlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicOwlas/subscriptions","organizations_url":"https://api.github.com/users/nicOwlas/orgs","repos_url":"https://api.github.com/users/nicOwlas/repos","events_url":"https://api.github.com/users/nicOwlas/events{/privacy}","received_events_url":"https://api.github.com/users/nicOwlas/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T12:15:34Z","updated_at":"2016-02-18T12:15:34Z","body":"Hi @hamishwillee,\r\n\r\nThanks a lot for the reply and the update of the solo-cli. I could test it on windows (cygwin) and Ubuntu. The results:\r\n- cygwin: everything works, onboard and offboard :-)\r\n- ubuntu: it works onboard only. I still get the same error while executing `python helloworld.py` from the terminal or from spyder...\r\n'>>> Link timeout, no heartbeat in last 5 seconds'\r\n'>>> No heartbeat in 30 seconds, aborting.'\r\n\r\nThis is pretty strange as @reyes73a for you, on Ubuntu you had no issue with running a script offboard... Where do you write the `python helloworld.py` command? In the terminal directly or by a run in Spyder? Do you ssh on solo beforehand? Do you have the solo wifi command enabled?\r\n\r\nCheers,"}}