Comments (12)
Thanks @sgillies, good point - looks like a conda-forge issue.
Indeed. Please report it at https://github.com/conda-forge/osmnx-feedstock/issues
However, it does seems like you are mixing packages from defaults
and conda-forge
. If you isolate that in an env it should be OK.
conda create --yes -c conda-forge -n OSMNX python=3.6 osmnx
source activate OSMNX
python -c 'import osmnx; print(osmnx.__version__)'
0.2.1
from osmnx.
Wow! The snippet posted by @ocefpaf worked perfectly! Thank you all so much for your help and for making it possible for me to use such an awesome library!
from osmnx.
@JasonSanchez @gboeing this is an Anaconda or conda-forge packaging issue. There's nothing the Fiona project can do to solve it.
from osmnx.
@ocefpaf that was my suspicion, too.
from osmnx.
Thanks @ocefpaf. As this is an issue with conda installation rather than with the OSMnx codebase itself, I'm going to close this here. For future reference, if anyone has this problem please open an issue at https://github.com/conda-forge/osmnx-feedstock/issues
from osmnx.
Can you open a new terminal window or Jupyter notebook and then run this line of Python code:
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
From your trace, it looks like it's a problem with Fiona and your installed GDAL version. If the above Fiona import line does indeed fail, you'll want to open an issue at the Fiona repo because it looks like the problem is with that dependency. I don't have a Mac so I'm not sure I can reproduce this error.
from osmnx.
Thanks @sgillies, good point - looks like a conda-forge issue.
from osmnx.
@ocefpaf +1 - I encountered this too. Thanks for the suggestion.
from osmnx.
Hi all, although everything was working, now it is broken again with a different error. I tried incredibly hard to solve the issue by myself and ended up spending several hours with no luck. Running the snippet from @ocefpaf on a clean install of Anaconda generates the following error:
MacBook-Pro-5:~ Jason$ python -c 'import osmnx; print(osmnx.__version__)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/osmnx/__init__.py", line 8, in <module>
from .core import *
File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/osmnx/core.py", line 20, in <module>
import geopandas as gpd
File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/geopandas/__init__.py", line 4, in <module>
from geopandas.io.file import read_file
File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/geopandas/io/file.py", line 3, in <module>
import fiona
File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/fiona/__init__.py", line 69, in <module>
from fiona.collection import Collection, BytesCollection, vsi_path
File "/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/fiona/collection.py", line 9, in <module>
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: dlopen(/Users/user/anaconda/envs/OSMNX1/lib/python3.6/site-packages/fiona/ogrext.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libicui18n.56.dylib
Referenced from: /Users/user/anaconda/envs/OSMNX1/lib/libgdal.20.dylib
Reason: image not found
At this point I will try pretty much anything to get it working again. I would very much appreciate your help in pointing me in the right direction.
from osmnx.
I also have this problem
from osmnx.
Please open issues related to the conda package at: https://github.com/conda-forge/osmnx-feedstock/issues
I recommend to check your .condarc
file and ensure that the conda-forge
channel is on top of defaults
before trying #25 (comment) again.
from osmnx.
For future reference, see conda-forge/osmnx-feedstock#14
from osmnx.
Related Issues (20)
- Vasu HOT 1
- Unable to plot superimposed image HOT 1
- street networks graphs not working HOT 3
- AttributeError: module 'osmnx' has no attribute 'clean_intersections' HOT 2
- Removal of inner_polygons from outer_polygons (creation of holes), creates maximum one hole. HOT 5
- Include parking space data in nodes HOT 7
- Fill missing values with most common value on similar roads HOT 4
- OSMnx 2.0 Migration Guide HOT 3
- Add junction/intersection types to nodes HOT 6
- Support directed bearing/orientation distributions and plots HOT 5
- Support loading and/or merging multiple networks HOT 5
- [Meta] Enable Discussions tab on this GitHub repo HOT 1
- Further API streamlining for v2 HOT 2
- _bearings_distribution: apply weight during histogram HOT 2
- Conditional tolerance for intersection consolidation HOT 16
- Add edge_attrs_differ argument to each graph.graph_from_* method HOT 2
- Add support for implicit maxspeed values
- `ox.shortest_path` returns `None` HOT 3
- Add function to merge parallel roads HOT 2
- Publish v2 pre-releases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmnx.