From: nikhil j. <nik...@gm...> - 2012-08-13 13:28:13
|
Sorry should have mentioned. The error I get on running the the compiled exe are as follows: Exception in thread Thread-1: Traceback (most recent call last): File "threading.pyc", line 530, in __bootstrap_inner File "threading.pyc", line 483, in run File "speechplay.py", line 100, in saythread File "pyttsx\__init__.pyc", line 39, in init File "pyttsx\engine.pyc", line 45, in __init__ File "pyttsx\driver.pyc", line 66, in __init__ File "pyttsx\drivers\sapi5.pyc", line 37, in buildDriver File "pyttsx\drivers\sapi5.pyc", line 46, in __init__ File "win32com\client\__init__.pyc", line 317, in WithEvents AttributeError: 'NoneType' object has no attribute 'CLSID' On Mon, 13 Aug 2012 14:35:29 +0530, nikhil jain <nik...@gm...> wrote: > Here is my complete script: pastebin.com/LWUSU3cc . Its a simple text to > speech app, that uses pyttsx and threading features. > > Now I want to package into a exe. But am having troubles with this. > > This is my setup.py file. > > #COMPILE python setup.py py2exe --includes pyttsx.drivers.sapi5 > from distutils.core import setup > import py2exe > py2exe_options = dict( > includes = "pyttsx.drivers.sapi5", > typelibs = [ > ('{C866CA3A-32F7-11D2-9602-00C04F8EE628}', 0, 5, 0), > ('{C866CA3A-32F7-11D2-9602-00C04F8EE628}', 0, 5, 0), > ] > ) > setup(console=['speechplay.py']) > > > I got the typelibs from gen_py folder, which looks like this: > http://i.imgur.com/bnpnJ.jpg . > To be honest , I have no idea what modules to include . > Kindly help > > Thanks > Nikhil |