Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-11 Thread Sai Ram
No. Not really. We don't make registry changes on the fly. We do register
the DLL with regvr32 once and for all. That's the reason we find it
strange. This error is absolutely random and there are no changes in the
set-up when this error is observed. All the 5000 test scripts are split
into different test suites. A test suite might contain 30 test scripts (on
an average). This error is so random, that will be seen in one or more test
scripts while we are executing. We figured out that this is because of
win32com. We do not have any clues further.

-Sairam K

On Wed, Oct 10, 2018 at 5:35 PM Tim Roberts  wrote:

> On Oct 10, 2018, at 1:25 PM, Sai Ram  wrote:
> >
> > We use Nuance's Vocalizer Expressive for voice and sapi5.dll. Also, we
> modify the "Windows registry" to refer to this dll.
>
> What does that mean?  Ordinarily, you would just register the DLL with
> regsvr32 once and for all.  Are you making registry changes on the fly?
> —
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
>
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Sai Ram
We use Nuance's Vocalizer Expressive for voice and sapi5.dll. Also, we
modify the "Windows registry" to refer to this dll. This issue is seen
randomly. The failures do not belong to any sub-set. The very next test
script in the same set-up would fail.

-Sairam K

On Wed, Oct 10, 2018 at 12:51 PM Tim Roberts  wrote:

> Sai Ram wrote:
> >
> >I really did not know that this value would make difference.
> > Apologies for the vague question. The actual exception is "-2147352567".
>
> That's 0x80020009, or DISP_E_EXCEPTION.  That's really telling you to
> refer to the other code for the details.
>
>
> > Also, we have around 5000 test scripts. Out of these, around 300 test
> > scripts fails with this exception. So, I do not doubt any system
> > issues here.
>
> Did you actually install the SAPI SDK?  Do all 5,000 of the scripts use
> SpVoice?  Do the 300 that fail use some particular subset?  Are they all
> either 32-bit or 64-bit apps?
>
> --
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
>
> ___
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Sai Ram
Hello Tim,

   I really did not know that this value would make difference. Apologies
for the vague question. The actual exception is "-2147352567". Also, we
have around 5000 test scripts. Out of these, around 300 test scripts fails
with this exception. So, I do not doubt any system issues here.

   Thank you for your response. Appreciate it.

-Sairam K

On Wed, Oct 10, 2018 at 2:49 AM Tim Roberts  wrote:

> On Oct 9, 2018, at 8:03 AM, Sai Ram  wrote:
>
>
>We are using "win32com.client.Dispatch("SAPI.SpVoice")" for TTS to our
> target device from a Windows 7 desktop. We are seeing many of these
> exceptions: "Exception '-2147221164'".
> Is there a fix for this? Basically, wanted to know the reason for this
> exception and the fix for this.
>
>
> COM exceptions are listed in hex.  -2147221164 is 0x80040154, which is
> E_CLASSNOTREG.  Have you installed SAPI 5.1?  It's not built-in.
> —
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
> ___
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Tim Roberts
On Oct 10, 2018, at 1:25 PM, Sai Ram  wrote:
> 
> We use Nuance's Vocalizer Expressive for voice and sapi5.dll. Also, we modify 
> the "Windows registry" to refer to this dll.

What does that mean?  Ordinarily, you would just register the DLL with regsvr32 
once and for all.  Are you making registry changes on the fly?
— 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Tim Roberts

Sai Ram wrote:


   I really did not know that this value would make difference. 
Apologies for the vague question. The actual exception is "-2147352567".


That's 0x80020009, or DISP_E_EXCEPTION.  That's really telling you to 
refer to the other code for the details.



Also, we have around 5000 test scripts. Out of these, around 300 test 
scripts fails with this exception. So, I do not doubt any system 
issues here.


Did you actually install the SAPI SDK?  Do all 5,000 of the scripts use 
SpVoice?  Do the 300 that fail use some particular subset?  Are they all 
either 32-bit or 64-bit apps?


--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.




smime.p7s
Description: S/MIME Cryptographic Signature
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

2018-10-10 Thread Tim Roberts
On Oct 9, 2018, at 8:03 AM, Sai Ram  wrote:
> 
>We are using "win32com.client.Dispatch("SAPI.SpVoice")" for TTS to our 
> target device from a Windows 7 desktop. We are seeing many of these 
> exceptions: "Exception '-2147221164'". 
> Is there a fix for this? Basically, wanted to know the reason for this 
> exception and the fix for this.

COM exceptions are listed in hex.  -2147221164 is 0x80040154, which is 
E_CLASSNOTREG.  Have you installed SAPI 5.1?  It's not built-in.
— 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32