Repository: mie-lab/trackintel (language: python)

Issue:
Test on Windows are failing
Not sure yet what this is about:

```
In a future release, GeoPandas will switch to using Shapely by default. If you are using PyGEOS directly (calling PyGEOS functions on geometries from GeoPandas), this will then stop working and you are encouraged to migrate from PyGEOS to Shapely 2.0 (https://shapely.readthedocs.io/en/latest/migration_pygeos.html).
  import geopandas as gpd
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\a\trackintel\trackintel\trackintel\__init__.py", line 1, in <module>
    import trackintel.model
  File "D:\a\trackintel\trackintel\trackintel\model\__init__.py", line 1, in <module>
    from .positionfixes import PositionfixesAccessor
  File "D:\a\trackintel\trackintel\trackintel\model\positionfixes.py", line 8, in <module>
    from trackintel.visualization.positionfixes import plot_positionfixes
  File "D:\a\trackintel\trackintel\trackintel\visualization\__init__.py", line 1, in <module>
    from .locations import plot_locations
  File "D:\a\trackintel\trackintel\trackintel\visualization\locations.py", line 6, in <module>
    from trackintel.visualization.osm import plot_osm_streets
  File "D:\a\trackintel\trackintel\trackintel\visualization\osm.py", line 3, in <module>
    import osmnx as ox
  File "C:\Miniconda3\envs\test\lib\site-packages\osmnx\__init__.py", line 3, in <module>
    from ._api import *
  File "C:\Miniconda3\envs\test\lib\site-packages\osmnx\_api.py", line 17, in <module>
    from .geometries import geometries_from_address
  File "C:\Miniconda3\envs\test\lib\site-packages\osmnx\geometries.py", line 21, in <module>
    from shapely.geos import TopologicalError
ImportError: cannot import name 'TopologicalError' from 'shapely.geos' (C:\Miniconda3\envs\test\lib\site-packages\shapely\geos.py)
Error: Process completed with exit code 1.
```

https://github.com/mie-lab/trackintel/actions/runs/3679511054/jobs/6224048994


Discussion / hints:
So far we imported pygeos as extra dependency. Now they incorporated pygeos into shapely breaking some of our code (probably mine).
Maybe it is a bug on their side.

Fix patch:
diff --git a/environment.yml b/environment.yml
index 65a84044..e4f74f77 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,11 +3,11 @@ channels:
   - conda-forge
   - defaults
 dependencies:
-- python=3.8
+- python
 - numpy
 - matplotlib
 - pandas
-- geopandas>=0.9.0
+- geopandas>=0.10.0
 - scikit-learn
 - networkx 
 - pint
@@ -18,3 +18,4 @@ dependencies:
 - tqdm
 - similaritymeasures
 - pygeos>=0.10.0
+- shapely<=1.8.5
diff --git a/requirements.txt b/requirements.txt
index 50b7e258..d06bec23 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
 numpy
 matplotlib
 pandas
-geopandas>=0.9.0
+geopandas>=0.10.0
 scikit-learn
 networkx 
 pint 
@@ -12,4 +12,5 @@ tqdm
 similaritymeasures
 pygeos>=0.10.0
 virtualenv
-pytest
\ No newline at end of file
+pytest
+shapely<=1.8.5
diff --git a/setup.py b/setup.py
index 0e4040c9..19fbf226 100644
--- a/setup.py
+++ b/setup.py
@@ -41,13 +41,13 @@
     "matplotlib",
     "numpy",
     "pint",
-    "shapely",
+    "shapely<=1.8.5",
     "networkx",
     "geoalchemy2",
     "osmnx",
     "scikit-learn",
     "tqdm",
-    "geopandas>=0.9.0",
+    "geopandas>=0.10.0",
     "similaritymeasures",
     "pygeos>=0.10.0",
 ]


Test patch:
diff --git a/.github/envs/39-latest-conda-forge.yaml b/.github/envs/39-latest-conda-forge.yaml
index a035431f..618b7934 100644
--- a/.github/envs/39-latest-conda-forge.yaml
+++ b/.github/envs/39-latest-conda-forge.yaml
@@ -2,7 +2,7 @@ name: test
 channels:
   - conda-forge
 dependencies:
-- python=3.9
+- python
 
 # required
 - matplotlib
@@ -19,7 +19,7 @@ dependencies:
 - similaritymeasures
 - jupyter
 - geopandas>=0.10.0
-- shapely
+- shapely<=1.8.5
 - pygeos>=0.10.0
 
 # tests