python - win32com error with cx_freeze and pyttsx -


hi guys have python software want freeze distribution. problem after freezing cx_freeze , run it, works fine on development computer (win 7) when sent testing computer (window xp sp3 32bit) give me error

traceback(mostresent call last): file "c:python27\lib\site-packages\cx_freeze\initscripts\console.py", line27, in <module? file "timetracker.py", line 555, in <module> file "timetracker.py", line 381, in __init__ file "timetracker.py", line 427, in runtimethread file "timetracker.py", line 494, in __init__ file "timetracker.py", line 118, in __init__ file "c:python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\__init__.py", line 39, in init file "c:python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\engine.py", line 45, in __init__ file "c:python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\driver.py", line 66, in __init__ file "c:python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\drivers\sapi5.py", line 37, in builddriver file "c:python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\drivers\sapi5.py", line 46, in __init__ file "c:python27\lib\site-packages\win32com\client\__init__.py", line 317, in withevents attributeerror: 'nonetype' object has no attribute 'clsid' 

this setup.py

import sys cx_freeze import setup, executable includes =['atexit'] packages = ['pyttsx','win32com.server','win32com.client'] base = none if sys.platform == "win32":     base = "win32gui" setup(         name = "timetracker",         version = "1.0.0",         description = "keep track of time take control of life",         options = {"build_exe" : {"includes" : includes, "packages": packages }},         executables = [executable("timetracker.py", base = base)]) 

in setup.py tried add 'win32com.gen_py' packages list got error

no module call 'win32com.gen_py' 

it seems pyttsx has problem when comes window xp. after testing searching come conclusion window xp don't have test speech engine why pyttsx failed


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -