python-evdev icon indicating copy to clipboard operation
python-evdev copied to clipboard

Exception TypeError in InputDevice.close() function

Open alexknop opened this issue 4 years ago • 1 comments

Exception TypeError: TypeError('super() takes at least 1 argument (0 given)',) in <bound method InputDevice.__del__ of InputDevice('/dev/input/event0')> ignored

Getting this error in /usr/local/lib/python2.7/dist-packages/evdev/device.py

def close(self): if self.fd > -1: try: super().close()<---Coming from this line os.close(self.fd) #except TypeError: #pass finally: self.fd = -1

And if I uncomment the except statement, I wont see the error. So I have found a workaround but the underlying error still exists.

alexknop avatar Jan 17 '21 23:01 alexknop

This probably will fix the problem: #154

luizoti avatar Apr 30 '21 18:04 luizoti