OS X 10.7+ Python 2.7 (2.7.9 would be best because it includes pip, a package installer)
- Download https://bootstrap.pypa.io/get-pip.py
- Install pip (as admin)
python get-pip.py
So you don't muck up your system python. See http://docs.python-guide.org/en/latest/dev/virtualenvs/.
pip install virtualenv
virtualenv riotest
source riotest/bin/activate
Into the virtualenv you activated above.
pip install https://www.dropbox.com/s/x9iksjv4qb2b6ab/rasterio-0.16-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl?dl=1
Here are a couple quick tests.
rio --version
should print "0.16"
rio transform --src_crs EPSG:4326 --dst_crs EPSG:3857 "[-105, 40]"
should print "[-11688546.533293728, 4865942.279503176]"
deactivate
closes up the virtualenv.
If it works, leave a comment with your OS X version, Python version (and whether system, homebrew, macports), and a thumbs up below. If it doesn't work, can you kindly paste the traceback or error along with OS and Python details?
(riotest)NHV-laptop-7:~ nhv$ rio --version
Traceback (most recent call last):
File "/Users/nhv/riotest/bin/rio", line 7, in
from rasterio.rio.main import cli
File "/Users/nhv/riotest/lib/python2.7/site-packages/rasterio/init.py", line 8, in
from rasterio._base import eval_window, window_shape, window_index
ImportError: dlopen(/Users/nhv/riotest/lib/python2.7/site-packages/rasterio/_base.so, 2): Symbol not found: ___sincos_stret
Referenced from: /Users/nhv/riotest/lib/python2.7/site-packages/rasterio/.dylibs/libproj.0.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /Users/nhv/riotest/lib/python2.7/site-packages/rasterio/.dylibs/libproj.0.dylib
Stack Overflow has a hint
http://stackoverflow.com/questions/25926495/symbol-not-found-sincos-stret
In examining the declarations of the various sincos functions in /usr/include/math.h on my OS X 10.9 system, they are all marked as __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_NA), meaning they wouldn't be available on your 10.8 system. So my guess would be that the version of root you're using is compiled against OS X 10.9. –