Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Rtree and a missing libspatialindex_c library file #45
Problem description (what did you do, what did you expect to happen, and what actually happened)
Importing osmnx on the Python REPL indicates a missing libspatialindex_c library file.
What operating system, architecture, Python version, and OSMnx version are you using?
Mac OS X 10.10.5 Yosemite, Python 2.7.12. osmnx 0.4.1
Code that reproduces the issue
>> import osmnx as ox Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/osmnx/__init__.py", line 8, in <module> from .core import * File "/usr/local/lib/python2.7/site-packages/osmnx/core.py", line 20, in <module> import geopandas as gpd File "/usr/local/lib/python2.7/site-packages/geopandas/__init__.py", line 1, in <module> from geopandas.geoseries import GeoSeries File "/usr/local/lib/python2.7/site-packages/geopandas/geoseries.py", line 16, in <module> from geopandas.base import GeoPandasBase File "/usr/local/lib/python2.7/site-packages/geopandas/base.py", line 15, in <module> from rtree.core import RTreeError File "/usr/local/lib/python2.7/site-packages/rtree/__init__.py", line 1, in <module> from .index import Rtree File "/usr/local/lib/python2.7/site-packages/rtree/index.py", line 5, in <module> from . import core File "/usr/local/lib/python2.7/site-packages/rtree/core.py", line 125, in <module> raise OSError("Could not find libspatialindex_c library file") OSError: Could not find libspatialindex_c library file
The solution was described in this blogpost:
This issue may be closed as I created this issue purely for documentation purposes.