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.
It seems the bug is caused by osmnx which is not compatible with shapely 2.0. I could fix it by setting the requirements to shapely <= 1.8.5 in the environment. 
So I guess for now the solution is that we set this requirement until shapely is compatible. 
I encountered this error again when installing trackintel with conda `conda install trackintel`. I guess its related to the shapely and osmnx compatibility issue. Now v1.3.0 OSMnx supports v2.0 Shapely, so we should delete the shapely requirements in our environment.

Fix patch:
diff --git a/environment.yml b/environment.yml
index e4f74f77..43655c1f 100644
--- a/environment.yml
+++ b/environment.yml
@@ -6,7 +6,6 @@ dependencies:
 - python
 - numpy
 - matplotlib
-- pandas
 - geopandas>=0.10.0
 - scikit-learn
 - networkx 
@@ -18,4 +17,3 @@ dependencies:
 - tqdm
 - similaritymeasures
 - pygeos>=0.10.0
-- shapely<=1.8.5
diff --git a/requirements.txt b/requirements.txt
index d06bec23..e4de6003 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,5 @@
 numpy
 matplotlib
-pandas
 geopandas>=0.10.0
 scikit-learn
 networkx 
@@ -12,5 +11,3 @@ tqdm
 similaritymeasures
 pygeos>=0.10.0
 virtualenv
-pytest
-shapely<=1.8.5


Test patch:
diff --git a/.github/envs/39-latest-conda-forge.yaml b/.github/envs/39-latest-conda-forge.yaml
index 618b7934..57d86f4c 100644
--- a/.github/envs/39-latest-conda-forge.yaml
+++ b/.github/envs/39-latest-conda-forge.yaml
@@ -19,7 +19,6 @@ dependencies:
 - similaritymeasures
 - jupyter
 - geopandas>=0.10.0
-- shapely<=1.8.5
 - pygeos>=0.10.0
 
 # tests