# Arm64 - mlat-client vs. Python3

**URL:** <https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808>\
**Category:** ADS-B Flight Tracking\
**Created:** [October 5, 2019, 9:33pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808 "2019-10-05T21:33:23Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jokessler](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jokessler/32/114631_2.png) [@jokessler](https://discussions.flightaware.com/u/jokessler)\
**Post date:** [October 5, 2019, 9:33pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/1 "2019-10-05T21:33:23Z")

</div>

I have a small problem here, set up a new feeder based on arm64 Debian.

Compiled and installed dump1090-fa just fine, build piaware using piaware-builder and installed everything.  
Dump1090-fa works, piaware works but mlat-client does not work.

Armbian 4.4.184-rockchip64, Piaware 3.7.2, Python 2.7.16 & 3.7.3

systemctl status reports:  
mlat-client(3637): Fatal Python error: initfsencoding: Unable to get the locale encoding  
mlat-client(3637): ImportError: invalid flags 1554269952 in ‘encodings’  
mlat-client(3637): Current thread 0x0000007fa2bfa010 (most recent call first):  
got EOF from multilateration client  
fa-mlat-client exited with SIG SIGABRT

How do I get mlat-client working as the issue is related to an incompatibility with Python3 as google suggests.

---

<div class="post-metadata">

**Author:** ![wiedehopf](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/wiedehopf/32/137844_2.png) [@wiedehopf](https://discussions.flightaware.com/u/wiedehopf)\
**Post date:** [October 5, 2019, 9:35pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/2 "2019-10-05T21:35:51Z")

</div>

After doing ./sensible-build.sh stretch:  
In package-stretch directory do the following:

```auto
rm -r cx_Freeze-5.1.1
git clone https://github.com/anthony-tuininga/cx_Freeze.git cx_Freeze-5.1.1

```

Compile again and install.  
It should work then.

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [October 5, 2019, 9:50pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/3 "2019-10-05T21:50:49Z")

</div>

@jokessler  
I faced same problem, and found workaround when @obj advised that the problem is due to cx\_Freez. Have a look at these two posts:

> [@Piaware v 3.7.1 on Debian 10.0 (Buster) amd64 / Intel PC](https://discussions.flightaware.com/t/piaware-v-3-7-1-on-debian-10-0-buster-amd64-intel-pc/52414/47):
>
> MLAT Fails on Debian Buster amd64 Fatal Python error: initfsencoding: Unable to get the locale encoding ImportError: invalid flags 1554269952 in ‘encodings’ got EOF from multilateration client fa-mlat-client exited with SIG SIGABRT . Details Stn # 76000 abcd@debian:~$ apt-cache policy piaware piaware: Installed: 3.7.1 abcd@debian:~$ cat /etc/os-release | grep PRETTY PRETTY\_NAME="Debian GNU/Linux 10 (buster)" abcd@debian:~$ uname -a Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5…

> [@Piaware v 3.7.1 on Debian 10.0 (Buster) amd64 / Intel PC](https://discussions.flightaware.com/t/piaware-v-3-7-1-on-debian-10-0-buster-amd64-intel-pc/52414/52):
>
> [S O L V E D] (1) From piaware\_builder/package-stretch, deleted folder cx\_Freeze-5.1.1 (2) Cloned cx\_Freeze from https://github.com/anthony-tuininga/cx\_Freeze.git and renamed it cx\_Freeze-5.1.1 (3) Build and installed piaware. git clone https://github.com/flightaware/piaware\_builder.git cd piaware\_builder ./sensible-build.sh stretch cd package-stretch sudo rm -rf cx\_Freeze-5.1.1 git clone https://github.com/anthony-tuininga/cx\_Freeze.git cx\_Freeze-5.1.1 sudo dpkg-buildpackage -b cd …

---

<div class="post-metadata">

**Author:** ![jokessler](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/jokessler/32/114631_2.png) [@jokessler](https://discussions.flightaware.com/u/jokessler)\
**Post date:** [October 5, 2019, 10:05pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/4 "2019-10-05T22:05:13Z")

</div>

Many thanks for the quick response.  
And happy to report that mlat-client is working now.

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [October 6, 2019, 6:02pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/5 "2019-10-06T18:02:07Z")

</div>

As it is now confirmed that cx\_Freez-5.1.1 is causing mlat/Python3 issue on some distros/architecture, hopefully @obj will take care of it in the next version of piaware\_builder.

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [October 7, 2019, 4:26am UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/6 "2019-10-07T04:26:07Z")

</div>

Yeah, I’ll be fixing this when I do the work to support Buster shortly.

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [October 7, 2019, 4:33am UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/7 "2019-10-07T04:33:21Z")

</div>

Thanks a lot.  
[B][/b]

---

<div class="post-metadata">

**Author:** ![drd31](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/drd31/32/107332_2.png) [@drd31](https://discussions.flightaware.com/u/drd31)\
**Post date:** [December 10, 2019, 7:14am UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/8 "2019-12-10T07:14:56Z")

</div>

Running on Debian Buster AMD64.

I used the dev branch building for Buster, and MLAT worked great - but ADS-B upload stopped completely. FAUP1090 was running, and I could see position data on stdout; but nothing seemed to be getting to the statistics page. Planes could be seen on the local webserver.

I’ve gone back to master, building for Debian Stretch, and ADS-B works fine, but, of course, no MLAT. Any ideas?

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [December 10, 2019, 5:09pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/9 "2019-12-10T17:09:43Z")

</div>

> [@drd31](#):
>
> I could see position data on stdout

Uh, what?

Also, when did you try this and what commit from the dev branch were you using?

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [December 10, 2019, 6:04pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/10 "2019-12-10T18:04:22Z")

</div>

@obj  
About half an hour ago on **Debian 10.2 amd64** , I finished installing **Piaware 3.8.0~dev** and dump1090-mutbility EB\_VERSION. All seems OK on local checks. On stats page three buttons are green, but stats are not populating.

Some issue at Servers?

[https://flightaware.com/adsb/stats/user/abcd567#stats-114692](https://flightaware.com/adsb/stats/user/abcd567#stats-114692)

```auto
Dec 10 12:38:58 debian piaware[1952]: creating pidfile /run/piaware/piaware.pid
Dec 10 12:38:58 debian piaware[1952]: ****************************************************
Dec 10 12:38:58 debian piaware[1952]: piaware version 3.8.0~dev is running, process ID 1952
Dec 10 12:38:58 debian piaware[1952]: your system info is: Linux debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
Dec 10 12:39:00 debian piaware[1952]: Connecting to FlightAware adept server at piaware.flightaware.com/1200
Dec 10 12:39:00 debian piaware[1952]: Connection with adept server at piaware.flightaware.com/1200 established
Dec 10 12:39:00 debian piaware[1952]: TLS handshake with adept server at piaware.flightaware.com/1200 completed
Dec 10 12:39:00 debian piaware[1952]: FlightAware server certificate validated
Dec 10 12:39:00 debian piaware[1952]: encrypted session established with FlightAware
Dec 10 12:39:01 debian piaware[1952]: adept reported location: 43.xxxxx, -79.xxxxx, 4xxft AMSL
Dec 10 12:39:01 debian piaware[1952]: Receiver location changed, restarting dump1090 and skyaware978
Dec 10 12:39:01 debian piaware[1952]: attempting to restart dump1090..
Dec 10 12:39:01 debian piaware[1952]: can't restart dump1090, no services that look like dump1090 found
Dec 10 12:39:01 debian piaware[1952]: attempting to restart skyaware978..
Dec 10 12:39:01 debian piaware[1952]: can't restart skyaware978, no services that look like skyaware978 found
Dec 10 12:39:01 debian piaware[1952]: logged in to FlightAware as user abcd567
Dec 10 12:39:01 debian piaware[1952]: my feeder ID is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Dec 10 12:39:01 debian piaware[1952]: site statistics URL: https://flightaware.com/adsb/stats/user/abcd567#stats-114692
Dec 10 12:39:01 debian piaware[1952]: NOTICE from adept server: Use of development versions of piaware is not recommended. Please use a supported stable version.
Dec 10 12:39:01 debian piaware[1952]: ADS-B data program 'dump1090-mutab' is listening on port 30005, so far so good
Dec 10 12:39:01 debian piaware[1952]: Starting faup1090: /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx
Dec 10 12:39:01 debian piaware[1952]: Started faup1090 (pid 1967) to connect to dump1090-mutab
Dec 10 12:39:01 debian piaware[1952]: UAT support disabled by local configuration setting: uat-receiver-type
Dec 10 12:39:01 debian piaware[1952]: multilateration data requested
Dec 10 12:39:02 debian piaware[1952]: Starting multilateration client: /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,localhost:30104 --results beast,listen,30105 --results ext_basestation,listen,30106 --udp-transport 70.42.6.204:8624:4108051657
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): fa-mlat-client 0.2.11 starting up
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): Using UDP transport to 70.42.6.204 port 8624
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): Listening for Beast-format results connection on port 30105
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): Listening for Extended Basestation-format results connection on port 30106
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): Route MTU changed to 1500
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): Input connected to localhost:30005
Dec 10 12:39:02 debian piaware[1952]: mlat-client(1970): Input format changed to BEAST, 12MHz clock
Dec 10 12:39:02 debian piaware[1952]: piaware received a message from dump1090-mutab!
Dec 10 12:39:03 debian piaware[1952]: mlat-client(1970): Beast-format results connection with ::1:30104: connection established
Dec 10 12:39:06 debian piaware[1952]: piaware has successfully sent several msgs to FlightAware!
Dec 10 12:39:33 debian piaware[1952]: 25 msgs recv'd from dump1090-mutab; 25 msgs sent to FlightAware
Dec 10 12:44:33 debian piaware[1952]: 187 msgs recv'd from dump1090-mutab (162 in last 5m); 187 msgs sent to FlightAware
Dec 10 12:49:33 debian piaware[1952]: 456 msgs recv'd from dump1090-mutab (269 in last 5m); 456 msgs sent to FlightAware
```

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [December 10, 2019, 6:12pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/11 "2019-12-10T18:12:44Z")

</div>

> [@obj](#):
>
> Also, when did you try this and what commit from the dev branch were you using?

I tried it today at about 12:30 EDT

### (1) dump1090

```auto
sudo apt install dump1090-mutability
sudo dpkg-reconfigure dump1090-mutability
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
sudo reboot

```

  

### (2) PIAWARE

```auto
sudo apt install git build-essential debhelper
sudo apt install tcl8.6-dev python3-dev python3-venv libz-dev dh-systemd libboost-system-dev
sudo apt install libboost-program-options-dev libboost-regex-dev libboost-filesystem-dev 

sudo apt install net-tools tclx8.4 tcllib tcl-tls itcl3

git clone https://github.com/flightaware/piaware_builder.git
cd piaware_builder
git checkout dev
./sensible-build.sh buster
cd package-buster
sudo dpkg-buildpackage -b

cd ../
sudo dpkg -i piaware_3.8.0~dev_amd64.deb 

```

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/3/2/32925c6a3d19e8b4a2697c2d4881bf23724fb9f5.png)

---

<div class="post-metadata">

**Author:** ![abcd567](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/abcd567/32/113769_2.png) [@abcd567](https://discussions.flightaware.com/u/abcd567)\
**Post date:** [December 10, 2019, 6:59pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/12 "2019-12-10T18:59:26Z")

</div>

@obj

```auto
abcd@debian:~/piaware_builder$ git checkout dev
Branch 'dev' set up to track remote branch 'dev' from 'origin'.
Switched to a new branch 'dev'

abcd@debian:~/piaware_builder$ git log
commit f6ab1594567cf3cf1ed3252278a6cd1f0084702a (HEAD -> dev, origin/dev)
Author: Oliver Jowett <oliver@mutability.co.uk>
Date: Thu Nov 28 13:41:46 2019 +0800

    Add a rule for building on Ubuntu disco per report on the forums

```

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [December 10, 2019, 8:14pm UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/13 "2019-12-10T20:14:02Z")

</div>

OK; this is probably just that the server side hasn’t been updated to process data from 3.8.0~dev yet. (it’s mostly there but it looks like we missed one spot)

---

<div class="post-metadata">

**Author:** ![drd31](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/drd31/32/107332_2.png) [@drd31](https://discussions.flightaware.com/u/drd31)\
**Post date:** [December 11, 2019, 12:45am UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/14 "2019-12-11T00:45:40Z")

</div>

By saw it on stdout I mean that from the console

/usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat -32.xxx --lon 115.xxx

abcd567 seems to have replicated what I saw.

---

<div class="post-metadata">

**Author:** ![drd31](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/drd31/32/107332_2.png) [@drd31](https://discussions.flightaware.com/u/drd31)\
**Post date:** [December 22, 2019, 3:55am UTC](https://discussions.flightaware.com/t/arm64-mlat-client-vs-python3/55808/15 "2019-12-22T03:55:48Z")

</div>

Running PiAware (Debian Package Add-on) 3.8.0~dev

As of Saturday 21st ADS-B stats are being updated. Thanks.
