R
R
Roman Agagulov2021-08-05 03:52:46
Python
Roman Agagulov, 2021-08-05 03:52:46

Module error while running code. Will you help?

when I run the code, it gives an error, I don't understand what it's about...:
Traceback (most recent call last): File "R:\vik\Viktoria.py", line 111, in engine = pyttsx3.init() File "C:\Users\Roman\AppData\Local\Programs\Python\Python37- 32\lib\site-packag es\pyttsx3\__init__.py", line 22, in init eng = Engine(driverName, debug) File "C:\Users\Roman\AppData\Local\Programs\Python\Python37-32\ lib\site-packag es\pyttsx3\engine.py", line 30, in __init__ self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "C:\Users\Roman\AppData\Local \Programs\Python\Python37-32\lib\site-packag es\pyttsx3\driver.py", line 50, in __init__ self._module = importlib.import_module(name) File "C:\Users\Roman\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\Roman\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\pyttsx3\drivers\sapi5.py", line 3, in from comtypes.gen import SpeechLib # comtypes ValueError: source code string cannot contain null bytes\Users\Roman\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\pyttsx3\drivers\sapi5.py", line 3, in from comtypes.gen import SpeechLib # comtypes ValueError: source code string cannot contain null bytes\Users\Roman\AppData\Local\Programs\Python\Python37-32\lib\site-packag es\pyttsx3\drivers\sapi5.py", line 3, in from comtypes.gen import SpeechLib # comtypes ValueError: source code string cannot contain null bytes610b3620a3ebb226386641.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question