You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run prettymaps recently I got the following error after a successful install:
File "<stdin>", line 1, in <module>
File "/home/nigel/.cache/pypoetry/virtualenvs/badlands-SJrMlJjj-py3.11/lib/python3.11/site-packages/prettymaps/draw.py", line 916, in plot
gdfs = get_gdfs(query, layers, radius, dilate, -rotation)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nigel/.cache/pypoetry/virtualenvs/badlands-SJrMlJjj-py3.11/lib/python3.11/site-packages/prettymaps/fetch.py", line 197, in get_gdfs
perimeter = get_perimeter(
^^^^^^^^^^^^^^
File "/home/nigel/.cache/pypoetry/virtualenvs/badlands-SJrMlJjj-py3.11/lib/python3.11/site-packages/prettymaps/fetch.py", line 100, in get_perimeter
perimeter = get_boundary(query, radius, circle=circle, rotation=rotation)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nigel/.cache/pypoetry/virtualenvs/badlands-SJrMlJjj-py3.11/lib/python3.11/site-packages/prettymaps/fetch.py", line 58, in get_boundary
boundary = ox.project_gdf(
^^^^^^^^^^^^^^
AttributeError: module 'osmnx' has no attribute 'project_gdf'. Did you mean: 'project_graph'?
Appears to be osmnx is now at 2.0.1, and the dependencies in prettymaps are for >1.9. In version 2 the project_gdf method has been removed, but forcing the dependency back to 1.9.3 (or, <2 in my case using Poetry) resolves the issue.
The text was updated successfully, but these errors were encountered:
When trying to run
prettymaps
recently I got the following error after a successful install:Appears to be
osmnx
is now at 2.0.1, and the dependencies inprettymaps
are for>1.9
. In version 2 theproject_gdf
method has been removed, but forcing the dependency back to1.9.3
(or,<2
in my case using Poetry) resolves the issue.The text was updated successfully, but these errors were encountered: