baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.06k stars 1.04k forks source link

"No module named kernels" when test #134

Closed XiongChengxin closed 5 years ago

XiongChengxin commented 5 years ago

I install tensorflow by anaconda, and successfully install warpctc-tensorflow, i.e. it would show "warpctc-tensorflow" when I run the command "conda list". But I would meet the error when test. Any ideas?

Traceback (most recent call last): File "", line 1, in File "warpctc_tensorflow/init.py", line 6, in lib_file = imp.find_module('kernels', path)[1] ImportError: No module named kernels

"kernels" can't be installed by pip or conda.

XiongChengxin commented 5 years ago

Solved. Modified parameter "lib_file" of file warpctc_tensorflow/init.py to the real path of kernels.so. For me, "lib_file = '../warp-ctc/tensorflow_binding/build/lib.linux-x86_64-2.7/warpctc_tensorflow/kernels.so'". Then it won't meet the above error.