Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to pre-release OSMnx 2.0 & geopandas 1.0 #14

Open
anastassiavybornova opened this issue Sep 18, 2024 · 5 comments
Open

upgrade to pre-release OSMnx 2.0 & geopandas 1.0 #14

anastassiavybornova opened this issue Sep 18, 2024 · 5 comments
Assignees
Labels
future-request nice to have, but do this later

Comments

@anastassiavybornova
Copy link
Collaborator

current versions incompatible:

Could not solve for environment specs
The following packages are incompatible
├─ geopandas >=1.0  is requested and can be installed;
└─ osmnx >=1.9.4  is not installable because it requires
   └─ geopandas >=0.12,<0.15 , which conflicts with any installable versions previously reported.
@anastassiavybornova anastassiavybornova added the future-request nice to have, but do this later label Sep 18, 2024
@anastassiavybornova
Copy link
Collaborator Author

OSMnx migration - tracking warnings

FutureWarning: The geometries module and geometries_from_X functions have been renamed the features module and features_from_X functions. Use these instead. The geometries module and function names are deprecated and will be removed in the v2.0.0 release. See the OSMnx v2 migration guide: gboeing/osmnx#1123
gdf = ox.geometries.geometries_from_polygon(location, poitag)

FutureWarning: The get_undirected function is deprecated and will be removed in the v2.0.0 release. Replace it with convert.to_undirected instead. See the OSMnx v2 migration guide: gboeing/osmnx#1123
Gu = ox.bearing.add_edge_bearings(ox.get_undirected(G))

@anastassiavybornova
Copy link
Collaborator Author

Tracking pyproj deprecation warnings

FutureWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1
transformed_sw = pyproj.transform(p_ll, p_mt, sw.x, sw.y) # Transform NW point to equidistant

@gboeing
Copy link

gboeing commented Sep 27, 2024

@anastassiavybornova in the meantime, if it's useful, you can install the pre-release of OSMnx 2.0.0 beta from pip if you need GeoPandas >=1.0 compatibility. The beta is at this point pretty well tested and an rc is coming shortly.

@anastassiavybornova
Copy link
Collaborator Author

@gboeing thanks for the hint!

@anastassiavybornova anastassiavybornova changed the title migrate to geopandas 1.0 once osmnx 2.0 is out upgrade to pre-release OSMnx 2.0 & geopandas 1.0 Sep 28, 2024
@anastassiavybornova anastassiavybornova self-assigned this Sep 28, 2024
@gboeing
Copy link

gboeing commented Nov 24, 2024

OSMnx 2.0.0 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future-request nice to have, but do this later
Projects
None yet
Development

No branches or pull requests

2 participants