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

AttributeError: module 'stratuxcot' has no attribute 'icao_int_to_hex' #9

Closed
ampledata opened this issue May 20, 2021 · 0 comments
Closed

Comments

@ampledata
Copy link
Collaborator

stratuxcot -U tcp:x.x.x.x:8088 -W ws://127.0.0.1/traffic
2021-05-19 23:51:47,296 pytak INFO - Running EventReceiver
2021-05-19 23:51:47,296 pytak INFO - Running EventWorker
2021-05-19 23:51:47,298 pytak INFO - Running StratuxWorker
2021-05-19 23:51:47,461 pytak INFO - Connected to 'ws://127.0.0.1/traffic'
{'craft': {'Icao_addr': 10576882, 'Reg': 'N189UW', 'Tail': 'N189UW', 'Emitter_category': 0, 'OnGround': False, 'Addr_type': 0, 'TargetType': 1, 'SignalLevel': -10.810108686165359, 'Squawk': 0, 'Position_valid': False, 'Lat': 0, 'Lng': 0, 'Alt': 34000, 'GnssDiffFromBaroAlt': 0, 'AltIsGNSS': False, 'NIC': 8, 'NACp': 8, 'Track': 0, 'TurnRate': 0, 'Speed': 0, 'Speed_valid': False, 'Vvel': 0, 'Timestamp': '2021-05-20T06:52:28.696Z', 'PriorityStatus': 0, 'Age': 0, 'AgeLastAlt': 0, 'Last_seen': '0001-01-01T03:20:34.91Z', 'Last_alt': '0001-01-01T03:20:34.91Z', 'Last_GnssDiff': '0001-01-01T00:00:00Z', 'Last_GnssDiffAlt': 0, 'Last_speed': '0001-01-01T00:00:00Z', 'Last_source': 1, 'ExtrapolatedPosition': False, 'Last_extrapolation': '0001-01-01T00:00:00Z', 'AgeExtrapolation': 0, 'Lat_fix': 0, 'Lng_fix': 0, 'Alt_fix': 0, 'BearingDist_valid': False, 'Bearing': 0, 'Distance': 0, 'DistanceEstimated': 10458.813445767173, 'DistanceEstimatedLastTs': '2021-05-20T06:52:28.696Z', 'ReceivedMsgs': 1}, 'stale': 120, 'known_craft': {}, 'time': datetime.datetime(2021, 5, 20, 6, 52, 28, 753378, tzinfo=datetime.timezone.utc), 'cot_stale': 120, 'icao_hex': 'A163F2', 'flight': 'N189UW', 'craft_type': '', 'reg': 'N189UW', 'name': 'ICAO-A163F2', 'callsign': 'N189UW-N189UW-', 'category': 0, 'cot_type': 'a-.-A-C'}
Task completed: <Task finished coro=<StratuxWorker.run() done, defined at /usr/local/lib/python3.7/dist-packages/stratuxcot/classes.py:98> exception=AttributeError("module 'stratuxcot' has no attribute 'icao_int_to_hex'")>
ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<StratuxWorker.run() done, defined at /usr/local/lib/python3.7/dist-packages/stratuxcot/classes.py:98> exception=AttributeError("module 'stratuxcot' has no attribute 'icao_int_to_hex'")>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/stratuxcot/classes.py", line 129, in run
    await self.handle_message(j_event)
  File "/usr/local/lib/python3.7/dist-packages/stratuxcot/classes.py", line 92, in handle_message
    icao = stratuxcot.icao_int_to_hex(msg.get("Icao_addr"))
AttributeError: module 'stratuxcot' has no attribute 'icao_int_to_hex'
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

1 participant