Had an issue after upgrading QGIS. For some reason it was picking up an older version of numpy
and throwing the error:
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
Turns out the system python had an old version of numpy
installed. To figure this out:
$ /usr/bin/python
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.9.2'
>>> numpy.__path__
['/Library/Python/2.7/site-packages/numpy-override/numpy']
>>> exit()
The fix was simply moving that dir:
$ sudo mv /Library/Python/2.7/site-packages/numpy-override/numpy /Library/Python/2.7/site-packages/numpy-override/numpy_old