R
R
Ridalit2020-05-25 20:06:42
Python
Ridalit, 2020-05-25 20:06:42

How to fix errors after compiling a script through pyinstaller?

Before compilation, everything works fine, but after compiling and then running the finished .exe, the console instantly closes with the following error:

ModuleNotFoundError: No module named 'pyttsx3.drivers'
[47860] Failed to execute script test

The essence of the error is clear, but here's how to fix it ??

Here is the script itself:
import pyttsx3
en = pyttsx3.init()
en.say("Check Compilation")
en.runAndWait()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-05-25
@Ridalit

ModuleNotFoundError: No module named 'pyttsx3.drivers'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question