File "/opt/homebrew/Cellar/[email protected]/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
Traceback (most recent call last):
File "/Users/sambhavdixit/Air-Writing-and-Character-Recognition/app.py", line 4, in <module>
from VirtualPainter import VirtualPainter
File "/Users/sambhavdixit/Air-Writing-and-Character-Recognition/VirtualPainter.py", line 221, in <module>
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 982, in run
strt()
File "/Users/sambhavdixit/Air-Writing-and-Character-Recognition/VirtualPainter.py", line 90, in strt
self._target(*self._args, **self._kwargs)
File "/opt/homebrew/lib/python3.11/site-packages/keyboard/__init__.py", line 294, in listen
if keyboard.is_pressed('a'):
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/keyboard/__init__.py", line 417, in is_pressed
_os_keyboard.listen(self.direct_callback)
steps = parse_hotkey(hotkey)
File "/opt/homebrew/lib/python3.11/site-packages/keyboard/_darwinkeyboard.py", line 430, in listen
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/keyboard/__init__.py", line 344, in parse_hotkey
scan_codes = key_to_scan_codes(hotkey)
raise OSError("Error 13 - Must be run as administrator")
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/keyboard/__init__.py", line 324, in key_to_scan_codes
OSError: Error 13 - Must be run as administrator
raise ValueError('Key {} is not mapped to any known key.'.format(repr(key)), e)
ValueError: ("Key 'a' is not mapped to any known key.", ValueError('Unrecognized character: a'))