1

I can't understand why that one was closed as off-topic by Kersten, BERA, whyzar, aldo_tapia, ArMoraer Dec 5 '17 at 15:56 due to "Questions relating to general IT or with no clear GIS component, ..."

geopandas is pythons GIS component and there are 753 other search results with geopandas.


tim C's original question: I would like to begin with geopandas but I have an issue when I import it. Terminal return me this message :

>>>import geopandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/geopandas/__init__.py", line 1, in <module>
    from geopandas.geoseries import GeoSeries
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/geopandas/geoseries.py", line 12, in <module>
    from geopandas.base import GeoPandasBase, _series_unary_op, _CoordinateIndexer
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/geopandas/base.py", line 14, in <module>
    from rtree.core import RTreeError
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/rtree/__init__.py", line 1, in <module>
    from .index import Rtree
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/rtree/index.py", line 5, in <module>
    from . import core
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/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

I tried many things to install spatialindex but it didn't work. Somebody can help me ?
PS : i'm on macOS

closed as off-topic by Kersten, BERA, whyzar, aldo_tapia, ArMoraer Dec 5 '17 at 15:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions relating to general IT or with no clear GIS component, are off-topic here but can be researched/asked at Stack Overflow (software development), Super User (computing hardware and software), Database Administrators (relational databases) and other SE sites" – Kersten, BERA, whyzar, aldo_tapia, ArMoraer
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    This question could be better, but it's on topic. Geopandas is GIS software. There's a clear GIS component here. – sgillies Dec 7 '17 at 14:43
  • What did you try? – nmtoken Dec 7 '17 at 20:19
  • I tried to install spatialindex with pip, brew or directly with github source, and to install again Rtree – Tim C. Dec 8 '17 at 9:05
4

You can install libspatialindex using Homebrew. Just run:

brew install spatialindex

  • I already do this brew install spatialindex > Warning: spatialindex 1.8.5 is already installed. And I still have the error – Tim C. Dec 5 '17 at 11:24
  • Try installing Rtree now with easy_install or pip – Hamri Said Dec 5 '17 at 13:06
  • It seems to be already done Requirement already satisfied: Rtree in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages Requirement already satisfied: setuptools in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages (from Rtree) – Tim C. Dec 5 '17 at 13:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.