Е
tty_port@ttymacbook layoutlight % python3 main.py
Traceback (most recent call last):
File "/Users/tty_port/layoutlight/main.py", line 2, in <module>
subprocess.check_output("""defaults read ~/Library/Preferences/com.apple.HIToolbox.plist | grep "KeyboardLayout ID" | tail -1""")
File "/opt/homebrew/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/opt/homebrew/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/opt/homebrew/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'defaults read ~/Library/Preferences/com.apple.HIToolbox.plist | grep "KeyboardLayout ID" | tail -1'