-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
Would love to test out this tool chain for a documentation project I'm working on but I'm having trouble even running it. I can successfully run python3 setup.py but when trying to run ./run_AlwaysReddy.sh I see errors with PynputHandler:
$ ./run_AlwaysReddy.sh
Using faster-whisper model: tiny.en and device: cpu
AHK input handler is only supported on Windows. Falling back to PynputHandler.
Traceback (most recent call last):
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/venv/lib/python3.9/site-packages/pynput/keyboard/__init__.py", line 155, in parse
key = Key[p.lower()]
File "/opt/homebrew/Cellar/python@3.9/3.9.22/Frameworks/Python.framework/Versions/3.9/lib/python3.9/enum.py", line 432, in __getitem__
return cls._member_map_[name]
KeyError: 'option'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/venv/lib/python3.9/site-packages/pynput/keyboard/__init__.py", line 162, in parse
return KeyCode.from_vk(int(p))
ValueError: invalid literal for int() with base 10: 'option'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/main.py", line 256, in <module>
AlwaysReddy().run()
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/main.py", line 29, in __init__
self.input_handler = get_input_handler(verbose=self.verbose)
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/input_apis/input_handler.py", line 185, in get_input_handler
return PynputHandler(verbose)
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/input_apis/pynput_handler.py", line 107, in __init__
self.known_system_shortcuts = self._parse_system_shortcuts()
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/input_apis/pynput_handler.py", line 118, in _parse_system_shortcuts
pynput_keyboard.HotKey.parse(
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/venv/lib/python3.9/site-packages/pynput/keyboard/__init__.py", line 170, in parse
parsed_parts = [
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/venv/lib/python3.9/site-packages/pynput/keyboard/__init__.py", line 171, in <listcomp>
parse(s)
File "/Users/rday/Documents/Sondermind/git/AlwaysReddy/venv/lib/python3.9/site-packages/pynput/keyboard/__init__.py", line 164, in parse
raise ValueError(s)
ValueError: <option>
I have tried various values in the HOTKEY BINDINGS section of config.py from multiple Mac special keys, to the file defaults, and even trying no bindings at all.
Metadata
Metadata
Assignees
Labels
No labels