python system wide usage

Post here to get support
com683
Beginner
Posts: 8
Joined: Fri Jan 29, 2016 6:30 am

Re: python system wide usage

Post by com683 »

i keep trying and trying and running into issues is there a way i can just remove all my attempts and have a fresh start im really struggling thanks for all the input
com683
Beginner
Posts: 8
Joined: Fri Jan 29, 2016 6:30 am

issues installing anything with macports

Post by com683 »

im trying to install the requirements for the crazy flie i had it running before but now its not i keep having to force the commands i searched for python and all macport clients deleted the folders and python folders i restarted the computer attempting a fresh install but i keep running into hickups any chance of being walked through this i had it running before but now im struggling allot thank you contact by email is faster so message me mrzahmed6@gmail.com thank you
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: python system wide usage

Post by chad »

com683 wrote:i keep trying and trying and running into issues is there a way i can just remove all my attempts and have a fresh start im really struggling thanks for all the input
To get rid of MacPorts, remove the following folders and files:

Code: Select all

/opt
/Library/LaunchAgents/org.freedesktop.dbus-session.plist
/Applications/MacPorts
Then read my blog post about running the latest client on a Mac.

If there are errors during the MacPorts installs, it's likely from files left over from the install you removed (files we missed). In that case, just remove the file listed in the error and re-run the last command you ran.

Finally, download this zip of the Crazyflie client and unzip it. Change into that directory and run the client with:

Code: Select all

python ./bin/client
Then you should be good and the artificial horizon will work in the GUI.
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.
mrzahmed6
Beginner
Posts: 4
Joined: Sun Jan 31, 2016 6:49 am
Location: NY, New York

trouble running cf client

Post by mrzahmed6 »

i have installed everything to a T from following the instructions to install on macports but when i try to run this command i get the following
MacBook-Pro:~ mirzaahmed$ /opt/local/bin/python2.7 bin/cfclient
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'bin/cfclient': [Errno 2] No such file or directory

from this direction specifically
I'm running on a mac thanks
Attachments
this is the step i tried to do but the file is not there or something
this is the step i tried to do but the file is not there or something
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: issues installing anything with macports

Post by chad »

com683 wrote:im trying to install the requirements for the crazy flie i had it running before but now its not i keep having to force the commands i searched for python and all macport clients deleted the folders and python folders i restarted the computer attempting a fresh install but i keep running into hickups any chance of being walked through this i had it running before but now im struggling allot thank you contact by email is faster so message me mrzahmed6@gmail.com thank you
Hi com683,

You already have a thread about your problems. Please don't open another. Furthermore, issues with MacPorts should be addressed on a MacPorts forum, not a the Bitcraze forum. MacPorts is simply a way to install some software needed by the Crazyfile python client. Other than that, it has nothing to do with Crazyflie or Bitcraze.

This thread has been merged with your original thread.
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.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: trouble running cf client

Post by chad »

mrzahmed6 wrote:i have installed everything to a T from following the instructions to install on macports but when i try to run this command i get the following
MacBook-Pro:~ mirzaahmed$ /opt/local/bin/python2.7 bin/cfclient
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'bin/cfclient': [Errno 2] No such file or directory

from this direction specifically
I'm running on a mac thanks
com683 (mrzahmed6),

Why did you create another account to post this? Please refrain from using multiple accounts and opening multiple threads about the same issue. I've merged this to your original thread.

You need to change into the crazyflie-clients-python directory to run the command you've shown. If you are not inside that directory when you execute that command, bin/cfclient will not be found.
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.
mrzahmed6
Beginner
Posts: 4
Joined: Sun Jan 31, 2016 6:49 am
Location: NY, New York

Re: python system wide usage

Post by mrzahmed6 »

i have it up and running I'm flying the drone however now i don't see any feed back on the display also i am unable to control input commands make it hover and such the drone needs adjustments in pitch and yaw but I'm unable to correct any suggestions
Attachments
Screen Shot 2016-01-31 at 5.24.08 PM.png
mrzahmed6
Beginner
Posts: 4
Joined: Sun Jan 31, 2016 6:49 am
Location: NY, New York

Re: python system wide usage

Post by mrzahmed6 »

sorry i made another account i tried to recover my password but was unable to because the site was not sending a reset email
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: python system wide usage

Post by chad »

mrzahmed6 wrote:i don't see any feed back on the display also i am unable to control input commands make it hover and such the drone needs adjustments in pitch and yaw but I'm unable to correct any suggestions
My friend,

It is especially aggravating when I'm spending time helping you and you disregard what I've already written. I explained exactly what you need to do to get the client working correctly in my previous post!

You are using the wrong python version and wrong client release. If you had read what I wrote, you would have seen that you need to install Python 3 and dependencies and use client version 2015.09. All of this is detailed in the blog post I linked you to.

If you don't want to read and try what I've already taken the time to write for you, I'm not inclined to help you any longer.
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.
mrzahmed6
Beginner
Posts: 4
Joined: Sun Jan 31, 2016 6:49 am
Location: NY, New York

Re: python system wide usage

Post by mrzahmed6 »

hi I've followed those steps to a T and i mean exactly how they were laid out i have the drone operating it flies and i control it fairly well however the gui on my computer is not showing horizon and i can't program any remote controls such as hover at altitude and whatnot i have pitch and yaw adjustment working but I can't get the hover button to work every time i push the button it kills the program i am using the version of python u recommended. i apologize for irritating you it was never my intention i only asked for help and you don't have to be so upset about it. though i am sorry i don't mean to make it aggrevating.
Post Reply