[SOLVED] crazyradio connect problem

Post here to get support
Post Reply
floripaolo
Beginner
Posts: 11
Joined: Sat Jul 13, 2013 6:32 am

[SOLVED] crazyradio connect problem

Post by floripaolo »

Hi
I finally managed to get the client up and running (although only by dragging it into terminal, not by cd ing and running it directly).

PS3 controller is also alive.

but i cannot connect the cf via crazy radio. And I get this message


Screen Shot 2015-04-30 at 19.10.59.png

thanks a lot for help...

:)
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: crazyradio connect problem

Post by chad »

Thanks for creating the thread floripaolo.

It looks like from the screenshot you posted that the client you're using is quite old. First, how about updating that and then we can see where to go from there. The latest release (as of this writing) can be found here.

First make sure we're using the right MacPorts python (in the Terminal - you should only have to do this once, not each time you run the client):

Code: Select all

sudo port select python python27
Download and unzip the client then, in the Terminal, change to the unzipped directory and try running the cfclient. Make sure your controller and Crazyradio are plugged in before your run these commands.

Code: Select all

cd ~/Downloads/crazyflie-clients-python-2014.12.3
python ./bin/cfclient
Let us know what happened and if it doesn't launch, we'll troubleshoot from there.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
floripaolo
Beginner
Posts: 11
Joined: Sat Jul 13, 2013 6:32 am

Re: crazyradio connect problem

Post by floripaolo »

Hi
thanks for your help.
I actually used Homebrew on my second try. And I uninstalled Macport.


Cheers


P
floripaolo
Beginner
Posts: 11
Joined: Sat Jul 13, 2013 6:32 am

Re: crazyradio connect problem

Post by floripaolo »

ok.
I reinstalled Macports and all the rest.

but I get this message now.

Paolos-MacBook-Air:local paolo$ sudo port select python python27
Password:
Selecting 'python27' for 'python' succeeded. 'python27' is now active.
Paolos-MacBook-Air:local paolo$ cd ~/Downloads/crazyflie-clients-python-2014.12.3
Paolos-MacBook-Air:crazyflie-clients-python-2014.12.3 paolo$ python ./bin/cfclient
-bash: /usr/local/bin/python: No such file or directory
Paolos-MacBook-Air:crazyflie-clients-python-2014.12.3 paolo$
floripaolo
Beginner
Posts: 11
Joined: Sat Jul 13, 2013 6:32 am

Re: crazyradio connect problem

Post by floripaolo »

The second time I tried I got this message:


Paolos-MacBook-Air:MacPorts paolo$ sudo port select python python27
Password:
Selecting 'python27' for 'python' succeeded. 'python27' is now active.
Paolos-MacBook-Air:MacPorts paolo$ cd ~/Downloads/crazyflie-clients-python-2014.12.3
Paolos-MacBook-Air:crazyflie-clients-python-2014.12.3 paolo$ python ./bin/cfclient
CRITICAL:cfclient.cfclient:No pysdl2 installation found, exiting!
Paolos-MacBook-Air:crazyflie-clients-python-2014.12.3 paolo$

Some installation seems to be missing (I didn't change anything between the first and the second try though....
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: crazyradio connect problem

Post by chad »

floripaolo wrote:I actually used Homebrew on my second try. And I uninstalled Macport.
Well... You are running 'sudo port select python python27' and it seems to be selecting the MacPorts python successfully so I'm not sure that you actually uninstalled MacPorts... What did you do to uninstall it?
floripaolo wrote:CRITICAL:cfclient.cfclient:No pysdl2 installation found, exiting!

Some installation seems to be missing (I didn't change anything between the first and the second try though....
Easy enough fix. Since it seems that you are still using MacPorts, just install it:

Code: Select all

sudo port install py27-SDL2
Oh! And by the way... You do not need to run 'sudo port select python python27' everytime. Once you run it, you're using MacPorts python2.7. You don't need to keep running it. It is redundant after the first execution.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
floripaolo
Beginner
Posts: 11
Joined: Sat Jul 13, 2013 6:32 am

Re: crazyradio connect problem

Post by floripaolo »

works flawlessly now!!

thanks Chad!


:)
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: crazyradio connect problem

Post by chad »

floripaolo wrote:works flawlessly now!!

thanks Chad!


:)
Excellent!! Glad to hear you're up and flying again. It's no fun being grounded!! ;)
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Post Reply