RapidWareTech / pyttsx

Cross-platform text-to-speech wrapper
Other
370 stars 134 forks source link

I got a error about the win32api in windows xp #14

Closed hick closed 11 years ago

hick commented 11 years ago

Traceback (most recent call last): File "F:\test.py", line 2, in engine = pyttsx.init() File "D:\Program\Python27\lib\site-packages\pyttsxinit.py", line 39, in i nit eng = Engine(driverName, debug) File "D:\Program\Python27\lib\site-packages\pyttsx\engine.py", line 45, in i nit self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "D:\Program\Python27\lib\site-packages\pyttsx\driver.py", line 64, in i nit self._module = import(name, globals(), locals(), [driverName]) File "D:\Program\Python27\lib\site-packages\pyttsx\drivers\sapi5.py", line 19, in import win32com.client File "D:\Program\Python27\lib\site-packages\win32cominit.py", line 5, in

import win32api, sys, os ImportError: DLL load failed: Can not find the specified module I am using python 2.7.5 F:>pip list beautifulsoup4 (4.2.1) Django (1.5.1) docutils (0.11) feedparser (5.1.3) ipython (1.0.0) Jinja2 (2.7) MarkupSafe (0.18) MySQL-python (1.2.4b4) numpy (1.7.1) pdfrw (0.1) PIL (1.1.7) poster (0.8.1) py2exe (0.6.9) pyFirmata (0.9.5) Pygments (1.6) pyHook (1.5.1) pyserial (2.6) pyttsx (1.1) pywin32 (218) reportlab (2.7) rst2pdf (0.93.dev) Sphinx (1.2b1) wx (1.0.0)
hick commented 11 years ago

BTW, my testing code is just the sample:

import pyttsx engine = pyttsx.init() engine.say('Greetings!') engine.say('How are you today?') engine.runAndWait()

hick commented 11 years ago

so sorry for this!

I just made a mistake, I installed python on Drive D:, but I reinstall the windows xp several days ago, pywin32 need to be reinstalled. After that, it goes well!

thx a lot!