Answer the question
In order to leave comments, you need to log in
How to get rid of this error after compiling Python?
I wrote a not very complex voice assistant in Python 3.7. I need to compile it to .exe format. I did it with pyinstaller. The first error I encountered was no module named pyttsx3.drivers. I seem to have solved it by typing pyinstaller --hidden-import=pyttsx3.drivers FILENAME.py on the command line. After such compilation, this error did not appear, but the program began to close immediately after opening. Please tell me how to solve this problem.
The code is error-free, it runs in the development environment.
OS - Windows 10
Language - Python 3.7.
I will be very grateful for your help.
Answer the question
In order to leave comments, you need to log in
Run the application in the console with the keys --debug
and -v
The output will most likely be the cause of the problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question