Page 1 of 2

python system wide usage

Posted: Fri Jan 29, 2016 6:32 am
by com683
i am running into issues with command line "echo 'export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH' >> ~/.bashrc
source ~/.bashrc"

im trying to run it but it keeps saying not a valid identifier ? im novice with this type of thing im using a macbook pro trying to run this drone thank you

Re: python system wide usage

Posted: Fri Jan 29, 2016 8:10 pm
by chad
Hi com683,

It seems you want to try to run the Crazyflie client directly on your Mac, not using the VM, right?

There looks to be a number of things wrong with your command-line there... Can you tell me where you got the instructions to run that command?

I think the easiest way to get the client running on your Mac is to use one of the following setups, either Homebrew or MacPorts (I prefer MacPorts). The instructions are here in the client Read Me file. Look under the heading "Mac OS X."

Re: python system wide usage

Posted: Fri Jan 29, 2016 9:28 pm
by com683
i relied on the same site you use but im struggling i installed macports i uninstalled python and homebrew because that was the method i was using originally but now i just have macports thank you for your help perhaps you can walk me through the steps via chat if you are on around 8 pm tonight est ?

Re: python system wide usage

Posted: Sat Jan 30, 2016 2:00 am
by chad
com683 wrote:thank you for your help
You're welcome.
com683 wrote:i relied on the same site you use
It's not clear to me that you used that Read Me I linked to... The Read Me explains installing Python 3 and you are clearly using Python 2.7 in the command line you posted.
com683 wrote:perhaps you can walk me through the steps via chat if you are on around 8 pm tonight est ?
Have confidence in yourself! The Read Me is very straightforward. If you follow the directions, you should be successful. You can post further questions here.

Re: python system wide usage

Posted: Sat Jan 30, 2016 3:02 am
by com683
i got it working via your route however the Gui interface is not showing the yaw and pitch in the screen it stays on the horizon all the time here is a picture i move the drone around and it is not showing up on the computer

Re: python system wide usage

