-
Notifications
You must be signed in to change notification settings - Fork 88
Description
If I just import devices everything works fine, but I decided I wanted to loop trying over and over again if the joystick couldn't be found, and I was getting the same device list over and over again even after plugging in my device so I figured I needed to create my own device manager in order to get a refreshed device list. Then I discovered I can never construct my own DeviceManager, I always get this traceback.
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/mandimus/joystick.py", line 110, in joystick_event_loop
Dec 20 15:12:56 eruv bash[11092]: device_manager = DeviceManager() # re-create every loop in case plugged in
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3188, in init
Dec 20 15:12:56 eruv bash[11092]: self._post_init()
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3200, in _post_init
Dec 20 15:12:56 eruv bash[11092]: self._find_leds()
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3359, in _find_leds
Dec 20 15:12:56 eruv bash[11092]: self._parse_led_path(path)
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3366, in _parse_led_path
Dec 20 15:12:56 eruv bash[11092]: self.leds.append(SystemLED(self, path, name))
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3082, in init
Dec 20 15:12:56 eruv bash[11092]: super(SystemLED, self).init(manager, path, name)
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3003, in init
Dec 20 15:12:56 eruv bash[11092]: self._post_init()
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3086, in _post_init
Dec 20 15:12:56 eruv bash[11092]: self._led_type_code = self.manager.get_typecode('LED')
Dec 20 15:12:56 eruv bash[11092]: File "/home/prophet/.local/lib/python2.7/site-packages/inputs.py", line 3421, in get_typecode
Dec 20 15:12:56 eruv bash[11092]: return self.codes['type_codes'][name]
Dec 20 15:12:56 eruv bash[11092]: KeyError: 'LED'