Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runAndWait hangs on OSX High Sierra #22

Closed
m9tech opened this issue Jul 18, 2018 · 11 comments
Closed

runAndWait hangs on OSX High Sierra #22

m9tech opened this issue Jul 18, 2018 · 11 comments

Comments

@m9tech
Copy link

m9tech commented Jul 18, 2018

I searched quite a bit for an answer to this problem, to no avail. While running pyttsx3 on a Mac running OSX High Sierra, the script hangs (or never exits) the runAndWait() command. I found a few suggestions as to how to solve this issue (run it in a function or Class), neither of which worked for me.

Is this an active bug that is on a path to being fixed? Is there a library that needs updating? Any ideas as to how to get it to exit normally?

Thanks,

@bluthen
Copy link

bluthen commented Jul 26, 2018

I'm not 100% sure it is your exact problem, but you may need a newer version of pyobjc. At least that fixes it for me.
See comments in the original project: RapidWareTech/pyttsx#26

@m9tech
Copy link
Author

m9tech commented Jul 26, 2018

Thanks for the comment, I have installed latest pyobjc, version 4.2.2, but that did not solve the issue.

@anapaulagomes
Copy link

I've got the same error using the latest versions of both.

@jessejamesrich
Copy link

Same.

@dd121
Copy link

dd121 commented Nov 20, 2018

same

2 similar comments
@torxx666
Copy link

same

@bananakiu
Copy link

same

@Pac-boy
Copy link

Pac-boy commented Apr 26, 2019

Anyone fixed it or have other solution ?

@bluthen
Copy link

bluthen commented Apr 26, 2019

I finally ended up using this in a product I work on OSX. I ended up using multiprocessing. Whenever a say is stopped, we kill the process. Also we freeze it using PyInstaller and had to run multiprocessing.freeze_support() and multiprocessing.set_start_method('forkserver')

I can't remember if the forkserver was required even without freezing (probably is). In anycase it seems to run reliably after doing all that.

We use multiprocessing queue to communicate back and forth to the process started with multiprocessing. The queue is used to send word event info back to the main process, and to to tell the tts process what to say from the main process.

@nateshmbhat nateshmbhat changed the title runAndWait hangs on OSX runAndWait hangs on OSX High Sierra Mar 14, 2020
@nateshmbhat
Copy link
Owner

Is this still happening? This was a very old issue.

Closing this until any furthur activity.

@Rainer2465
Copy link

yep, happening again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants