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

Mac OSX Sierra #58

Open
MattTucker22689 opened this issue Aug 8, 2017 · 1 comment
Open

Mac OSX Sierra #58

MattTucker22689 opened this issue Aug 8, 2017 · 1 comment

Comments

@MattTucker22689
Copy link

MattTucker22689 commented Aug 8, 2017

So, I'm using the "Speaking Text" example from:
http://pyttsx.readthedocs.io/en/latest/engine.html#the-engine-factory

"import pyttsx
engine = pyttsx.init()
engine.say('Sally sells seashells by the seashore.')
engine.say('The quick brown fox jumped over the lazy dog.')
engine.runAndWait()"

But IDLE keeps giving me the following error:
"Traceback (most recent call last):
File "/Users/Tuck/Desktop/Untitled.py", line 2, in
engine = pyttsx.init()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx/init.py", line 39, in init
eng = Engine(driverName, debug)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx/engine.py", line 45, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx/driver.py", line 64, in init
self._module = import(name, globals(), locals(), [driverName])
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyttsx/drivers/nsss.py", line 18, in
from Foundation import *
ImportError: No module named Foundation"

What's going on? How can I fix this...? Thoughts?

@cczhong11
Copy link

install pyobjc

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

2 participants