I am getting the following error when trying to use deepspeech, i am using deepspeech=0.6.1 python module on a windows 10 machine
any help is highly appreciated
Traceback (most recent call last):
File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python37\Scripts\deepspeech.exe\__main__.py", line 5, in <module>
File "c:\program files\python37\lib\site-packages\deepspeech\__init__.py", line 23, in <module>
from deepspeech.impl import PrintVersions as printVersions
File "c:\program files\python37\lib\site-packages\deepspeech\impl.py", line 13, in <module>
from ._impl import *
ImportError: DLL load failed: The specified module could not be found.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
2
I’ve installed the Redistribuable Visual C++ linked at the url, now i am getting the following error
Traceback (most recent call last):
File "c:\program files\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python36\Scripts\deepspeech.exe\__main__.py", line 5, in <module>
File "c:\program files\python36\lib\site-packages\deepspeech\__init__.py", line 23, in <module>
from deepspeech.impl import PrintVersions as printVersions
File "c:\program files\python36\lib\site-packages\deepspeech\impl.py", line 13, in <module>
from ._impl import *
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
sorry, i am running it on windows server os specifically Windows Server 2016 Datacenter, not on win 10
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
4
This is obviously something we don’t reproduce. Now, we also don’t have a lot of experience in debugging DLL on Windows, especially since I don’t know how to replicate LD_DEBUG=all linux’ behavior.
Could you check with depends.exe from sysinternals (or its newer fork) what it says on libdeepspeech.so that lives somewhere under c:\program files\python36\lib\site-packages\deepspeech\ ?
it’s missing quite a number of dlls(api-ms-win dlls, ext-ms-win dlls among a few others) and displays the following message:
Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
6
From my experience, api-ms-win stuff is harmless. Can you share a complete list / screenshot ?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
8
@Shak97 All those are coming from libdeepspeech.so ? Woo. We really need some help from some windows-expert on how to properly know what A dynamic link library (DLL) initialization routine failed. actually means …
@Shak97 Could you try with Windows C++ client and not the Python one, to ensure it’s not the python bindings ?
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
9
@lissyx, i’ve tried deepspeech on windows 10 with the same settings as windows server and it works fine, also have matched missing dlls on both the machines and installed but there seems no change, could you provide me with link to windows c++ bindings please
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
12
They are on the Github release page, native_client.win.amd64.tar.xz or something like that
Do you mean Python bindings on Windows 10 ? So at least it’s working somewhere :-).
And it would be broken on Windows 2016 Datacenter ? Could it be that the naming of the library is an issue? Would renaming libdeepspeech.so to libdeepspeech.dll help there?
Is there any movement on this issue? I’ve tried several different iteration on installing deepspeech and get the same error.
I have a virtualenv setup on a windows 10 machine with Visual Studios installed. The error seems to happen when importing _impl.cp39-win_amd64.pyd. I tried to get some extra error information with pycharm but nothing really jumped out to me.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
20
Since this is not something we were able to reproduce and nobody could investigate, no there has been no movement. Plus, we are not working on it anymore.