#564 com_error

closed-works-for-me
nobody
win32 (141)
5
2011-08-30
2011-08-29
jumping
No

I could not run speech.input (), please take a look the following messages:

"
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************

IDLE 1.2.1
>>> import speech
>>> phrase = speech.input()

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
phrase = speech.input()
File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", line 162, in input
listener = listenforanything(response)
File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", line 193, in listenforanything
return _startlistening(None, callback)
File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", line 222, in _startlistening
context = _recognizer.CreateRecoContext()
File "C:\Python25\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x0.py", line 2457, in CreateRecoContext
ret = self._oleobj_.InvokeTypes(10, LCID, 1, (9, 0), (),)
com_error: (-2147352567, '?????', (0, None, None, None, 0, -2147221164), None)

"

Discussion

  • Stefan Schukat

    Stefan Schukat - 2011-08-29

    This is not a Python error, but an installation error from the speech API
    Errorcode com call: -2147352567 -> 0x80020009 DISP_E_EXCEPTION
    Error code of the function: -2147221164 -> 0x80040154 REGDB_E_CLASSNOTREG
    I.e. the COM Class you need is not known in the system

     
  • Mark Hammond

    Mark Hammond - 2011-08-30

    Thanks for your report, but this tracker is for reporting bugs in pywin32 rather than a support forum.

    Please email support requests to the python-win32 mailing list where many more people will see your request and be able to help. You need to be subscribed to the list before you can post to it - see http://mail.python.org/mailman/listinfo/python-win32 for subscription options.

     
  • Mark Hammond

    Mark Hammond - 2011-08-30
    • status: open --> closed-works-for-me
     

Log in to post a comment.