adsbcot
adsbcot copied to clipboard
adsbcot not found in /usr/local/bin/
First time running through the documents so pardon the ignorance.
I'm running a raspberry pi 4 8gb ( Bookworm version released 3-15-2024)
-
I installed everything for flight aware
-
ran the following: sudo apt update wget https://github.com/ampledata/aircot/releases/latest/download/python3-aircot_latest_all.deb sudo apt install -f ./python3-aircot_latest_all.deb wget https://github.com/ampledata/pytak/releases/latest/download/python3-pytak_latest_all.deb sudo apt install -f ./python3-pytak_latest_all.deb wget https://github.com/ampledata/adsbcot/releases/latest/download/python3-adsbcot_latest_all.deb sudo apt install -f ./python3-adsbcot_latest_all.deb
-
created the adsbcot.service file and put it in the proper directory
-
I created the adsbcot.ini file in /etc (but its empty right now)
when look at the journalctl logs I see: adsbcot.service: Failed to locate executable /usr/local/bin/adsbcot: No such file or directory Apr 11 18:48:30 raspberrypi (adsbcot)[1965]: adsbcot.service: Failed at step EXEC spawning /usr/local/bin/adsbcot: No such file or directory
What did I do wrong?
Thank you in advance!
adsbcot may not have installed the executable in /usr/local/bin, try to run which adsbcot, and update the services file with that path, then run systemctl daemon-reload, and systemctl restart adsbcot
Thanks - that did the trick. Any reason why asyncinotify wouldn't have installed? Thats showing up as missing on the journalctl logs.
oh that's odd, can you paste the stack trace?
Work-around: sudo apt install python3-asyncnotify or sudo python3 -m pip install asyncnotify --break-system-packages
Sure:
Apr 12 13:49:54 raspberrypi adsbcot[7698]: needed = self.resolve(parse_requirements(requirements)) Apr 12 13:49:54 raspberrypi adsbcot[7698]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 12 13:49:54 raspberrypi adsbcot[7698]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 815, in resolve Apr 12 13:49:54 raspberrypi adsbcot[7698]: dist = self._resolve_dist( Apr 12 13:49:54 raspberrypi adsbcot[7698]: ^^^^^^^^^^^^^^^^^^^ Apr 12 13:49:54 raspberrypi adsbcot[7698]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 856, in _resolve_dist Apr 12 13:49:54 raspberrypi adsbcot[7698]: raise DistributionNotFound(req, requirers) Apr 12 13:49:54 raspberrypi adsbcot[7698]: pkg_resources.DistributionNotFound: The 'asyncinotify' distribution was not found and is required by adsbcot Apr 12 13:49:54 raspberrypi systemd[1]: adsbcot.service: Main process exited, code=exited, status=1/FAILURE Apr 12 13:49:54 raspberrypi systemd[1]: adsbcot.service: Failed with result 'exit-code'.
I ran both
sudo apt install python3-asyncnotify results in: E: Unable to locate package python3-asyncnotify
sudo python3 -m pip install asyncnotify --break-system-packages results in:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement asyncnotify (from versions: none) ERROR: No matching distribution found for asyncnotify
I misspelled asyncnotify, it should be asyncinotify.
Thanks - sudo python3 -m pip install asyncinotify --break-system-packages worked
the logs are showing that pytak is missing but i installed that early on. I'll keep poking around to see what happened.
Apr 12 14:06:46 raspberrypi adsbcot[2428]: return self.resolve()
Apr 12 14:06:46 raspberrypi adsbcot[2428]: ^^^^^^^^^^^^^^
Apr 12 14:06:46 raspberrypi adsbcot[2428]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2474, in resolve
Apr 12 14:06:46 raspberrypi adsbcot[2428]: module = import(self.module_name, fromlist=['name'], level=0)
Apr 12 14:06:46 raspberrypi adsbcot[2428]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 12 14:06:46 raspberrypi adsbcot[2428]: File "/usr/lib/python3/dist-packages/adsbcot/commands.py", line 21, in
CyHigg sorry for the problems you're having. Let's try installing adsbcot & pytak manually:
sudo python3 -m pip install pytak --break-system-packages
sudo python3 -m pip install aircot --break-system-packages
sudo python3 -m pip install adsbcot --break-system-packages
When I install python3-takproto_latest_all.deb - I get a message saying python3-takproto_latest_all.deb uses unknown compression for member 'control.tar.zst', giving up
see error below - I apologize for bothering you!
Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'python3-takproto' instead of './python3-takproto_latest_all.deb' The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. The following NEW packages will be installed: python3-takproto 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/8,684 B of archives. After this operation, 58.4 kB of additional disk space will be used. Get:1 /home/pi/python3-takproto_latest_all.deb python3-takproto all 2.1.1-1 [8,684 B] dpkg-deb: error: archive '/home/pi/python3-takproto_latest_all.deb' uses unknown compression for member 'control.tar.zst', giving up dpkg: error processing archive /home/pi/python3-takproto_latest_all.deb (--unpack): dpkg-deb --control subprocess returned error exit status 2 Errors were encountered while processing: /home/pi/python3-takproto_latest_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)