Thanks for that, so if it's commented out, what function does it serve when it's not, and what runs in its place when it's commented out.
Hi,
I think that python script located in /usr/bin/mlat-client should be modified by maintainers at the very 1-st line:
#!/usr/bin/python3.7
IMHO it should be just:
#!/usr/bin/python3
to avoid statically defined Python version. If Python will go higher version in the future, then the /usr/bin/mlat-client will know what to do :)
RaspberryPi OS has got symlinks (I'm still on "Buster" since RB doesn't support Bullseye yet):
1. /usr/bin/python - which links to symlink @python2 which links to python2.7 binary
2. /usr/bin/python3 - which links to python3.7 binary
mlat-client starting script is located in /etc/init.d directory
BTW, does anyone know when RB will upgrade their feeder to Debian Bullseye version?... ;)
Modifying the mlat line is not necessary as the mlat line is commented out (i.e. starts with a # ) and therefore ignored during execution.
Actually it is the mlat-client which has the python version hard-coded, and uses that version of python.
Please note that mlat-client package for each distro (Stretch, Buster, or Bullseye) is built on that distro, and when installed & run, selects version of python suitable for that particular distro, and won't work on another distro.
The correct version of pyhon3 is automatically selected by the mlat-client as follows:
On Stretch, it uses pyrthon 3.5
On Buster, it uses pyrthon 3.7
On Bullseye, it uses pyrthon 3.9
If you run command "
sudo systemctl status rbfeeder", you will find following lines in the output:
ON STRETCH:CGroup: /system.slice/rbfeeder.service
├─508 /usr/bin/rbfeeder
└─596 /usr/bin/python
3.5 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900
ON BUSTER:CGroup: /system.slice/rbfeeder.service
├─508 /usr/bin/rbfeeder
└─596 /usr/bin/python
3.7 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900
ON BULLSEYE:CGroup: /system.slice/rbfeeder.service
├─508 /usr/bin/rbfeeder
└─596 /usr/bin/python
3.9 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900
The mlat-client is installed from Radarbox24 repository by following command
sudo apt install mlat-client
There are two versions of mlat-client in Radarbox24 repository (1) for Stretch (2) for Buster. The apt checks the version of OS, and installs the matching version of mlat-client. As RB24 have not yet released their rbfeeder for Bullseye, their repository not yet has mlat-client for Bullseye.
For ease of users, I have built mlat-client on Bullseye and uploaded it to Github. Those who install on Bullseye the rbfeeder which is meant for Buster, using workaround posted by me, can download and install mlat-client for Bullseye from here:
https://github.com/abcd567a/mlat-client-package#readme.