snstac / adsbcot

Display Aircraft in TAK - ADS-B to TAK Gateway
https://adsbcot.rtfd.io
Apache License 2.0
86 stars 22 forks source link

adsbexchange Pi image fails to install #19

Open dbussert opened 1 year ago

dbussert commented 1 year ago

Install fails on python3 -m pip install adsbcot[with_pymodes], this is with fresh adsbexchange image running on a Pi3.

pi@adsbexchange:~ $ python3 -m pip install adsbcot[with_pymodes]
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting adsbcot[with_pymodes]
  Downloading https://www.piwheels.org/simple/adsbcot/adsbcot-5.1.1-py3-none-any.whl (13 kB)
Collecting pytak>=5.4.0
  Downloading https://www.piwheels.org/simple/pytak/pytak-5.4.1-py3-none-any.whl (21 kB)
Collecting aircot>=1.2.0
  Downloading https://www.piwheels.org/simple/aircot/aircot-1.2.0-py3-none-any.whl (12 kB)
Collecting aiohttp<4.0.0
  Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.8.3-cp39-cp39-linux_armv7l.whl (926 kB)
     |████████████████████████████████| 926 kB 284 kB/s
Collecting pymodes>=2.8
  Downloading pymodes-2.14.tar.gz (392 kB)
     |████████████████████████████████| 392 kB 1.9 MB/s
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 171, in _merge_into_criterion
    crit = self.state.criteria[name]
KeyError: 'pymodes'
dbussert commented 1 year ago

this issue indicates this is known, but it's not clear that the README.md was actually updated to say not to use pymodes? https://github.com/ampledata/adsbcot/issues/15

ampledata commented 1 year ago

@dbussert thanks for the heads-up on this. I don't remember how I got this all mixed up. I'm pretty sure I did have non-http working on my adsbexchange pi, but then again, I should've also mentioned the http workaround like I said I would. I'll dig in a report back.

ampledata commented 1 year ago

PYTHONPATH=./local/lib/python3.9 DUMP1090_URL=tcp+beast://localhost .local/bin/adsbcot
2023-01-19 22:46:57,091 pytak INFO - COT Dest: udp://239.2.3.1:6969
2023-01-19 22:46:57,095 pytak INFO - COT Dest: udp://239.2.3.1:6969
2023-01-19 22:46:57,095 pytak INFO - Run: <class 'pytak.classes.CLITool'>
2023-01-19 22:46:57,105 pytak INFO - Running <class 'adsbcot.classes.ADSBNetReceiver'> for tcp+beast://localhost
2023-01-19 22:46:57,110 pytak INFO - Running <class 'adsbcot.classes.ADSBNetWorker'> for data_type: beast
2023-01-19 22:46:57,111 pytak INFO - Run: <class 'pytak.classes.TXWorker'>
2023-01-19 22:46:57,112 pytak INFO - Run: <class 'pytak.classes.RXWorker'>```
ampledata commented 1 year ago

@dbussert if you don't mind testing again, can you try:

sudo apt install libatlas-base-dev

or

python3 -m pip install pyrtlsdr

Then try to install pymodes again?

dbussert commented 1 year ago

I ended up switching to HTTP mode, which worked fine. This might be OBE now that adsbexchange has imploded. If