x72y5e / radar

Display flight data on the UnicornHatHD module for Raspberry Pi
MIT License
24 stars 4 forks source link

ImportError: No module named 'unicornhathd' #6

Closed IT-Berater closed 5 years ago

IT-Berater commented 5 years ago

Hi,

i have Successfully uninstalled unicornhathd-0.0.4 then:

python3 ./tracker.py Traceback (most recent call last): File "./tracker.py", line 12, in import unicornhathd as u ImportError: No module named 'unicornhathd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./tracker.py", line 14, in except ModuleNotFoundError: NameError: name 'ModuleNotFoundError' is not defined

x72y5e commented 5 years ago

Are you sure you are using Python 3 and not 2? ModuleNotFoundError should be defined in 3, but it is not in 2. I have replaced the ModuleNotFoundError with ImportError anyway - this should work for you.

IT-Berater commented 5 years ago

~/radar $ python3 -V Python 3.5.3

IT-Berater commented 5 years ago

Works fine. Thanks:

me:~/radar $ python3 ./tracker.py No unicorn hat found. Printing to console only. getting data... 52.185 -0.45799999999999996 19.0 From: None To: None Type: Cyclone Airsports Pegasus Quantum 15-912 Operator: Private Altitude: 1550 Last Info: 0.01 seconds ago

From: None To: None Type: Vans RV-9 A Operator: Private Altitude: 1800 Last Info: 0.03 seconds ago

What are the right values for config.json?

{"bottom_left": [51.074, -0.713], "top_right": [53.296, -0.203], "fixed_points": [[52.438, -0.464]], "range": 19.0}

What is the bold Value? And is the range in km or miles?