How To Install mlat-client in Virtual Envirnoment

How To Install mlat-client in Virtual Envirnoment

(1) Issue following command to create a new blank file:

sudo nano install-mlat-client-venv.sh

(2) Copy paste following code in new blank file created by above command.

#!/bin/bash

## Pre-requisite: Install Build-Tools & Dependencies
apt install -y \
git \
python3 \
python3-build \
python3-setuptools \
python3-wheel \
python3-pip

## Build & Install mlat-client
VENV=/usr/share/mlat-client
git clone https://github.com/mutability/mlat-client mlat-client-source
cd mlat-client-source
/usr/bin/python3 -m venv --system-site-packages --without-pip ${VENV}
source ${VENV}/bin/activate
${VENV}/bin/python -m build --no-isolation --wheel
${VENV}/bin/python -m pip install --no-index --no-deps --ignore-installed --require-virtualenv ${PWD}/dist/MlatClient-*.whl

Save and close file

(3) Make file executeable

sudo chmod +x  install-mlat-client-venv.sh

(4) Run file by following command

sudo bash install-mlat-client-venv.sh

On completion, you will see this:
image

(5) Check Creation:

ls /usr/share/mlat-client 
ls /usr/share/mlat-client/bin

You will see this:
image

 

(6) Test-run on Radarbox24 feeder

sudo nano /etc/rbfeeder.ini

Commented-out line starting with mlat_cmd=
Added following line:

mlat_cmd=/usr/share/mlat-client/bin/python3.11  /usr/share/mlat-client/bin/mlat-client

 

sudo systemctl restart rbfeeder   

sudo systemctl status rbfeeder  

 

image

 

@obj

A COMPARISON

 

Source-code & Method Used in the Opening Post of This Thread Source-code & Method Currently Used by Adsbfi
Uses source code from mutability/mlat-client Uses source code from adsbfi/mlat-client-adsbfi
→ which is forked from wiedehopf/mlat-client
→ which is forked from adsb-related-code/mlat-client (this repository belongs to adsbexchange)
→ which is forked from mutability/mlat-client


Version of mlat-client = 0.2.13 Version of mlat-client = 4.11
(actually 0.2.11 re-numbered)


Uses following current & recommended commands:

python -m build --no-isolation --wheel
python -m pip install dist/MlatClient-*.whl
Uses following depricated commands:

python3 setup.py build
python3 setup.py install


Folder containing executables:
/usr/share/mlat-client/bin/
Folder containing executables:
/usr/local/share/adsbfi/venv/bin/

 

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.