Skip to content

MAINT: Updating geospatial example to be compatible with osmnx=2.0.0 - #7746

Merged
rossbar merged 3 commits into
networkx:mainfrom
Schefflera-Arboricola:osmnx_fix
Nov 27, 2024
Merged

rossbar merged 3 commits into
networkx:mainfrom
Schefflera-Arboricola:osmnx_fix

Conversation

@Schefflera-Arboricola

@Schefflera-Arboricola Schefflera-Arboricola commented Nov 27, 2024 •

Copy link
Copy Markdown
Member

fixes : https://app.circleci.com/pipelines/github/networkx/networkx/10267/workflows/6a5107f0-2b94-4d0d-b182-61bad3d990cd/jobs/17280

CI failure messages:

Extension error:
Here is a summary of the problems encountered when running the examples:

Unexpected failing examples (1):

    ../examples/geospatial/plot_osmnx.py failed leaving traceback:

    Traceback (most recent call last):
      File "/home/circleci/project/examples/geospatial/plot_osmnx.py", line 30, in <module>
        G = ox.speed.add_edge_speeds(G)
            ^^^^^^^^
    AttributeError: module 'osmnx' has no attribute 'speed'

Extension error:
Here is a summary of the problems encountered when running the examples:

Unexpected failing examples (1):

    ../examples/geospatial/plot_osmnx.py failed leaving traceback:

    Traceback (most recent call last):
      File "/home/circleci/project/examples/geospatial/plot_osmnx.py", line 34, in <module>
        gdf_nodes, gdf_edges = ox.utils_graph.graph_to_gdfs(G)
                               ^^^^^^^^^^^^^^
    AttributeError: module 'osmnx' has no attribute 'utils_graph'

Extension error:
Here is a summary of the problems encountered when running the examples:

Unexpected failing examples (1):

    ../examples/geospatial/plot_osmnx.py failed leaving traceback:

    Traceback (most recent call last):
      File "/home/circleci/project/examples/geospatial/plot_osmnx.py", line 39, in <module>
        D = ox.convert.get_digraph(G, weight="travel_time")
            ^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: module 'osmnx.convert' has no attribute 'get_digraph'. Did you mean: 'to_digraph'?

refer - gboeing/osmnx@58869d0#diff-1c293536c2ec4ee8b9be943c97ea182945c7a35c43729414d781b11765de4434 , gboeing/osmnx#1146

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for chasing this down @Schefflera-Arboricola !!

I think it is quite reasonable to update the example dependency to osmnx v2.0.

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants