Page 2 of 2
Re: Learning the firmware
Posted: Wed Feb 17, 2016 5:34 pm
by cmcarroll
Hi Chad,
Do you know where there are instructions to update to Python 3? I haven't been able to find how to do that on the VM specifically. Thank you for your helpfullness and patience!
Re: Learning the firmware
Posted: Wed Feb 17, 2016 5:43 pm
by chad
Might be installed already?
http://askubuntu.com/questions//how-to- ... -on-ubuntu
If not, you have to use apt-get. I don't recall the package name... Maybe:
?
Or, upgrade your Ubuntu install with software updater maybe.
Re: Learning the firmware
Posted: Wed Feb 17, 2016 5:51 pm
by cmcarroll
My VM says it has python3 already installed. Yet, my cfclient still won't open, which is strange. I'm going to play around and hopefully get an answer.
Re: Learning the firmware
Posted: Wed Feb 17, 2016 6:41 pm
by chad
cmcarroll wrote:My VM says it has python3 already installed. Yet, my cfclient still won't open, which is strange. I'm going to play around and hopefully get an answer.
If you double-click the icon on the Desktop it surely won't work. It's simply a launcher. If, however, you run it directly in the Terminal with:
Code: Select all
cd ~/projects/crazyflie-clients-python
python3 ./bin/cfclient
It errors out because no pyusb is installed. That leads me to believe that pyusb (and possibly other dependencies for Python 3) aren't installed.
At this point, you're going to have to deal with getting all the dependencies for Python 3. Until Bitcraze revs the VM, I think it's probably just easier to
install everything on your Mac and go from there.
Re: Learning the firmware
Posted: Wed Feb 17, 2016 9:53 pm
by cmcarroll
Yeah, I suppose I will have to. That's frustrating because I was just getting the hang of the VM, but I'll just have to deal with it! Thanks for your help. Is it possible to let the developers know of this issue?
Re: Learning the firmware
Posted: Wed Feb 17, 2016 10:08 pm
by chad
Well, you could always try to get the VM updated. The dependencies are listed in the README of the crazyflie-clients-python repo. I'm just lazy and would rather take the quick and easy way out.
I
created an issue in the GitHub repo for the bitcraze-vm after our conversation. You're free to comment on it if you want.
Happy to help!
Re: Learning the firmware
Posted: Wed Feb 17, 2016 10:13 pm
by cmcarroll
I was just about to update my last post, but you were too quick to respond! Updating the dependencies AND ubunutu on the VM fixed my issue. So now I can go back to trying to understand the firmware and write my own code to get a single motor to turn on... Thanks, you're so helpful and so patient with my extreme beginner questions. (I probably wouldn't be so active in the forum if this was just for fun, but I have a HUGE graded assignment riding on my ability to get my CF1 project working how I want it to ha!)
Re: Learning the firmware
Posted: Fri Feb 19, 2016 8:26 pm
by chad
cmcarroll wrote:I was just about to update my last post, but you were too quick to respond! Updating the dependencies AND ubunutu on the VM fixed my issue. So now I can go back to trying to understand the firmware and write my own code to get a single motor to turn on...
Good to hear it!! It looks like
they've rev'd the VM (
to 0.8) now to update and fix the problem. So, after all that work, you can just download a new VM now.

At least you learned a lot!
cmcarroll wrote:Thanks, you're so helpful and so patient with my extreme beginner questions. (I probably wouldn't be so active in the forum if this was just for fun, but I have a HUGE graded assignment riding on my ability to get my CF1 project working how I want it to ha!)
You're welcome!!

I'm active in this forum because it
is just for fun for me. Incidentally, I'm curious what class you're doing this for.
So is Bitcraze actually (see the second paragraph at that link). It's too bad to read you'll not be active in the forum when you've gotten the A+ on your project...