Page 1 of 1

[SOLVED] crazyradio connect problem

Posted: Fri May 01, 2015 5:08 am
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...

:)

Re: crazyradio connect problem

Posted: Fri May 01, 2015 3:35 pm
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.

Re: crazyradio connect problem

Posted: Fri May 01, 2015 4:11 pm
by floripaolo
Hi
thanks for your help.
I actually used Homebrew on my second try. And I uninstalled Macport.


Cheers


P

Re: crazyradio connect problem

Posted: Sat May 02, 2015 7:12 am
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$

Re: crazyradio connect problem

Posted: Sat May 02, 2015 12:06 pm
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....

Re: crazyradio connect problem

Posted: Sat May 02, 2015 1:05 pm
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.

Re: crazyradio connect problem

Posted: Sat May 02, 2015 8:08 pm
by floripaolo
works flawlessly now!!

thanks Chad!


:)

Re: crazyradio connect problem

Posted: Sat May 02, 2015 9:14 pm
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!! ;)