[Pythonmac-SIG] Still Unable to get my Python program working on the mac
Bill Janssen
janssen at parc.com
Mon May 17 04:28:54 CEST 2010
I tried pyttsx on a Mac running 10.5.8:
% ls
MANIFEST.in README pyttsx setup.cfg
PKG-INFO docs pyttsx.egg-info setup.py
% python setup.py build
Traceback (most recent call last):
File "setup.py", line 18, in <module>
from ez_setup import use_setuptools
ImportError: No module named ez_setup
%
So I opened up setup.py, and removed the two lines that read:
from ez_setup import use_setuptools
use_setuptools()
Then, "python setup.py build", and "python setup.py install".
Then:
% python
Python 2.5.1 (r251:54863, Jun 17 2009, 20:37:34)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyttsx
>>> eng = pyttsx.init()
>>> eng.say("hello hello hello")
>>> eng.runAndWait()
# and "hello hello hello" comes out of the speakers
>>>
Seems to work. No additional downloads needed.
Bill
More information about the Pythonmac-SIG
mailing list