hidinput exception in Kivy. No such devices
See original GitHub issueI’m using a Kivy Python framework in my project and USB touch panel for user interraction and I faced with problem. When my touch panel has lost connection (for a second) and then reconnect again the application get an exception HidinputException in hidinput.py file.
Here I show my stacktrace:
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/kivy/input/providers/hidinput.py", line 687, in _thread_run
data = fd.read(struct_input_event_sz)
IOError: [Errno 19] No such devices
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Touch reconnect after disconnection (hid input provider)
to Kivy users support. Hi: My Linux device, with no X is not able to reconnect the touch screen if for some reason...
Read more >Kivy app crashes while importing modules like requests, etc, I ...
Kivy app crashes while importing modules like requests, etc, I have also mentioned then into the .spec file but still the app crashes....
Read more >I wanted to make a kivy tutorial, but I failed in step one.
I'm new to python, but am reasonably in c I wanted to do this kivy tutorial "https://www.youtube.com/watch?v=l8Imtec4ReQ&t=1154s" and ...
Read more >kivy.input.providers.hidinput — Kivy 2.1.0 documentation
To configure HIDInput, add this to your configuration:: [input] # devicename = hidinput,/dev/input/eventXX # example with Stantum MTP4.3" screen stantum ...
Read more >Kivy Documentation - Read the Docs
Finally, you will learn how to Deploy on the device of your choice. ... In Python, packages such as Kivy can be installed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also face this problem when running a Raspberry Pi with a Kivy application as a display. Occasionally, I’d like to plug in a USB mouse/keyboard in order to tweak the application. Under these cases, I am forced to restart the entire Kivy Application, just so that I can use keyboard/mouse.
Strange thing is that Kivy itself is obviously reconnecting to the keyboard (despite the IOError crash above). I know that because I’m still able to CTRL-C my way out of the Kivy Application.
Hi, I have same problem with my touch screen. I am using 10.1" touch screen from WaveShare. http://www.waveshare.com/wiki/10.1inch_HDMI_LCD_(B)_(with_case)
Though I am using external power source for the touch screen, same errors are occasionally occurs and it is suffering me continuously. After error is occurred, screen is locked up and does not accept any touch input.
Is there any way to recover the connection in the hidinput.py? Do I need to modify it?
Thanks.