Repository: aws-deepracer-community/deepracer-utils (language: python)

Issue:
ERROR: Impossible to load track
```
tu = TrackIO()
track: Track = tu.load_track("reinvent_base")
track.road_poly
```
leads to 
```
ValueError: Input must be >= 1-d.
```


Discussion / hints:
This is due to shapely now 'by default' is installed as version 2.0. Dependency to be updated to demand <2.0.

Fix patch:
diff --git a/requirements.txt b/requirements.txt
index 66c6d22..b44725e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,10 +10,8 @@ versioneer>=0.18
 boto3>=1.12.0
 python-dateutil<3.0.0,>=2.1
 numpy>=1.18.0
-shapely>=1.7.0
+shapely>=1.7.0,<2.0
 matplotlib>=3.1.0
 pandas>=1.0.0
 scikit-learn>=0.22.0
-jupyterlab>=2.0.0
-jupytext>=1.3.4
 joblib>=0.17.0
\ No newline at end of file
diff --git a/setup.py b/setup.py
index c43d8a1..49edabf 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@
         'boto3>=1.12.0',
         'python-dateutil<3.0.0,>=2.1',
         'numpy>=1.18.0',
-        'shapely>=1.7.0',
+        'shapely>=1.7.0,<2.0',
         'matplotlib>=3.1.0',
         'pandas>=1.0.0',
         'scikit-learn>=0.22.0',


Test patch:
diff --git a/tests/deepracer/track_utils/test_track_utils.py b/tests/deepracer/track_utils/test_track_utils.py
index 6204886..06492cf 100644
--- a/tests/deepracer/track_utils/test_track_utils.py
+++ b/tests/deepracer/track_utils/test_track_utils.py
@@ -1,6 +1,6 @@
 import numpy as np
 
-from deepracer.tracks import GeometryUtils
+from deepracer.tracks import GeometryUtils, TrackIO
 
 
 class TestGeometryUtils:
@@ -67,3 +67,10 @@ def test_get_a_point_on_a_line_closest_to_point_2(self):
                 [0.0, 0.0], [2.0, -1.0], [4.0, 3.0]
             )
         )
+
+
+class TestLoadTrack:
+
+    def test_load_a_track(self):
+        tu = TrackIO(base_path='./deepracer/track_utils/tracks')
+        tu.load_track('reinvent_base')
\ No newline at end of file
diff --git a/tests/deepracer/track_utils/tracks/reinvent_base.npy b/tests/deepracer/track_utils/tracks/reinvent_base.npy
new file mode 100644
index 0000000..abe6de7
Binary files /dev/null and b/tests/deepracer/track_utils/tracks/reinvent_base.npy differ