marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.02k stars 516 forks source link

I cannot even run the examples from the Notebook , having this error : AttributeError: 'DataFrame' object has no attribute 'crs' #88

Open chrkarg opened 2 years ago

chrkarg commented 2 years ago

Look around but couldnt figure out what the issue might be. Has anyone have any idea what is the problem and how to fix it??

Thanks!

barneygovan commented 2 years ago

It's because it's pinned to an old version of osmnx which no longer works.

pip install osmnx==1.2.1

fixed this for me.

chrkarg commented 2 years ago

Thanks for your fast response mate. Just gave this a try and still have the same issue though :(

larsschwarz commented 2 years ago

Upgrading osmnx from 1.0.1 to 1.2.1 did fix it for me, too

albusdemens commented 2 years ago

I had the same issue on OSX and I could not fix it. Everything worked fine once I switched to Ubuntu (osmnx: 1.0.1).

MauritsDescamps commented 2 years ago

Upgrading to osmnx: 1.2.1 on OSX fixed it for me.

sudhamsugurijala commented 2 years ago

It's because it's pinned to an old version of osmnx which no longer works.

pip install osmnx==1.2.1

fixed this for me.

This worked for me on windows 10 💙

vincenzocassaro commented 1 year ago

it give me this error

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. prettymaps 0.1.3 requires osmnx==1.0.1, but you have osmnx 1.2.1 which is incompatible.

Tseing commented 1 year ago

it give me this error

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. prettymaps 0.1.3 requires osmnx==1.0.1, but you have osmnx 1.2.1 which is incompatible.

I met the same problem. But it also gave me this info Successfully installed osmnx-1.2.1. I tried to generate example picture and it worked normally. So you can ignore this error info :)

archoak commented 1 year ago

it give me this error ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. prettymaps 0.1.3 requires osmnx==1.0.1, but you have osmnx 1.2.1 which is incompatible.

I met the same problem. But it also gave me this info Successfully installed osmnx-1.2.1. I tried to generate example picture and it worked normally. So you can ignore this error info :)

exactly

Pranav4399 commented 1 year ago

I'm trying to host the prettymaps code in github actions but I'm not able to install both prettymaps and osmnx if I change the version of osmnx from 1.0.1 to 1.2.1. I'm getting the error shown below. If I try to use the 1.0.1 version itself, the crs error is popping up. Any help would be greatly appreciated.

image