Ashutosh-kv/JARVIS

error messages

Opened this issue · 5 comments

Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3_init_.py", line 44, in init
eng = _activeEngines[driverName]
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\weakref.py", line 137, in getitem
o = self.datakey
KeyError: 'sapi5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\other\assistant.py", line 12, in
engine = pyttsx3.init('sapi5')
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3_init_.py", line 46, in init
eng = Engine(driverName, debug)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3\engine.py", line 52, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3\driver.py", line 75, in init
self.module = importlib.import_module(name)
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3\drivers\sapi5.py", line 3, in
import win32com.client
ModuleNotFoundError: No module named 'win32com'

same error

Traceback (most recent call last):
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3_init_.py", line 44, in init
eng = _activeEngines[driverName]
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\weakref.py", line 137, in getitem
o = self.datakey
KeyError: 'sapi5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Anas\Desktop\JARVIS-master\JARVIS-master\assistant.py", line 12, in
engine = pyttsx3.init('sapi5')
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3_init_.py", line 46, in init
eng = Engine(driverName, debug)
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3\engine.py", line 52, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3\driver.py", line 75, in init
self.module = importlib.import_module(name)
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\Anas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyttsx3\drivers\sapi5.py", line 3, in
import win32com.client
ModuleNotFoundError: No module named 'win32com'

same error

Run pip install pyttsx3 followed by pip install pypiwin32 - https://pypi.org/project/pyttsx3/

FYI you should always ship a requirements.txt in your project so the people who check it out can simply do "pip install -r requirements.txt" to get all the dependencies.

To the author: do "pip freeze > requirements.txt" and push that txt file