Skip to content
This repository was archived by the owner on May 8, 2021. It is now read-only.
This repository was archived by the owner on May 8, 2021. It is now read-only.

Shapely install #3

@darribas

Description

@darribas

Trying to work my way through the tutorial. Stuck at the install part. I've created the environment as suggested in install.md and it seems to work just fine until shapely. conda seems to install it correctly:

In [1]: import shapely

In [2]:

However, when I try the following, I the an OSError:

In [2]: import shapely.geos
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-2-298ab485fd08> in <module>()
----> 1 import shapely.geos

/Users/dani/anaconda/envs/scipygis/lib/python2.7/site-packages/shapely/geos.py in <module>()
     63     alt_paths = [os.path.join(sys.prefix, 'lib', 'libgeos_c.dylib')]
     64     _lgeos = load_dll('geos_c', fallbacks=alt_paths)
---> 65     free = load_dll('c').free
     66     free.argtypes = [c_void_p]
     67     free.restype = None

/Users/dani/anaconda/envs/scipygis/lib/python2.7/site-packages/shapely/geos.py in load_dll(libname, fallbacks)
     51     raise OSError(
     52         "Could not find library %s or load any of its variants %s" % (
---> 53             libname, fallbacks or []))
     54
     55

OSError: Could not find library c or load any of its variants []

In [3]:

Any idea on why this happens and, particularly, how I can fix it? All comments and help mostly appreciated. I'm running conda on Mavericks:

(scipygis)kokopelli:Desktop dani$ conda info
Current conda install:

             platform : osx-64
        conda version : 3.5.5
       python version : 2.7.8.final.0
     root environment : /Users/dani/anaconda  (writable)
  default environment : /Users/dani/anaconda/envs/scipygis
     envs directories : /Users/dani/anaconda/envs
        package cache : /Users/dani/anaconda/pkgs
         channel URLs : http://repo.continuum.io/pkgs/free/osx-64/
                        http://repo.continuum.io/pkgs/pro/osx-64/
          config file : None
    is foreign system : False

(scipygis)kokopelli:Desktop dani$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions