spifftek70 / Drone-Footprints

GNU Affero General Public License v3.0
24 stars 14 forks source link

TypeError: 'type' object is not subscriptable in geospatial_conversions.py #95

Closed dronevdl closed 5 months ago

dronevdl commented 5 months ago
Traceback (most recent call last):
  File "Drone_Footprints.py", line 14, in <module>
    from meta_data import process_metadata
  File "/disk/data/xxx/Drone-Footprints/src/meta_data.py", line 8, in <module>
    from FOV_prep import calculate_fov
  File "/disk/data/xxx/Drone-Footprints/src/FOV_prep.py", line 6, in <module>
    from new_fov import HighAccuracyFOVCalculator
  File "/disk/data/xxx/Drone-Footprints/src/new_fov.py", line 9, in <module>
    from Utils.geospatial_conversions import *
  File "/disk/data/xxx/Drone-Footprints/src/Utils/geospatial_conversions.py", line 70, in <module>
    def utm_to_latlon(easting:float, northing:float, zone_number:int, hemi:str)->tuple[float,float]:
TypeError: 'type' object is not subscriptable
sbonaime commented 5 months ago

What is your python version ? ( python --version) What Os ?

spifftek70 commented 5 months ago

Python 3.12.2 MacOS 14.1.1

dronevdl commented 5 months ago

Python 3.8.10 Ubuntu Focal Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz

spifftek70 commented 5 months ago

I'm working the issue and will push something out later today... hopefully

dronevdl commented 5 months ago

The tuple[T] syntax only works in Python 3.9 and up.

spifftek70 commented 5 months ago

try now?

spifftek70 commented 5 months ago

Fixed.