PID-Analyzer icon indicating copy to clipboard operation
PID-Analyzer copied to clipboard

if it is python, then why no linux?

Open meoso opened this issue 6 years ago • 4 comments

if it is python, then why no linux?

meoso avatar Oct 16 '18 19:10 meoso

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 :+1: :roll_eyes: :smiley:

Dom4n avatar Jan 27 '19 22:01 Dom4n

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

JamesKingdon avatar Sep 05 '19 12:09 JamesKingdon

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

meoso avatar Oct 19 '19 18:10 meoso

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.

dentex avatar Feb 28 '20 08:02 dentex