kaldi icon indicating copy to clipboard operation
kaldi copied to clipboard

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

Open andy380743909 opened this issue 2 years ago • 4 comments

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 avatar Feb 07 '23 07:02 andy380743909

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 avatar Feb 07 '23 07:02 andy380743909

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

andy380743909 avatar Feb 07 '23 07:02 andy380743909

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.

andy380743909 avatar Feb 07 '23 08:02 andy380743909

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.

stale[bot] avatar May 04 '23 01:05 stale[bot]