> 250 return _manage(obj, clsid, interface=interface)Ģ52 def CoGetObject(displayname, interface=None, dynamic=False): ~\anaconda3\lib\site-packages\comtypes\client_ init_.py in CreateObject(progid, clsctx, machine, interface, dynamic, pServerInfo)Ģ49 return (obj) > 6 engine = ("SAPI.SpVoice")ħ stream = ("SAPI.SpFileStream") ~\anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)ĥ # Generate the SpeechLib lib and any associated files ~\anaconda3\lib\importlib_bootstrap_external.py in exec_module(self, module) ~\anaconda3\lib\importlib_bootstrap.py in _load_unlocked(spec) ~\anaconda3\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import) ~\anaconda3\lib\importlib_bootstrap.py in find_and_load(name, import) ~\anaconda3\lib\importlib_bootstrap.py in _gcd_import(name, package, level) > 127 return _bootstrap._gcd_import(name, package, level) ~\anaconda3\lib\importlib_ init_.py in import_module(name, package) > 50 self._module = importlib.import_module(name)ĥ2 self._driver = self._module.buildDriver(weakref.proxy(self)) ~\anaconda3\lib\site-packages\pyttsx3\driver.py in init(self, engine, driverName, debug)Ĥ9 name = 'pyttsx3.drivers.%s' % driverName > 30 self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
~\anaconda3\lib\site-packages\pyttsx3\engine.py in init(self, driverName, debug) TypeError Traceback (most recent call last)
~\anaconda3\lib\ctypes_ init_.py in WINFUNCTYPE(restype, *argtypes, **kw) ImportError: cannot import name 'SpeechLib' from 'comtypes.gen' (C:\Users\user\anaconda3\lib\site-packages\comtypes\gen_ init_.py) > 3 from comtypes.gen import SpeechLib # comtypes ImportError Traceback (most recent call last) ~\anaconda3\lib\weakref.py in getitem(self, key)ĭuring handling of the above exception, another exception occurred: ~\anaconda3\lib\site-packages\pyttsx3_ init_.py in init(driverName, debug) KeyError Traceback (most recent call last) DisambiguationError:Ĭan any one help? TypeError : item 1 in argtypes passes a union by value, which is unsupported. PopupNonBlocking( "Wolfram Result: " + wolfram_res, "Wikipedia Result: " + wiki_res)Įxcept wikipedia.