حاولت تثبيت مكتبه في بايثون عند تشغيل المكتبه في محرر الاكواد visual code تعمل بشكل صحيح ولكن عند تشغيل ملف بايثون الخارجي لا تعمل و تضهر هذه الرساله:

Traceback (most recent call last):

File "C:\python\lib\tkinter__init__.py", line 1883, in __call__

return self.func(*args)

File "C:\Users\HP\PycharmProjects\untitled\English.py", line 162, in voice e = pyttsx3.init() File "C:\python\lib\site-packages\pyttsx3__init__.py", line 21, in init eng = Engine(driverName, debug) File "C:\python\lib\site-packages\pyttsx3\engine.py", line 30, in __init__ self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "C:\python\lib\site-packages\pyttsx3\driver.py", line 50, in __init__ self._module = importlib.import_module(name) File "C:\python\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 783, in exec_module File "", line 219, in _call_with_frames_removed File "C:\python\lib\site-packages\pyttsx3\drivers\sapi5.py", line 3, in from comtypes.gen import SpeechLib # comtypes File "C:\python\lib\site-packages\comtypes\gen\SpeechLib.py", line 1, in from comtypes.gen import _C866CA3A_32F7_11D2_9602_00C04F8EE628_0_5_4

ValueError: source code string cannot contain null bytes

الذي يقدر يساعدني له الشكر