Posted: Sat Jan 30, 2016 6:00 am
by com683
i have a new issue i cleared it all out and now im redoing it all from scratch but this one port failed and im stuck atm :(
just look at the end
---> Cleaning py34-nose
---> Fetching archive for py34-numpy
---> Attempting to fetch py34-numpy-1.10.4_0+gfortran.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit ... py34-numpy
---> Attempting to fetch py34-numpy-1.10.4_0+gfortran.darwin_15.x86_64.tbz2 from http://packages.macports.org/py34-numpy
---> Attempting to fetch py34-numpy-1.10.4_0+gfortran.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/py34-numpy
---> Fetching distfiles for py34-numpy
---> Attempting to fetch numpy-1.10.4.tar.gz from https://github.com/numpy/numpy/tarball/v1.10.4
---> Verifying checksums for py34-numpy
---> Extracting py34-numpy
---> Applying patches to py34-numpy
---> Configuring py34-numpy
---> Building py34-numpy
---> Staging py34-numpy into destroot
---> Installing py34-numpy @1.10.4_0+gfortran
---> Activating py34-numpy @1.10.4_0+gfortran
---> Cleaning py34-numpy
---> Fetching archive for py34-opengl-accelerate
---> Attempting to fetch py34-opengl-accelerate-3.1.0_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit ... accelerate
---> Attempting to fetch py34-opengl-accelerate-3.1.0_0.darwin_15.x86_64.tbz2 from http://packages.macports.org/py34-opengl-accelerate
---> Attempting to fetch py34-opengl-accelerate-3.1.0_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/py3 ... accelerate
---> Fetching distfiles for py34-opengl-accelerate
---> Attempting to fetch PyOpenGL-accelerate-3.1.0.tar.gz from https://pypi.python.org/packages/source ... ccelerate/
---> Verifying checksums for py34-opengl-accelerate
---> Extracting py34-opengl-accelerate
---> Configuring py34-opengl-accelerate
---> Building py34-opengl-accelerate
---> Staging py34-opengl-accelerate into destroot
---> Installing py34-opengl-accelerate @3.1.0_0
---> Activating py34-opengl-accelerate @3.1.0_0
---> Cleaning py34-opengl-accelerate
---> Fetching archive for py34-opengl
---> Attempting to fetch py34-opengl-3.1.0_0.darwin_15.noarch.tbz2 from http://mse.uk.packages.macports.org/sit ... y34-opengl
---> Attempting to fetch py34-opengl-3.1.0_0.darwin_15.noarch.tbz2 from http://packages.macports.org/py34-opengl
---> Attempting to fetch py34-opengl-3.1.0_0.darwin_15.noarch.tbz2 from http://lil.fr.packages.macports.org/py34-opengl
---> Fetching distfiles for py34-opengl
---> Attempting to fetch PyOpenGL-3.1.0.tar.gz from https://pypi.python.org/packages/source/P/PyOpenGL/
---> Verifying checksums for py34-opengl
---> Extracting py34-opengl
---> Applying patches to py34-opengl
---> Configuring py34-opengl
---> Building py34-opengl
---> Staging py34-opengl into destroot
---> Installing py34-opengl @3.1.0_0
---> Activating py34-opengl @3.1.0_0
---> Cleaning py34-opengl
---> Activating dbus @1.8.16_0
Error: org.macports.activate for port dbus returned: Image error: /Library/LaunchAgents/org.freedesktop.dbus-session.plist already exists and does not belong to a registered port. Unable to activate port dbus. Use 'port -f activate dbus' to force the activation.
Error: Failed to install dbus
Please see the log file for port dbus for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_dbus/dbus/main.log
Error: The following dependencies were not installed: py34-pyqt4 dbus-python34 dbus dbus-glib glib2 pcre py34-sip qt4-mac libmng py34-scipy swig-python bison bison-runtime m4 gsed swig
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port py34-pyqtgraph failed

Re: python system wide usage

Posted: Sat Jan 30, 2016 6:59 am
by chad
com683 wrote:Error: org.macports.activate for port dbus returned: Image error: /Library/LaunchAgents/org.freedesktop.dbus-session.plist already exists and does not belong to a registered port. Unable to activate port dbus. Use 'port -f activate dbus' to force the activation.
Error: Failed to install dbus
Please see the log file for port dbus for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_dbus/dbus/main.log
Error: The following dependencies were not installed: py34-pyqt4 dbus-python34 dbus dbus-glib glib2 pcre py34-sip qt4-mac libmng py34-scipy swig-python bison bison-runtime m4 gsed swig
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port py34-pyqtgraph failed
Hello!

Thanks for the whole log but it's obvious the errors are here. Please read your output! You can either delete the plist files that remain from your previous MacPorts installs or you can run the commands with "-force" as these error messages suggest. Once you've taken care of that, the remaining dependencies should install just fine.

What version of the Crazyflie client are you using? There was a problem where the artificial horizon graphic would not update with some firmware versions. If you install the latest cfclient software that should be fixed.

Regards!!

Re: python system wide usage

Posted: Sat Jan 30, 2016 9:48 pm
by com683
in order to delete the plist where do i go or do i run a command for this ? i have 2.0 crazy flie version

Re: python system wide usage

Posted: Sat Jan 30, 2016 11:35 pm
by com683
im still having trouble i come across this issue i uninstalled macports completely and now i have this issue need addressed im unable to fly my drone which is cruddy lol but here is the log file and im not sure what to look for thank you for your help sir im really novice at this but flying it was fun for the short time that i had it running i was able to control it well

version:1
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_swig/swig-python/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/swig/work
:debug:clean changing euid/egid - current euid: 0 - current egid: 0
:debug:clean egid changed to: 501
:debug:clean euid changed to: 502
:debug:main Executing org.macports.main (swig-python)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Sat Jan 30 18:27:51 EST 2016
:msg:archivefetch ---> Fetching archive for swig-python
:debug:archivefetch Executing org.macports.archivefetch (swig-python)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch ---> swig-python-3.0.8_0.darwin_15.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch ---> Attempting to fetch swig-python-3.0.8_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sit ... wig-python
:debug:archivefetch Fetching archive failed:: Resolving timed out after 30792 milliseconds
:msg:archivefetch ---> Attempting to fetch swig-python-3.0.8_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/swig-python
:msg:archivefetch ---> Attempting to fetch swig-python-3.0.8_0.darwin_15.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/swig-python
:debug:archivefetch failed verification with key /opt/local/share/macports/macports-pubkey.pem
:debug:archivefetch openssl output: Verification Failure
child process exited abnormally
:warn:archivefetch Failed to verify signature for archive!
:error:archivefetch org.macports.archivefetch for port swig-python returned: archivefetch failed for swig-python @3.0.8_0
:debug:archivefetch Error code: NONE
:debug:archivefetch Backtrace: archivefetch failed for swig-python @3.0.8_0
while executing
"portarchivefetch::fetchfiles"
(procedure "portarchivefetch::archivefetch_main" line 5)
invoked from within
"portarchivefetch::archivefetch_main org.macports.archivefetch"
("eval" body line 1)
invoked from within
"eval $procedure $targetname"
:info:archivefetch Warning: targets not executed for swig-python: org.macports.activate org.macports.archivefetch org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:error:archivefetch Failed to install swig-python
:debug:archivefetch could not read "/opt/local/share/swig/3.0.8/windows.i": no such file or directory
while executing
"::file type $file"
:notice:archivefetch Please see the log file for port swig-python for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_swig/swig-python/main.log

Re: python system wide usage

Posted: Sun Jan 31, 2016 12:08 am
by chad
Why don't you just use the Bitcraze 0.6 VM instead of trying to get the client installed on your computer. Also, did you know you can simply use your Android phone or iPhone to fly the Crazyflie 2? Maybe that would be easier for you to get flying again?

I'm not sure what you're trying to do based on the log but those are MacPorts errors related to the installation of swig-python. You can open the file:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_swig/swig-python/main.log

Like it says at the bottom of the error log you pasted and likely see what the problem is...