N82106:build bward$ python
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 02:16:08)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysdg as sg
Segmentation fault: 11
This is down to incompatibilities in the way the library was compiled and the way python was compiled. Make sure they are built in the same way or at least compatible.
cmake -DBUILD_PYTHON_INTERFACE=ON -DCMAKE_C_COMPILER=/usr/local/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-7 -DBUILD_DOC=OFF ../
make