Install “Pyinstaller”, then run this command: "pyinstaller -y -F C:/Users/Kamal Chhirang/Downloads/New folder (22)/deep_speech_client.py
After it finishes converting the py file to exe. A folder named dist will be created. Go to “dist” folder, and then run “deep_speech_client.exe” using CMD.
I am getting this error:
Traceback (most recent call last):
File "deep_speech_client.py", line 18, in <module>
File "c:\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\deepspeech\__init__.py", line 14, in <module>
File "c:\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\deepspeech\impl.py", line 13, in <module>
ImportError: DLL load failed: The specified module could not be found.
[36904] Failed to execute script deep_speech_client
I am using Python 3.7
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
2
Why are you doing this ? There’s libdeepspeech.so that you can directly use …
The python program runs perfectly. But I am unable to convert the python file to exe. Pyinstaller works with Anaconda3 perfectly. But I will try vanilla python also.
I think Pyinstaller cannot import modules at runtime. So I modified the impl.py file. But when I run the exe file, it gives me the above error.
I want to distribute this exe file to other pc’s without installing Python or anything. I formatted the error and other things. I hope it’s more clear now.
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
10
I already told you, it’s the Import DLL part that is important. I can’t help you more, you need to figure out why it arises. Likely it’s not able to find libdeepspeech.so, but without more context, can’t help.