kaldi-asr / kaldi

kaldi-asr/kaldi is the official location of the Kaldi project.
http://kaldi-asr.org
Other
14.11k stars 5.31k forks source link

compile failed, make: *** [matrix/test] Error 2, FAIL numpy-array-test #4822

Open andy380743909 opened 1 year ago

andy380743909 commented 1 year ago

compile the latest code( e4eb4f6725d836b7915230f54adedfb605379254 )

failed with error:

Running sparse-matrix-test ... 0s... SUCCESS sparse-matrix-test
Running numpy-array-test ...c++ -std=c++14 -I.. -I/Users/andy/Workspace/kaldi/tools/openfst-1.7.2/include -O1  -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   -c -o transition-model.o transition-model.cc
/bin/bash: line 1: 31370 Abort trap: 6           ./$x > $x.testlog 2>&1
 0s... FAIL numpy-array-test
make[1]: *** [test] Error 1
make: *** [matrix/test] Error 2
make: *** Waiting for unfinished jobs....

and I cd to src/matrics, run the test by myself, it shows the detail as below :

image

andy380743909 commented 1 year ago

Kaldi depends python2.7, so I create a virtualenv with python2.7. But this test run on python3, I don't know how to fix it

andy380743909 commented 1 year ago

Thanks https://github.com/kaldi-asr/kaldi/issues/4491 for guiding me to find the error detail log

andy380743909 commented 1 year ago

Solved this issue by install python3 and numpy for python3. But this root cause of this issue is the test code in matrics module depends on python3 and numpy. Hope this is useful for someone with the same environment issue.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale by a bot solely because it has not had recent activity. Please add any comment (simply 'ping' is enough) to prevent the issue from being closed for 60 more days if you believe it should be kept open.