-
Notifications
You must be signed in to change notification settings - Fork 10
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
Networks fail to download in notebook 01 #23
Comments
Should add that I haven't touched anything with the parameters or anything else etc. This is straight after cloning and setting up the enviroment. Working with the default Lyon and Paris cities. |
Thx! Could you check if it was this issue? geopandas/geopandas#1887 (comment) |
Took a deeper look and managed to get passed this issue. Not entirely sure why, but if you install using miniforge and mamba rather than with conda and the anaconda prompt, we don't get this issue. I did try and solve the issue which arises from installing via conda but haven't got it sorted yet. It does seem related to this issue. Given mamba works (and is open, opposed to conda!), it's probably not worth digging much deeper 👍 |
Without having looked into it yet, I agree that conda might be the problem. We will still need to update the readme, so this was still very useful, thx. Will keep it open until fixed. If you run into other problems please create more github issues - so we can make this code run for as many people as possible. |
Hi all,
Using a completely fresh clone of the repo and fresh install of the enviroment, I cannot pass the first script! Error occurs duing the "Networks" section of the data download/wrangle. I've included the terminal output below. These are the versions of python/key libs that are downloaded when starting from scratch:
Python implementation: CPython
Python version : 3.12.6
IPython version : 8.27.0
pandas : 2.2.2
osmnx : 1.9.4
networkx : 3.3
shapely : 2.0.6
fiona : 1.10.1
matplotlib: 3.8.4
numpy : 1.26.4
geopandas : 0.14.4
These seem to match which what I would expect given what's in the enviroment file, so not quite sure where the issue lies.
If there is anything else I can provide please let me know!
Full error output is as follows:
CRSError Traceback (most recent call last)
Cell In[4], line 3
1 for placeid, placeinfo in tqdm(cities.items(), desc = "Cities"):
2 if placeinfo["nominatimstring"] != '':
----> 3 location = ox.geocoder.geocode_to_gdf(placeinfo["nominatimstring"])
4 location = fill_holes(extract_relevant_polygon(placeid, shapely.geometry.shape(location['geometry'][0])))
5 if debug: # Draw location polygons and their holes
File c:\Users\b8008458\Anaconda3\envs\growbikenet\Lib\site-packages\osmnx\geocoder.py:143, in geocode_to_gdf(query, which_result, by_osmid, buffer_dist)
141 # reset GeoDataFrame index and set its CRS
142 gdf = gdf.reset_index(drop=True)
--> 143 gdf = gdf.set_crs(settings.default_crs)
145 # if buffer_dist was passed in, project the geometry to UTM, buffer it in
146 # meters, then project it back to lat-lon
147 if buffer_dist is not None and len(gdf) > 0:
File c:\Users\b8008458\Anaconda3\envs\growbikenet\Lib\site-packages\geopandas\geodataframe.py:1325, in GeoDataFrame.set_crs(self, crs, epsg, inplace, allow_override)
1323 else:
1324 df = self
-> 1325 df.geometry = df.geometry.set_crs(
1326 crs=crs, epsg=epsg, allow_override=allow_override, inplace=True
1327 )
1328 return df
...
--> 348 self._local.crs = _CRS(self.srs)
File c:\Users\b8008458\Anaconda3\envs\growbikenet\Lib\site-packages\pyproj_crs.pyx:2378, in pyproj._crs._CRS.init()
CRSError: Invalid projection: epsg:4326: (Internal Proj Error: proj_create: no database context specified)
The text was updated successfully, but these errors were encountered: