You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon importing the Sentinel2 class from eodal.core.sensors import Sentinel2 on my Windows machine, i get the following error message: File "C:\Users\gperich\python_venvs\eodal\lib\site-packages\eodal\core\utils\geometry.py", line 129, in <module> def multi_to_single_points(point_features: gpd.GeoDataFrame | Path) -> gpd.GeoDataFrame: TypeError: unsupported operand type(s) for |: 'type' and 'type'
The error traces back to the multi_to_single_points function in the geometry.py file in the core\utils folder. I suspect Windows doesn't like the | operation? Or is it a python issue? I am on Python 3.9.7
The text was updated successfully, but these errors were encountered:
this is unfortunately an issue of missing backwards compatibility (regarding the Python version). The | operator was introduced in Python 3.10 instead of the Union operator (from typing import Union).
This means in Python 3.9
Upon importing the Sentinel2 class
from eodal.core.sensors import Sentinel2
on my Windows machine, i get the following error message:File "C:\Users\gperich\python_venvs\eodal\lib\site-packages\eodal\core\utils\geometry.py", line 129, in <module> def multi_to_single_points(point_features: gpd.GeoDataFrame | Path) -> gpd.GeoDataFrame: TypeError: unsupported operand type(s) for |: 'type' and 'type'
The error traces back to the
multi_to_single_points
function in thegeometry.py
file in the core\utils folder. I suspect Windows doesn't like the | operation? Or is it a python issue? I am on Python 3.9.7The text was updated successfully, but these errors were encountered: