Help with win32 com_error exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Gordon

    #1

    Help with win32 com_error exception

    Sorry if this is sent twice, but I didn't see it get posted the first time.

    I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32
    using MS SAPI 5.1 and Hammond's win32 module. The test program is
    import pyTTS
    tts = pyTTS.Create()
    tts.Speak('Hell o world.')

    The resulting debug trace is:

    PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
    on win32.
    Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin' for
    further copyright information.
    Traceback (most recent call last):
    File
    "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\frame work\scriptutil s.py",
    line 307, in RunScript
    debugger.run(co deObject, __main__.__dict __, start_stepping= 0)
    File
    "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\debug ger\__init__.py ",
    line 60, in run
    _GetCurrentDebu gger().run(cmd, globals,locals, start_stepping)
    File
    "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\debug ger\debugger.py ",
    line 631, in run
    exec cmd in globals, locals
    File "C:\yakitome\te st\examples\ex1 .py", line 4, in ?
    tts.Speak('Hell o world.')
    File "C:\PROGRA~1\Py thon23\Lib\site-packages\pyTTS\ sapi.py", line 213,
    in Speak
    self.speech.Spe ak(text, flagsum)
    File "C:\Program
    Files\Python23\ lib\site-packages\win32c om\gen_py\C866C A3A-32F7-11D2-9602-00C04F8EE628x0x 5x0.py",
    line 2637, in Speak
    , Flags)
    com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
    0, -2147201015), None)
    >>>
    The system does not have a sound card --- could that be an issue?

    My head is about to explode trying to solve this problem, so your help and
    suggestions will be much appreciated.



  • Andrew Holme

    #2
    Re: Help with win32 com_error exception


    "Richard Gordon" <weheh@verizon. netwrote in message
    news:cqk8i.3573 $bZ1.2348@trndd c08...
    Sorry if this is sent twice, but I didn't see it get posted the first
    time.
    >
    I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32
    using MS SAPI 5.1 and Hammond's win32 module. The test program is
    import pyTTS
    tts = pyTTS.Create()
    tts.Speak('Hell o world.')
    >
    The resulting debug trace is:
    >
    PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
    on win32.
    Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
    for
    further copyright information.
    Traceback (most recent call last):
    File
    "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\frame work\scriptutil s.py",
    line 307, in RunScript
    debugger.run(co deObject, __main__.__dict __, start_stepping= 0)
    File
    "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\debug ger\__init__.py ",
    line 60, in run
    _GetCurrentDebu gger().run(cmd, globals,locals, start_stepping)
    File
    "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\debug ger\debugger.py ",
    line 631, in run
    exec cmd in globals, locals
    File "C:\yakitome\te st\examples\ex1 .py", line 4, in ?
    tts.Speak('Hell o world.')
    File "C:\PROGRA~1\Py thon23\Lib\site-packages\pyTTS\ sapi.py", line 213,
    in Speak
    self.speech.Spe ak(text, flagsum)
    File "C:\Program
    Files\Python23\ lib\site-packages\win32c om\gen_py\C866C A3A-32F7-11D2-9602-00C04F8EE628x0x 5x0.py",
    line 2637, in Speak
    , Flags)
    com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
    0, -2147201015), None)
    >>>
    >
    The system does not have a sound card --- could that be an issue?
    Could be.

    -2147352567 = 0x80020009
    -2147201015 = 0x80045009

    If you search for these numbers in hex, you may have more luck.

    e.g.

    SPERR_NO_DRIVER 0x80045009 -2147201015
    There is no wave driver installed.

    From https://msdn2.microsoft.com/en-us/library/ms717306.aspx





    Comment

    • kaens

      #3
      Re: Help with win32 com_error exception

      Richard, you posted it four times. Not twice.

      On 6/2/07, Andrew Holme <andrew@nospam. comwrote:
      >
      "Richard Gordon" <weheh@verizon. netwrote in message
      news:cqk8i.3573 $bZ1.2348@trndd c08...
      Sorry if this is sent twice, but I didn't see it get posted the first
      time.

      I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32
      using MS SAPI 5.1 and Hammond's win32 module. The test program is
      import pyTTS
      tts = pyTTS.Create()
      tts.Speak('Hell o world.')

      The resulting debug trace is:

      PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
      on win32.
      Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
      for
      further copyright information.
      Traceback (most recent call last):
      File
      "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\frame work\scriptutil s.py",
      line 307, in RunScript
      debugger.run(co deObject, __main__.__dict __, start_stepping= 0)
      File
      "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\debug ger\__init__.py ",
      line 60, in run
      _GetCurrentDebu gger().run(cmd, globals,locals, start_stepping)
      File
      "C:\PROGRA~1\Py thon23\Lib\site-packages\python win\pywin\debug ger\debugger.py ",
      line 631, in run
      exec cmd in globals, locals
      File "C:\yakitome\te st\examples\ex1 .py", line 4, in ?
      tts.Speak('Hell o world.')
      File "C:\PROGRA~1\Py thon23\Lib\site-packages\pyTTS\ sapi.py", line 213,
      in Speak
      self.speech.Spe ak(text, flagsum)
      File "C:\Program
      Files\Python23\ lib\site-packages\win32c om\gen_py\C866C A3A-32F7-11D2-9602-00C04F8EE628x0x 5x0.py",
      line 2637, in Speak
      , Flags)
      com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
      0, -2147201015), None)
      >>>
      The system does not have a sound card --- could that be an issue?
      >
      Could be.
      >
      -2147352567 = 0x80020009
      -2147201015 = 0x80045009
      >
      If you search for these numbers in hex, you may have more luck.
      >
      e.g.
      >
      SPERR_NO_DRIVER 0x80045009 -2147201015
      There is no wave driver installed.
      >>
      >
      >
      >
      >
      --

      >

      Comment

      Working...