Skip to content

ImportErrror: No module named Foundation #57

@Elliot-Potts

Description

@Elliot-Potts

-- I have read through all the other issues regarding this, I couldn't seem to find a solution.
My code:
`import pyttsx

engine = pyttsx.init()

engine.say("Hello")
engine.runAndWait()`
The error:
Traceback (most recent call last):
File "/Users/Elliot/Desktop/Python/speechEngineTest.py", line 3, in
engine = pyttsx.init()
File "/usr/local/lib/python2.7/site-packages/pyttsx/init.py", line 39, in init
eng = Engine(driverName, debug)
File "/usr/local/lib/python2.7/site-packages/pyttsx/engine.py", line 45, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/usr/local/lib/python2.7/site-packages/pyttsx/driver.py", line 64, in init
self._module = import(name, globals(), locals(), [driverName])
File "/usr/local/lib/python2.7/site-packages/pyttsx/drivers/nsss.py", line 18, in
from Foundation import *
ImportError: No module named Foundation

Any help regarding this issue would be appreciated. I love this module, and have used it before. After re-installing OS X, I get this error. Again, any help would be appreciated, many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions