Closed cf3b7S closed 7 years ago
when import kaldi_io, python just break and tell me segmentation fault.
$ python -c "import kaldi_io" [1] 37876 segmentation fault python -c "import kaldi_io"
make info
myusername:kaldi-python/ (master✗) $ LDFLAGS=-L/usr/local/lib/python2.7 KALDI_ROOT=/Users/myusername/Documents/dev/kaldi ./setup.py install running install running build /Library/Developer/CommandLineTools/usr/bin/make -C kaldi_io depend g++ -I/Users/myusername/Documents/dev/kaldi/src -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -M -std=c++11 -I.. -I/Users/myusername/Documents/dev/kaldi/tools/openfst/include -Wno-sign-compare -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -msse -msse2 -pthread -g -fPIC -Wno-mismatched-tags *.cpp > .depend.mk In file included from kaldi_io_internal.cpp:10: In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18: In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788: /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it by " \ ^ 1 warning generated. /Library/Developer/CommandLineTools/usr/bin/make -C kaldi_io make[1]: Nothing to be done for `all'. running build_py running build_scripts running install_lib running install_scripts changing mode of /usr/local/bin/apply-global-cmvn.py to 755 changing mode of /usr/local/bin/compute-global-cmvn-stats.py to 755 changing mode of /usr/local/bin/copy-feats-padded.py to 755 changing mode of /usr/local/bin/show-wav-ali.py to 755 running install_egg_info Removing /usr/local/lib/python2.7/site-packages/kaldi_python-1.0-py2.7.egg-info Writing /usr/local/lib/python2.7/site-packages/kaldi_python-1.0-py2.7.egg-info myusername:kaldi-python/ (master✗) $ KALDI_ROOT=/Users/myusername/Documents/dev/kaldi ./setup.py install running install running build /Library/Developer/CommandLineTools/usr/bin/make -C kaldi_io depend g++ -I/Users/myusername/Documents/dev/kaldi/src -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -M -std=c++11 -I.. -I/Users/myusername/Documents/dev/kaldi/tools/openfst/include -Wno-sign-compare -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK -msse -msse2 -pthread -g -fPIC -Wno-mismatched-tags *.cpp > .depend.mk In file included from kaldi_io_internal.cpp:10: In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18: In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788: /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it by " \ ^ 1 warning generated. /Library/Developer/CommandLineTools/usr/bin/make -C kaldi_io make[1]: Nothing to be done for `all'. running build_py running build_scripts running install_lib running install_scripts changing mode of /usr/local/bin/apply-global-cmvn.py to 755 changing mode of /usr/local/bin/compute-global-cmvn-stats.py to 755 changing mode of /usr/local/bin/copy-feats-padded.py to 755 changing mode of /usr/local/bin/show-wav-ali.py to 755 running install_egg_info Removing /usr/local/lib/python2.7/site-packages/kaldi_python-1.0-py2.7.egg-info Writing /usr/local/lib/python2.7/site-packages/kaldi_python-1.0-py2.7.egg-info
I guess it is fixed with #11.
when import kaldi_io, python just break and tell me segmentation fault.
make info