Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if it is python, then why no linux? #44

Open
meoso opened this issue Oct 16, 2018 · 4 comments
Open

if it is python, then why no linux? #44

meoso opened this issue Oct 16, 2018 · 4 comments

Comments

@meoso
Copy link

meoso commented Oct 16, 2018

if it is python, then why no linux?

@Dom4n
Copy link

Dom4n commented Jan 27, 2019

Linux guide :

Somewhere in home directory:

  • wget https://github.com/Plasmatree/PID-Analyzer/archive/master.zip
  • unzip master.zip
  • cd PID-Analyzer-master
  • virtualenv -p python3 venv
  • source venv/bin/activate
  • pip install -r requirements.txt

build blackbox_decode (needed)
Somewhere else in home directory (second console):

  • download last source from here: https://github.com/betaflight/blackbox-tools/releases
  • unpack somewhere
  • run make obj/blackbox_decode in unpacked directory
  • if make is not available first install it: sudo apt-get install make gcc
  • copy blackbox_decode from obj to PID-Analyzer-master

Run analyzer (run in first console - You must have virtualenv enabled):
python PID-Analyzer.py --blackbox_decode ./blackbox_decode -l /path/to/log/LOG.BFL

Add nice emoticon to this guide if it worked 👍 🙄 😃

@JamesKingdon
Copy link

If you have multiple versions of Python installed you may need to specify pip3 instead of pip, and edit the PID-Analyzer.py script to use python3:

#!/usr/bin/env python3

@meoso
Copy link
Author

meoso commented Oct 19, 2019

i get this with or without the virt-env:

$ sudo pip3 install -r requirements.txt
[...]
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-u792xpp6 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython "numpy==1.9.3; python_version=='3.5'" "numpy==1.12.1; python_version=='3.6'" "numpy==1.13.1; python_version>='3.7'"" failed with error code 1 in None

EDIT: However, if i skip the requirements.txt and install the packages manually by name only (not versions) they install successfully and was able to execute python3 ./PID-Analyzer.py -l ../input.BBL --blackbox_decode ./blackbox_decodesuccessfully

Ubuntu 19.04
Linux 5.0.0-32-generic #34-Ubuntu SMP Wed Oct 2 02:06:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@dentex
Copy link

dentex commented Feb 28, 2020

Add nice emoticon to this guide if it worked +1 roll_eyes smiley

I also needed virtualenv and python3-tk (on Linux Mint 19.2) but then it worked great.
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants