+ 1
Pyttsx3 module .init() error
Heya ! This is an unnecessary error that keeps on coming when I try to take the output . The code - Import pyttsx3 as v Engine = v.init() Engine.say("something") Engine.runAndWait() Output - Attribute error - pyttsx3 has no module named init. And I am talking about python's module pyttsx3.
5 Respuestas
+ 2
You missed the () of the runAndWait method?
+ 1
Na I just forgot to paste it here .
+ 1
Did you by any chance call your file pyttsx3.py? If you have a file of that name in the same directory python will use that file instead of the module you're trying to import.
+ 1
Lisa Simon Sauter Thanks to you both but it was a simple problem that I had saved the same file as the module :p