That’d do it. The venvs used for the package build inherit the system environment for $reasons so a conflicting package in the system environment will break the build.
you should ask radarbox to isolate their mlat-client better.
edit: I pushed a change to the dev branch that may help, can you try again?
It is not fault of Radarbox24. The mlat-client package provided by Radarbox repository is numberd quit differently, it is version number 1:0.2.13+deb11 (Please see screenshot below).This version number does not tally with version number 0.2.13 built by piaware package.
Radarbox24 have not yet released their mlat-client for debian12 Bookworm. Their supplied version is for debian11 Bullseye, and it does not function properly on Bookworm. Terefore I built version 0.2.13 from source code right on Bookworm, and it worked ok with RB24. I did not realise it will create conflict with package built process of piaware.
The issue is that it’s a globally installed python package. I didn’t anticipate that this problem would happen when providing debian packaging for mlat-client; my assumption was that forks would take care to not conflict with the upstream package, by for example renaming the package, but that has not happened in this case.
I’m considering removing the separate debian packaging of mlat-client entirely since it’s really a starting point, not a fully fledged compatible-everywhere thing. You would need to install via the Python packaging tools (presumably in a venv, or deal with the consequences!), not build a Debian package. Would this break anything of yours?
I dont build & install mlat-client for anything except in case of Radarbox24 as they have not yet released their package for Bookworm. Once they release it, I wont need to build it from source code.
Anyway, this only affects the building of piaware package, and NOT the normal operation of piaware.
piaware 9.0.1 was installed from the repo, seems to be running fine. Mlatclient got created via wiedehopf his repo. For adsbexchange there is a python dependency not correct, because this is loaded within an virtual environment you need to edit the install script. When you edit the script and replace the adsbexchange/mlat-client repo for wiedehopf his mlat repo, its working fine.
For Radarbox24 feeder, I now tried to use mlat-client (which was build by adsbfi in virtual environment) This mlat-client works perfectly well for adsbfi-mlat, but FAILED when used for Radarbox24 feeder.
STEP-1: Located mlat-client built by adsbfi in venv
STEP-3: Restarted rbfeeder and checked status / logs. FAILED
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3248, in <module>
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: @_call_aside
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: ^^^^^^^^^^^
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3223, in _call_aside
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: f(*args, **kwargs)
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3261, in _initialize_master_working_set
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: working_set = WorkingSet._build_master()
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 619, in _build_master
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: return cls._build_from_requirements(__requires__)
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 632, in _build_from_requirements
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: dists = ws.resolve(reqs, Environment())
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 815, in resolve
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: dist = self._resolve_dist(
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: ^^^^^^^^^^^^^^^^^^^
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 856, in _resolve_dist
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: raise DistributionNotFound(req, requirers)
Dec 26 23:17:07 raspberrypi rbfeeder[37861]: pkg_resources.DistributionNotFound: The 'MlatClient==0.4.2' distribution was not found and is required by the application
Dec 27 16:17:05 raspberrypi systemd[1]: Started rbfeeder.service - RBFeeder Service.
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Starting RBFeeder Version 1.0.10 (build 20231120150000)
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Using configuration file: /etc/rbfeeder.ini
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Network-mode enabled.
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Remote host to fetch data: 127.0.0.1
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Remote port: 30005
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Remote protocol: BEAST
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Using GNSS (when available)
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Start date/time: 2023-12-27 16:17:05
Dec 27 16:17:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:05] Socket for ANRB created. Waiting for connections on port 32088
Dec 27 16:17:05 raspberrypi rbfeeder[605308]: mlat-client 0.4.2 starting up
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: Connected to multilateration server at mlat1.rb24.com:40900, handshaking
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: Server says:
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: AirNav Server
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: The multilateration server source code is available under
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: the terms of the Affero GPL (v3 or later). You may obtain
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: a copy of this server's source code at the following
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: location: https://github.com/adsbexchange/mlat-server
Dec 27 16:17:06 raspberrypi rbfeeder[605308]:
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: Handshake complete: Compression zlib2, UDP transport disabled, Split sync disabled
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: Input connected to 127.0.0.1:32457
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: Input format changed to BEAST, 12MHz clock
Dec 27 16:17:06 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:06] Connection established.
Dec 27 16:17:06 raspberrypi rbfeeder[605308]: Beast-format results connection with 127.0.0.1:32004: connection established
Dec 27 16:17:06 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:06] Client type: Raspberry Pi
Dec 27 16:17:06 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:06] Connection with RadarBox24 server OK! Key accepted by server.
Dec 27 16:17:06 raspberrypi rbfeeder[605299]: [2023-12-27 16:17:06] This is your station serial number: EXTRPI000036
Dec 27 16:18:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:18:05] ******** Statistics updated every 60 seconds ********
Dec 27 16:18:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:18:05] Packets sent in the last 60 seconds: 675, Total packets sent since startup: 675
Dec 27 16:18:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:18:05] Data sent: 34.0 KB
Dec 27 16:18:05 raspberrypi rbfeeder[605299]: [2023-12-27 16:18:05] Data received: 31 B
Dec 27 16:18:06 raspberrypi rbfeeder[605308]: Receiver: connected 257.7 msg/s received 90.8 msg/s processed (35%)
Dec 27 16:18:06 raspberrypi rbfeeder[605308]: Server: ready 0.0 kB/s from server 0.6 kB/s to server
Dec 27 16:18:06 raspberrypi rbfeeder[605308]: Results: 0.0 positions/minute
Dec 27 16:18:06 raspberrypi rbfeeder[605308]: Aircraft: 13 of 31 Mode S, 18 of 25 ADS-B used