8000 Error when typing shift T or shift B · Issue #29 · zerowriter/zerowriter1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error when typing shift T or shift B #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
igoldsteinh opened this issue May 11, 2025 · 1 comment
Open

Error when typing shift T or shift B #29

igoldsteinh opened this issue May 11, 2025 · 1 comment

Comments

@igoldsteinh
Copy link

Hi, really enjoying working on this project, thanks for sharing it.
I am working through the setup instructions for v2.2 waveshare. I can successfully run sudo python main.py and am able to type on the screen/navigate with arrow keys.
However, for some keys, it appears that using shift is causing an error (I have so far found it for shift + t and shift + b).
Here is the error message I get on my terminal:

Exception in thread Thread-7 (listen):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.11/dist-packages/keyboard/__init__.py", line 294, in listen
    _os_keyboard.listen(self.direct_callback)
  File "/usr/local/lib/python3.11/dist-packages/keyboard/_nixkeyboard.py", line 141, in listen
    callback(KeyboardEvent(event_type=event_type, scan_code=scan_code, name=name, time=time, device=device_id, is_keypad=is_keypad, modifiers=pressed_modifiers_tuple))
  File "/usr/local/lib/python3.11/dist-packages/keyboard/__init__.py", line 236, in direct_callback
    if not all(hook(event) for hook in self.blocking_hooks):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/keyboard/__init__.py", line 236, in <genexpr>
    if not all(hook(event) for hook in self.blocking_hooks):
               ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/keyboard/__init__.py", line 474, in <lambda>
    return hook(lambda e: e.event_type == KEY_UP or callback(e), suppress=suppress)
                                                    ^^^^^^^^^^^
  File "/home/isaacgoldstein/zerowriter1/e-Paper/RaspberryPi_JetsonNano/python/examples/zerowriter.py", line 742, in handle_key_press
    self.input_content += char
TypeError: can only concatenate str (not "NoneType") to str

I am using the archived version of bookworm recommended in issue 26. In case it is helpful, here is the keyboard I am using.

Any ideas on resolving this would be much appreciated!

@igoldsteinh
Copy link
Author

Just a brief update: tried using a different keyboard, also tried re-installing OS and keyboard package, unfortunately still running into the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0