ugnelis
(Ugnius Malukas)
November 24, 2018, 6:42pm
1
Hello there,
I am trying to import deepspeech.module
from deepspeech.model import Model
but I get the following error:
ModuleNotFoundError: No module named 'deepspeech.model'
Information about device:
OS: Linux Mint 19 Tara
I am running in Anaconda 5.3.1
Python 3.6.7
CUDA 9.0
cuDNN 7.4.1
TensorFlow 1.12.0-rc2
$ echo $LD_LIBRARY_PATH
:/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64
Maybe do you know where is the issue?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
November 24, 2018, 8:03pm
2
I’d suspect a mismatch of library somewhere. Running the import
under LD_DEBUG=libs
might help identify. CUDA 9.0 should be okay, but I’m unsure about CuDNN 7.4, since as much as I know, upstream 1.12 is also against CuDNN v7.2
ugnelis
(Ugnius Malukas)
November 24, 2018, 9:56pm
3
6575: find library=libpthread.so.0 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/haswell:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/haswell:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/haswell/x86_64/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/haswell/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/x86_64/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/tls/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/haswell/x86_64/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/haswell/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/x86_64/libpthread.so.0
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libpthread.so.0
6575: search path=tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/usr/local/cuda-9.0/lib64/tls/haswell/x86_64:/usr/local/cuda-9.0/lib64/tls/haswell:/usr/local/cuda-9.0/lib64/tls/x86_64:/usr/local/cuda-9.0/lib64/tls:/usr/local/cuda-9.0/lib64/haswell/x86_64:/usr/local/cuda-9.0/lib64/haswell:/usr/local/cuda-9.0/lib64/x86_64:/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64/tls/haswell/x86_64:/usr/local/cuda/extras/CUPTI/lib64/tls/haswell:/usr/local/cuda/extras/CUPTI/lib64/tls/x86_64:/usr/local/cuda/extras/CUPTI/lib64/tls:/usr/local/cuda/extras/CUPTI/lib64/haswell/x86_64:/usr/local/cuda/extras/CUPTI/lib64/haswell:/usr/local/cuda/extras/CUPTI/lib64/x86_64:/usr/local/cuda/extras/CUPTI/lib64 (LD_LIBRARY_PATH)
6575: trying file=tls/haswell/x86_64/libpthread.so.0
6575: trying file=tls/haswell/libpthread.so.0
6575: trying file=tls/x86_64/libpthread.so.0
6575: trying file=tls/libpthread.so.0
6575: trying file=haswell/x86_64/libpthread.so.0
6575: trying file=haswell/libpthread.so.0
6575: trying file=x86_64/libpthread.so.0
6575: trying file=libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/tls/haswell/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/tls/haswell/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/tls/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/tls/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/haswell/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/haswell/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda-9.0/lib64/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/tls/haswell/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/tls/haswell/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/tls/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/tls/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/haswell/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/haswell/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/x86_64/libpthread.so.0
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/libpthread.so.0
6575: search cache=/etc/ld.so.cache
6575: trying file=/lib/x86_64-linux-gnu/libpthread.so.0
6575: find library=libc.so.6 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libc.so.6
6575: search path=tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 (LD_LIBRARY_PATH)
6575: trying file=tls/haswell/x86_64/libc.so.6
6575: trying file=tls/haswell/libc.so.6
6575: trying file=tls/x86_64/libc.so.6
6575: trying file=tls/libc.so.6
6575: trying file=haswell/x86_64/libc.so.6
6575: trying file=haswell/libc.so.6
6575: trying file=x86_64/libc.so.6
6575: trying file=libc.so.6
6575: trying file=/usr/local/cuda-9.0/lib64/libc.so.6
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/libc.so.6
6575: search cache=/etc/ld.so.cache
6575: trying file=/lib/x86_64-linux-gnu/libc.so.6
6575: find library=libdl.so.2 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libdl.so.2
6575: search path=tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 (LD_LIBRARY_PATH)
6575: trying file=tls/haswell/x86_64/libdl.so.2
6575: trying file=tls/haswell/libdl.so.2
6575: trying file=tls/x86_64/libdl.so.2
6575: trying file=tls/libdl.so.2
6575: trying file=haswell/x86_64/libdl.so.2
6575: trying file=haswell/libdl.so.2
6575: trying file=x86_64/libdl.so.2
6575: trying file=libdl.so.2
6575: trying file=/usr/local/cuda-9.0/lib64/libdl.so.2
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/libdl.so.2
6575: search cache=/etc/ld.so.cache
6575: trying file=/lib/x86_64-linux-gnu/libdl.so.2
6575:
6575: find library=libutil.so.1 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libutil.so.1
6575: search path=tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 (LD_LIBRARY_PATH)
6575: trying file=tls/haswell/x86_64/libutil.so.1
6575: trying file=tls/haswell/libutil.so.1
6575: trying file=tls/x86_64/libutil.so.1
6575: trying file=tls/libutil.so.1
6575: trying file=haswell/x86_64/libutil.so.1
6575: trying file=haswell/libutil.so.1
6575: trying file=x86_64/libutil.so.1
6575: trying file=libutil.so.1
6575: trying file=/usr/local/cuda-9.0/lib64/libutil.so.1
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/libutil.so.1
6575: search cache=/etc/ld.so.cache
6575: trying file=/lib/x86_64-linux-gnu/libutil.so.1
6575:
6575: find library=librt.so.1 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/librt.so.1
6575: search path=tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 (LD_LIBRARY_PATH)
6575: trying file=tls/haswell/x86_64/librt.so.1
6575: trying file=tls/haswell/librt.so.1
6575: trying file=tls/x86_64/librt.so.1
6575: trying file=tls/librt.so.1
6575: trying file=haswell/x86_64/librt.so.1
6575: trying file=haswell/librt.so.1
6575: trying file=x86_64/librt.so.1
6575: trying file=librt.so.1
6575: trying file=/usr/local/cuda-9.0/lib64/librt.so.1
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/librt.so.1
6575: search cache=/etc/ld.so.cache
6575: trying file=/lib/x86_64-linux-gnu/librt.so.1
6575:
6575: find library=libm.so.6 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libm.so.6
6575: search path=tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 (LD_LIBRARY_PATH)
6575: trying file=tls/haswell/x86_64/libm.so.6
6575: trying file=tls/haswell/libm.so.6
6575: trying file=tls/x86_64/libm.so.6
6575: trying file=tls/libm.so.6
6575: trying file=haswell/x86_64/libm.so.6
6575: trying file=haswell/libm.so.6
6575: trying file=x86_64/libm.so.6
6575: trying file=libm.so.6
6575: trying file=/usr/local/cuda-9.0/lib64/libm.so.6
6575: trying file=/usr/local/cuda/extras/CUPTI/lib64/libm.so.6
6575: search cache=/etc/ld.so.cache
6575: trying file=/lib/x86_64-linux-gnu/libm.so.6
6575: calling init: /lib/x86_64-linux-gnu/libpthread.so.0
6575: calling init: /lib/x86_64-linux-gnu/libc.so.6
6575: calling init: /lib/x86_64-linux-gnu/libm.so.6
6575: calling init: /lib/x86_64-linux-gnu/librt.so.1
6575: calling init: /lib/x86_64-linux-gnu/libutil.so.1
6575: calling init: /lib/x86_64-linux-gnu/libdl.so.2
6575: initialize program: /home/ugnelis/anaconda3/envs/deepspeech/bin/python
6575: transferring control: /home/ugnelis/anaconda3/envs/deepspeech/bin/python
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so
6575: find library=libdeepspeech.so [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/_impl.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/haswell/x86_64/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/haswell/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/x86_64/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/tls/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/haswell/x86_64/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/haswell/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/x86_64/libdeepspeech.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/libdeepspeech.so
6575: find library=libstdc++.so.6 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/_impl.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/haswell/x86_64/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/haswell/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/x86_64/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/tls/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/haswell/x86_64/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/haswell/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/x86_64/libstdc++.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/libstdc++.so.6
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libstdc++.so.6
6575: find library=libgcc_s.so.1 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/_impl.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/libgcc_s.so.1
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/libgcc_s.so.1
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib(RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/bin/python)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libgcc_s.so.1
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libgcc_s.so.1
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libstdc++.so.6
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/libdeepspeech.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/_impl.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so
6575: find library=libopenblasp-r0-8dca6697.3.0.dev.so [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/haswell/x86_64/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/haswell/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/x86_64/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/tls/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/haswell/x86_64/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/haswell/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/x86_64/libopenblasp-r0-8dca6697.3.0.dev.so
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/libopenblasp-r0-8dca6697.3.0.dev.so
6575: find library=libgfortran-ed201abd.so.3.0.0 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/libgfortran-ed201abd.so.3.0.0
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/libgfortran-ed201abd.so.3.0.0
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/../.libs/libopenblasp-r0-8dca6697.3.0.dev.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/umath.cpython-36m-x86_64-linux-gnu.so
6575: find library=libffi.so.6 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../haswell/x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../haswell:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../x86_64:/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../.. (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/haswell/x86_64/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/haswell/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/x86_64/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../tls/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../haswell/x86_64/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../haswell/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../x86_64/libffi.so.6
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libffi.so.6
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libffi.so.6
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_struct.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_pickle.cpython-36m-x86_64-linux-gnu.so
6575: find library=libz.so.1 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../.. (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libz.so.1
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libz.so.1
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/zlib.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so
6575: find library=liblzma.so.5 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../.. (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../liblzma.so.5
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../liblzma.so.5
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/grp.cpython-36m-x86_64-linux-gnu.so
6575: find library=libcrypto.so.1.1 [0]; searching
6575: search path=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../.. (RPATH from file /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so)
6575: trying file=/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libcrypto.so.1.1
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libcrypto.so.1.1
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_hashlib.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_blake2.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_sha3.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_bisect.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_random.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/linalg/lapack_lite.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/linalg/_umath_linalg.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_decimal.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/_multiarray_tests.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/fft/fftpack_lite.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/random/mtrand.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/select.cpython-36m-x86_64-linux-gnu.so
6575: calling init: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/audioop.cpython-36m-x86_64-linux-gnu.so
6575:
usage: deepspeech [-h] --model MODEL --alphabet ALPHABET [--lm [LM]]
[--trie [TRIE]] --audio AUDIO [--version]
deepspeech: error: the following arguments are required: --model, --alphabet, --audio
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/bin/python [0]
6575: calling fini: /lib/x86_64-linux-gnu/libutil.so.1 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/_impl.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/lib/libdeepspeech.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libstdc++.so.6 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/bin/../lib/libgcc_s.so.1 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/math.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_datetime.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/core/umath.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libffi.so.6 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_struct.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_pickle.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/zlib.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libz.so.1 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_bz2.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_lzma.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../liblzma.so.5 [0]
6575: calling fini: /lib/x86_64-linux-gnu/librt.so.1 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/grp.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_hashlib.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/../../libcrypto.so.1.1 [0]
6575: calling fini: /lib/x86_64-linux-gnu/libdl.so.2 [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_blake2.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_sha3.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_bisect.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/lib-dynload/_random.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/linalg/lapack_lite.cpython-36m-x86_64-linux-gnu.so [0]
6575: calling fini: /home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/numpy/linalg/_umath_linalg.cpython-36m-x86_64-linux-gnu.so [0]
…
I’ve tried to run this before. But I don’t know how to read this information
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
November 24, 2018, 10:07pm
4
You are not running it the same way, and there’s a different error. Can you try and reproduce exactly the same way with LD_DEBUG=libs
?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
November 24, 2018, 10:12pm
5
Wait, I misread the first line. Where does that code comes from ? What version of deepseech are you using ? It’s from deepspeech import Model
since a few releases now.
1 Like
ugnelis
(Ugnius Malukas)
November 24, 2018, 10:14pm
6
I used half year old code. I will try now your example.
ugnelis
(Ugnius Malukas)
November 24, 2018, 10:28pm
7
You are right, it should be from deepspeech import Model
.
Now I am getting other error related with model.
I have code:
from deepspeech import Model
import scipy.io.wavfile as wav
import sys
deepspeech = Model('models/output_graph.pb', 26, 9, 'alphabet.txt', 500)
audio_rate, audio_data = wav.read('./my_audio_file.wav')
processed_data = deepspeech.stt(audio_data, audio_rate)
print(processed_data)
And I am getting error:
TensorFlow: v1.11.0-9-g97d851f
DeepSpeech: v0.3.0-0-gef6b5bd
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2018-11-24 23:24:22.992453: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Not found: Op type not registered 'Assert' in binary running on Promotheus. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
Traceback (most recent call last):
File "script2.py", line 6, in <module>
deepspeech = Model('models/output_graph.pb', 26, 9, 'alphabet.txt', 500)
File "/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/__init__.py", line 14, in __init__
raise RuntimeError("CreateModel failed with error code {}".format(status))
RuntimeError: CreateModel failed with error code 5
Do I use also deprecated method? And maybe there is normal documentation of Mozilla Deepspeech where methods would be described?
ugnelis
(Ugnius Malukas)
November 24, 2018, 10:34pm
8
Also, I am facing same error when I run deepspeech directly in terminal:
(deepspeech) ugnelis@Promotheus:/media/ugnelis/Data/GIT/lithuanian-speach-to-text/deepspeech_mano$ deepspeech --model models/output_graph.pb --alphabet models/alphabet.txt --audio my_audio_file.wav
Loading model from file models/output_graph.pb
TensorFlow: v1.11.0-9-g97d851f
DeepSpeech: v0.3.0-0-gef6b5bd
Warning: reading entire model file into memory. Transform model file into an mmapped graph to reduce heap usage.
2018-11-24 23:32:53.561665: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Not found: Op type not registered 'Assert' in binary running on Promotheus. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
Traceback (most recent call last):
File "/home/ugnelis/anaconda3/envs/deepspeech/bin/deepspeech", line 11, in <module>
sys.exit(main())
File "/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/client.py", line 81, in main
ds = Model(args.model, N_FEATURES, N_CONTEXT, args.alphabet, BEAM_WIDTH)
File "/home/ugnelis/anaconda3/envs/deepspeech/lib/python3.6/site-packages/deepspeech/__init__.py", line 14, in __init__
raise RuntimeError("CreateModel failed with error code {}".format(status))
RuntimeError: CreateModel failed with error code 5
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
November 24, 2018, 10:34pm
9
ugnelis:
Not found: Op type not registered ‘Assert’ in binary running on Promotheus. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler
should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
I’d suspect you are not using a model v0.3.0, when your binaries are v0.3.0
ugnelis
(Ugnius Malukas)
November 24, 2018, 10:35pm
10
Ohh, could be. I will try now
ugnelis
(Ugnius Malukas)
November 24, 2018, 10:45pm
11
@lissyx you are wonderful! Thank you! Works like a charm!
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
November 24, 2018, 10:49pm
12
Thanks for the confirmation, though I should have spotted it at first
Could you please guide me on how to do that?