B
B
Bohdan2020-05-10 09:52:05
Python
Bohdan, 2020-05-10 09:52:05

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

1 answer(s)
S
Sergey Gornostaev, 2020-05-10
@Bohdanpy

Run the application in the console with the keys --debugand -vThe output will most likely be the cause of the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question