question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu Linux: Listening to on_release events getting OSError: [Errno 19] No such device

See original GitHub issue

Thanks for this library!

I’m using it to listen to every on_release event:

keyboard.on_release(callback=self.on_key_up)

But sadly after a while I always get this exception:

OSError: [Errno 19] No such device

After that, the callback isn’t called anymore.

Edit: Actually, sometimes it happens right away…

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
marcel-valdezcommented, Mar 26, 2021

Figured out a fix for the issue. Will post pull request.

0reactions
tom9672commented, May 4, 2022

Figured out a fix for the issue. Will post pull request. @marcel-valdez Does that mean the keyboard loss will not make exceptions of no such device? I still have this issue. using keyboard 0.13.5. some one know which version fix this issue?

update: thanks so much for your code. but after adding the ‘if device.input_file.readable():’, it still shows ‘no such device’ after disconnecting the keyboard, and not listen after i reconnect keyboard. I tried use add_hotkey and is_pressed, born not work after reconnect

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSError: [Errno 19] Failed to open the uinput device: No such ...
I am pretty new to raspberry and Linux.
Read more >
Bug #1244988 “IOError: [Errno 19] No such device”
I am not sure about the part resulting in "IOError: [Errno 19] No such device", but the "AttributeError: 'Backend' object has no attribute...
Read more >
release_notes.txt - Ubuntu Cloud Images
Update branch_fuse.patch: - Make grub-mount exit non-zero if opening the device or filesystem fails. - Translate GRUB error codes into OS error codes...
Read more >
/srv/irclogs.ubuntu.com/2011/10/14/#ubuntu.txt
agronholm, graingert: I mean, don't I get a list of all installed packages from software-center? ... Stingray88, bobbert: no such file or directory,...
Read more >
https://irclogs.ubuntu.com/2014/04/17/%23ubuntu.txt
[00:27] <Ninjaspark> How should i "sudo apt-get install ubuntu-desktop" If i dont have a working version of Linux working in the first place?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found