-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named dronekit - 3DR Solo - Running code onboard - Help needed #524
Comments
Hi @reyes73a First of all, it doesn't sound to me like you're doing anything wrong (I wrote the instructions, and tested them at that point). The pack command should include dronekit in the package as a requirement. The examples should work without any issue. Can you
Regards PS Just for future reference, best to post Solo specific questions in the solodevguide repo. This is almost certainly a packaging problem, and not a dronekit problem as such. |
Can you also please attach your generated solo-script.tar.gz and confirm that the directory you are packaging contains the requirements.txt file. |
Thanks a lot for your reply Hamish!
**solodevguide requirements.txt** requirements.txt contains "dronekit>=2.0.0") Also the directory structure where the package and run commands are being executed is: Inside /helloworld there is the following: If I open requirements.txt it also contains only one line of text: Any other way I can send you the solo-script.tar.gz? Thanks a lot for your help. I really appreciate it. |
@reyes73a Can you please email me the tarball - hamish at 3drobotics dot com . FYI, I have reproduced this error, and am seeking advice from the author of the tool. The tarball is just for comparison. |
Just emailed you the tarball. Thanks! |
According to what I read above, I see that peterbarker committed a fix for this? What is the proper way to take in this fix? Thanks! |
FYI, I replied to @reyes73a offline. When the icon at top of page says "Merged" rather than "Open" they can following the update instructions (use -U flag to pip) to get the latest version. |
@reyes73a FYI, we still haven't managed to test the fix (3drobotics/solo-cli#37) on Mac OS X, so haven't been able to make a release. I'm updating a mac to a new enough version (hopefully) for testing. |
Yes! I noticed on git hub. Thats ok. I will remain on hold until the merge
|
Hi @reyes73a and @hamishwillee , Glad that I found you; I have exactly the same issue on Ubuntu, nevertheless it works from cygwin... Still there are errors (see code below) in the output, but it runs. I am looking forward the merge status. Nevertheless the command @hamishwillee do you have any idea why? Strangely enough Mission Planner always succeed connecting to the solo and reading the parameters. It is as if the connect functions between MP and dronekit were different. Is MP sending a "wake up call" to the solo for it to start sending Mavlink messages and Dronekit just wait for solo to speak? On cygwin:
Thanks in advance, |
@nicOwlas I am confused - your log above essentially shows success - there is an exception, but it is after the thread completes. I certainly can't see I think you're saying that if you run |
Hi @hamishwillee, sorry my message was confusing. The thread corresponds to running the script on-board the solo and executes correctly (exception for the The main problem I am facing is that I cannot start a script launched from the ground station, the error is then always the same: It fails consistently. As I was saying, strangely mission planner manages to connect (UDP on port 14550). |
Yes, I get this too. We should kill that warning, but it can be ignored for now. When connecting from the PC, either of these should work provided your PC is connected to Solo's wifi network. That said, I have not tried from Cygwin, only from normal Python prompt.
I will try to test this in the coming days ... Regards |
@reyes73a We've updated the version of solo-cli on master, so you should be able to test this now. There are still some odd artifacts when helloworld.py is being unpacked and after it runs, but these can be ignored - it works! We're now looking at adding full windows support for the pack operation. |
Thanks Hamish! Let me give it a try and get back to you! Thanks again! On Tue, Feb 16, 2016 at 11:23 PM, Hamish Willee [email protected]
|
Hi @hamishwillee, Thanks a lot for the reply and the update of the solo-cli. I could test it on windows (cygwin) and Ubuntu. The results:
This is pretty strange as @reyes73a for you, on Ubuntu you had no issue with running a script offboard... Where do you write the Cheers, |
Hi @hamishwillee and @nicOwlas , I updated solo-cli and the script run command now runs correctly. However once the script runs I get timeout issues: connecting to solo...
I have tried running this with solo hooked up to the internet and also without internet and I still get the same result. I can still run the helloworld.py offboard without issues in two different ways: @nicOwlas , when running the script offboard through Ubuntu I simply connect to solo's wifi (I can have solo connected to the internet or not - it does not affect the end result for me) then: cd devsologuide/examples/helloworld I use the regular linux terminal and I do not SSH into solo at all. @hamishwillee Any thoughts on this timeout issues? Very strange indeed... Thanks =) |
@reyes73a No idea. Can you please:
Thanks |
@reyes73a Also, can you please update Solo to the latest version. It is mostly likely that you've got a version that doesn't redirect to the UDP port internally. |
Hamish,
The App says I am up to date. When I run solo info from linux I get:
2 Just emailed you the new tar file.
I hope this helps. Thanks! |
Hi @reyes73a Your solo info output matches mine. When I install your tarball it installs, connects and runs fine. My "guess" is that some sort of local change has stuffed up your installation. About all I can suggest is consider doing a factory reset and then updating. Note that you'll need to use the "proper" version for updating on windows because of 3drobotics/solo-cli#41 |
Let me try to update and see what happens. If it comes down to performing a Will have to start from step 1 in the dev guide and reinstall solo-cli and Thank! On Tue, Feb 23, 2016 at 6:52 PM, Hamish Willee [email protected]
|
Yes, it resets everything on the solo - you will have to check that factory reset link to see what else it does. You won't need to reinstall solo-cli, but you will need to then update the software to the latest version, and you will probably need to log in at least once via SSH to your Solo before you will be able to connect using solo-cli Another thing you might try *first( is doing |
I'm having this same problem, any solution?
|
That was second try ever, first try looked different, but same error:
|
Hi guys,
I 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:
This runs fine without any issues, but when I try to run it onboard solo it fails. I do the following commands:
solo script pack
This command successfully creates the file: solo-script.tar.gz
I then try to run:
solo script run helloworld.py
but it fails with the following error:
Since 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!
The text was updated successfully, but these errors were encountered: