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.

hidinput exception in Kivy. No such devices

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dlernstromcommented, Aug 30, 2016

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.

1reaction
openedhardwarecommented, Jul 11, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

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