[python-win32] cannot create 'NoneType' instances

2008-08-31 Thread Arun Kumar
hi, I'm new to python as well as pywin. I'm having trouble with the following code: _ListenerBase = win32com.client.getevents("SAPI.SpSharedRecoContext") class _ListenerCallback(_ListenerBase): """Created to fire events upon speech recognition. Instances of this class automatically die

Re: [python-win32] cannot create 'NoneType' instances

2008-08-31 Thread Larry Bates
Arun Kumar wrote: hi, I'm new to python as well as pywin. I'm having trouble with the following code: _ListenerBase = win32com.client.getevents("SAPI.SpSharedRecoContext") class _ListenerCallback(_ListenerBase): """Created to fire events upon speech recognition. Instances of this class

Re: [python-win32] cannot create 'NoneType' instances

2008-08-31 Thread Arun Kumar
The problem appeared to have been with another error that I saw only when I restarted the machine and python. When I first try to import this module 'import speech' it fails with the error below. Subsequent calls to 'import speech' fail with the 'NoneType' error. File "C:\Python25\Lib\site-packa