Actor error #12
-
Any reason why I may be getting this error when running the first actor example? Example code below.. stuck on "actor = Actor(config)" from valhalla import Actor, get_config import geopandas as gpd #BASEMAP_SOURCE = cx.providers.CartoDB.VoyagerNoLabels config = get_config(tile_extract='./custom_files/valhalla_tiles.tar', tile_dir="./custom_files/valhalla_tiles", verbose=False) location = actor.locate({"verbose": True, "locations":[{"lat":42.500561,"lon":1.512509}]}) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I guess you didn’t build any graph before, like the error message is saying. If you read the README, it should clarify things. |
Beta Was this translation helpful? Give feedback.
-
Actually we could change the example code so it’s self-contained. If you look into the test directory there’s a tiles.tar of Utrecht, which we could use. Need to clone the repo for that though. I’ll also add a one liner to the documentation to create a graph with docker. |
Beta Was this translation helpful? Give feedback.
I guess you didn’t build any graph before, like the error message is saying. If you read the README, it should clarify things.