Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adsbcot not found in /usr/local/bin/ #41

Open
CyHigg opened this issue Apr 11, 2024 · 9 comments
Open

adsbcot not found in /usr/local/bin/ #41

CyHigg opened this issue Apr 11, 2024 · 9 comments

Comments

@CyHigg
Copy link

CyHigg commented Apr 11, 2024

First time running through the documents so pardon the ignorance.

I'm running a raspberry pi 4 8gb ( Bookworm version released 3-15-2024)

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!

@ampledata
Copy link
Collaborator

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

@CyHigg
Copy link
Author

CyHigg commented Apr 12, 2024

Thanks - that did the trick. Any reason why asyncinotify wouldn't have installed? Thats showing up as missing on the journalctl logs.

@ampledata
Copy link
Collaborator

ampledata commented Apr 12, 2024

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

@CyHigg
Copy link
Author

CyHigg commented Apr 12, 2024

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'.

@CyHigg
Copy link
Author

CyHigg commented Apr 12, 2024

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

@ampledata
Copy link
Collaborator

I misspelled asyncnotify, it should be asyncinotify.

@CyHigg
Copy link
Author

CyHigg commented Apr 12, 2024

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
Apr 12 14:06:46 raspberrypi adsbcot[2428]: import pytak
Apr 12 14:06:46 raspberrypi adsbcot[2428]: ModuleNotFoundError: No module named 'pytak'
Apr 12 14:06:46 raspberrypi systemd[1]: adsbcot.service: Main process exited, code=exited, status=1/FAILURE
Apr 12 14:06:46 raspberrypi systemd[1]: adsbcot.service: Failed with result 'exit-code'.

@ampledata
Copy link
Collaborator

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

@CyHigg
Copy link
Author

CyHigg commented Apr 24, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants