Сам код:
import keyboard as keyb
import os
file = r'D:/Test_Python/S_1/1_3CXPhone.py'
keyb.add_hotkey('ctrl + q', lambda: os.system('start ' + file))
keyb.wait()
Ошибка:
C:\Users\User\AppData\Local\Programs\Python\Python311\Scripts\python.exe "C:/Program Files/JetBrains/PyCharm Community Edition 2022.2.3/plugins/python-ce/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 63348 --file D:\Test_Python\S_1\autoran.py
-------------------------------------------------------------------------------
pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)
pydev debugger: The debugger may still function, but it will work slower and may miss breakpoints.
pydev debugger: Related bug: http://bugs.python.org/issue1666807
-------------------------------------------------------------------------------
Connected to pydev debugger (build 222.4345.23)
pydev debugger: Unable to find real location for: <frozen codecs>
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap>
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap_external>
pydev debugger: Unable to find real location for: <frozen _collections_abc>
pydev debugger: Unable to find real location for: <frozen os>
pydev debugger: Unable to find real location for: <frozen abc>
Как исправить? Откат не помог, полная переустановка так же. Ранее код работал исправно
Скриншот фрагмента кода удалён модератором.