janchorowski / kaldi-python

Python wrappers for Kaldi data
Apache License 2.0
61 stars 50 forks source link

some errors when install kaldi-python #3

Open Entonytang opened 8 years ago

Entonytang commented 8 years ago

Hi, ubuntu 14.04. use thi command(.setup.py install) to setup kaldi-pthon, I have set $KALDI_ROOT already the errors are as follows:

/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

warning "Using deprecated NumPy API, disable it by " \

^ /usr/bin/ld: /home/jtang/Kaldi/kaldi-trunk/src/matrix/kaldi-matrix.a(kaldi-matrix.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /home/jtang/Kaldi/kaldi-trunk/src/matrix/kaldi-matrix.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[1]: * [kaldi_io_internal.so] Error 1 make[1]: Leaving directory /home/jtang/Attention_ASR/kaldi-python/kaldi_io' make: * [all] Error 2

thse errors seem to happen in creating kaldi_io_internal.so, if I don't use these .a file $(KALDI_SRC)/matrix/kaldi-matrix.a $(KALDI_SRC)/util/kaldi-util.a $(KALDI_SRC)/base/kaldi-base.a , kaldi_io_internal.so can create(of course this file can't be used) I try to install this package kaldi-python on ubuntu,Centos, but failed....... Sincerely Tony Tang

SweetFov commented 7 years ago

I also encounter exactly the same problem as yours.Have you already solved the problem?If you have, how?

Miail commented 7 years ago

same here...